added WDT enable and disable command
All checks were successful
EIVE/-/pipeline/head This commit looks good
All checks were successful
EIVE/-/pipeline/head This commit looks good
This commit is contained in:
parent
1123c4d4df
commit
aba369f11f
@ -13,7 +13,7 @@ from eive_tmtc.config.object_ids import XIPHOS_WDT_ID
|
|||||||
|
|
||||||
class OpCode:
|
class OpCode:
|
||||||
ENABLE = "enable"
|
ENABLE = "enable"
|
||||||
DISBALE = "disable"
|
DISABLE = "disable"
|
||||||
|
|
||||||
|
|
||||||
class Info:
|
class Info:
|
||||||
@ -29,7 +29,7 @@ class ActionId(enum.IntEnum):
|
|||||||
def pack_wdt_commands(q: DefaultPusQueueHelper, op_code: str):
|
def pack_wdt_commands(q: DefaultPusQueueHelper, op_code: str):
|
||||||
if op_code == OpCode.ENABLE:
|
if op_code == OpCode.ENABLE:
|
||||||
q.add_pus_tc(create_action_cmd(XIPHOS_WDT_ID, ActionId.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))
|
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):
|
def add_xiphos_wdt_defs(defs: TmtcDefinitionWrapper):
|
||||||
oce = OpCodeEntry()
|
oce = OpCodeEntry()
|
||||||
oce.add(keys=OpCode.ENABLE, info=Info.ENABLE)
|
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(
|
defs.add_service(
|
||||||
CustomServiceList.XIPHOS_WDT, info="Xiphos Watchdog Timer", op_code_entry=oce
|
CustomServiceList.XIPHOS_WDT, info="Xiphos Watchdog Timer", op_code_entry=oce
|
||||||
)
|
)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user