mirror of
https://github.com/trezor/trezor-firmware.git
synced 2024-12-01 20:08:26 +00:00
0890f68c0c
all debug input signals are now channels, and DebugLinkDecision handler waits until the input was consumed. This means that the input events are queued; originally, if an input event arrived before the previous was consumed, the previous input would be lost. reset words and their positions are now also channels, and DebugLinkGetState can wait for their updates, if required
30 lines
751 B
Python
30 lines
751 B
Python
# Automatically generated by pb2py
|
|
# fmt: off
|
|
from .. import protobuf as p
|
|
|
|
if __debug__:
|
|
try:
|
|
from typing import Dict, List, Optional
|
|
from typing_extensions import Literal # noqa: F401
|
|
except ImportError:
|
|
Dict, List, Optional = None, None, None # type: ignore
|
|
|
|
|
|
class DebugLinkGetState(p.MessageType):
|
|
MESSAGE_WIRE_TYPE = 101
|
|
|
|
def __init__(
|
|
self,
|
|
wait_word_list: bool = None,
|
|
wait_word_pos: bool = None,
|
|
) -> None:
|
|
self.wait_word_list = wait_word_list
|
|
self.wait_word_pos = wait_word_pos
|
|
|
|
@classmethod
|
|
def get_fields(cls) -> Dict:
|
|
return {
|
|
1: ('wait_word_list', p.BoolType, 0),
|
|
2: ('wait_word_pos', p.BoolType, 0),
|
|
}
|