diff --git a/core/src/all_modules.py b/core/src/all_modules.py index 797f887c7..0182f8a06 100644 --- a/core/src/all_modules.py +++ b/core/src/all_modules.py @@ -231,6 +231,8 @@ trezor.wire.thp.pairing_context import trezor.wire.thp.pairing_context trezor.wire.thp.received_message_handler import trezor.wire.thp.received_message_handler +trezor.wire.thp.retransmission +import trezor.wire.thp.retransmission trezor.wire.thp.session_context import trezor.wire.thp.session_context trezor.wire.thp.session_manager diff --git a/core/src/trezor/wire/thp/retransmission.py b/core/src/trezor/wire/thp/retransmission.py new file mode 100644 index 000000000..48f1db5f8 --- /dev/null +++ b/core/src/trezor/wire/thp/retransmission.py @@ -0,0 +1,23 @@ +from typing import TYPE_CHECKING + +if TYPE_CHECKING: + from trezor.wire.thp import ChannelContext + + +class Retransmission: + + def __init__( + self, channel_context: ChannelContext, ctrl_byte: int, payload: memoryview + ) -> None: + self.channel_context: ChannelContext = channel_context + self.ctrl_byte: int = ctrl_byte + self.payload: memoryview = payload + + def start(self): + pass + + def stop(self): + pass + + def change_ctrl_byte(self, ctrl_byte: int) -> None: + self.ctrl_byte = ctrl_byte