added WDT enable and disable command
All checks were successful
EIVE/-/pipeline/head This commit looks good

This commit is contained in:
Robin Müller 2023-10-11 11:38:45 +02:00
parent 1123c4d4df
commit aba369f11f
Signed by: muellerr
GPG Key ID: FCE0B2BD2195142F

View File

@ -13,7 +13,7 @@ from eive_tmtc.config.object_ids import XIPHOS_WDT_ID
class OpCode:
ENABLE = "enable"
DISBALE = "disable"
DISABLE = "disable"
class Info:
@ -29,7 +29,7 @@ class ActionId(enum.IntEnum):
def pack_wdt_commands(q: DefaultPusQueueHelper, op_code: str):
if op_code == OpCode.ENABLE:
q.add_pus_tc(create_action_cmd(XIPHOS_WDT_ID, ActionId.ENABLE))
if op_code == OpCode.DISBALE:
if op_code == OpCode.DISABLE:
q.add_pus_tc(create_action_cmd(XIPHOS_WDT_ID, ActionId.DISABLE))
@ -37,7 +37,7 @@ def pack_wdt_commands(q: DefaultPusQueueHelper, op_code: str):
def add_xiphos_wdt_defs(defs: TmtcDefinitionWrapper):
oce = OpCodeEntry()
oce.add(keys=OpCode.ENABLE, info=Info.ENABLE)
oce.add(keys=OpCode.ENABLE, info=Info.DISABLE)
oce.add(keys=OpCode.DISABLE, info=Info.DISABLE)
defs.add_service(
CustomServiceList.XIPHOS_WDT, info="Xiphos Watchdog Timer", op_code_entry=oce
)