You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
trezor-firmware/core/src/trezor/wire/thp/retransmission.py

24 lines
547 B

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