fsfw-example-tmtc-common/pus_tc/cmd_definitions.py

36 lines
1.1 KiB
Python

from tmtccmd.config import (
ServiceOpCodeDictT,
add_op_code_entry,
add_service_op_code_entry,
OpCodeDictKeys,
)
from tmtccmd.config.globals import get_default_service_op_code_dict
def common_fsfw_service_op_code_dict() -> ServiceOpCodeDictT:
service_op_code_dict = get_default_service_op_code_dict()
op_code = dict()
add_op_code_entry(op_code_dict=op_code, keys="test", info="Mode CMD Test")
add_op_code_entry(
op_code_dict=op_code,
keys=["0", "asm_to_normal"],
info="Command test assembly to normal mode",
options={OpCodeDictKeys.TIMEOUT: 6.0},
)
add_service_op_code_entry(
srv_op_code_dict=service_op_code_dict,
name="200",
info="PUS Service 200 Mode MGMT",
op_code_entry=op_code,
)
op_code = dict()
add_op_code_entry(op_code_dict=op_code, keys="test", info="TC Scheduling Test")
add_service_op_code_entry(
srv_op_code_dict=service_op_code_dict,
name="11",
info="PUS Service 11 TC Scheduling",
op_code_entry=op_code,
)
return service_op_code_dict