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/__init__.py

26 lines
368 B

from typing import TYPE_CHECKING
if TYPE_CHECKING:
from enum import IntEnum
else:
IntEnum = object
class ChannelState(IntEnum):
UNALLOCATED = 0
UNAUTHENTICATED = 1
TH1 = 2
TH2 = 3
TP1 = 4
TP2 = 5
TP3 = 6
TP4 = 7
TP5 = 8
ENCRYPTED_TRANSPORT = 9
class WireInterfaceType(IntEnum):
MOCK = 0
USB = 1
BLE = 2