diff --git a/xoa_driver/__init__.py b/xoa_driver/__init__.py index 7278e96e..f76f7cea 100644 --- a/xoa_driver/__init__.py +++ b/xoa_driver/__init__.py @@ -1,2 +1,2 @@ -__version__ = "2.5.4" +__version__ = "2.5.5" __short_version__ = "2.5" diff --git a/xoa_driver/internals/commands/c_commands.py b/xoa_driver/internals/commands/c_commands.py index bdcfbec3..f3841dca 100644 --- a/xoa_driver/internals/commands/c_commands.py +++ b/xoa_driver/internals/commands/c_commands.py @@ -1207,6 +1207,32 @@ def set(self, timer_value: int) -> Token[None]: return Token(self._connection, build_set_request(self, timer_value=timer_value)) +@register_command +@dataclass +class C_DEBUGCMD: + """ + Chassis debug command + """ + + code: typing.ClassVar[int] = 37 + pushed: typing.ClassVar[bool] = False + + _connection: 'interfaces.IConnection' + _cmd_xindex: int + + class GetDataAttr(ResponseBodyStruct): + data: typing.List[int] = field(XmpSequence(types_chunk=[XmpInt()])) + + class SetDataAttr(RequestBodyStruct): + data: typing.List[int] = field(XmpSequence(types_chunk=[XmpInt()])) + + def get(self) -> Token[GetDataAttr]: + return Token(self._connection, build_get_request(self, indices=[self._cmd_xindex])) + + def set(self, data: typing.List[int]) -> Token[None]: + return Token(self._connection, build_set_request(self, indices=[self._cmd_xindex], data=data)) + + @register_command @dataclass class C_INDICES: