mirror of
https://github.com/trezor/trezor-firmware.git
synced 2024-12-22 22:38:08 +00:00
modtrezormsg: minor doc changes
This commit is contained in:
parent
d771c72422
commit
2ca60fc59a
@ -42,7 +42,8 @@ typedef struct _mp_obj_HID_t {
|
|||||||
/// protocol: int = 0,
|
/// protocol: int = 0,
|
||||||
/// polling_interval: int = 1,
|
/// polling_interval: int = 1,
|
||||||
/// max_packet_len: int = 64) -> None:
|
/// max_packet_len: int = 64) -> None:
|
||||||
/// pass
|
/// '''
|
||||||
|
/// '''
|
||||||
STATIC mp_obj_t mod_TrezorMsg_HID_make_new(const mp_obj_type_t *type, size_t n_args, size_t n_kw, const mp_obj_t *args) {
|
STATIC mp_obj_t mod_TrezorMsg_HID_make_new(const mp_obj_type_t *type, size_t n_args, size_t n_kw, const mp_obj_t *args) {
|
||||||
|
|
||||||
STATIC const mp_arg_t allowed_args[] = {
|
STATIC const mp_arg_t allowed_args[] = {
|
||||||
@ -135,7 +136,8 @@ typedef struct _mp_obj_VCP_t {
|
|||||||
/// ep_in: int,
|
/// ep_in: int,
|
||||||
/// ep_out: int,
|
/// ep_out: int,
|
||||||
/// ep_cmd: int) -> None:
|
/// ep_cmd: int) -> None:
|
||||||
/// pass
|
/// '''
|
||||||
|
/// '''
|
||||||
STATIC mp_obj_t mod_TrezorMsg_VCP_make_new(const mp_obj_type_t *type, size_t n_args, size_t n_kw, const mp_obj_t *args) {
|
STATIC mp_obj_t mod_TrezorMsg_VCP_make_new(const mp_obj_type_t *type, size_t n_args, size_t n_kw, const mp_obj_t *args) {
|
||||||
|
|
||||||
STATIC const mp_arg_t allowed_args[] = {
|
STATIC const mp_arg_t allowed_args[] = {
|
||||||
@ -237,7 +239,8 @@ static const char *get_0str(mp_obj_t o, size_t min_len, size_t max_len) {
|
|||||||
/// serial_number_str: str,
|
/// serial_number_str: str,
|
||||||
/// configuration_str: str = '',
|
/// configuration_str: str = '',
|
||||||
/// interface_str: str = '') -> None:
|
/// interface_str: str = '') -> None:
|
||||||
/// pass
|
/// '''
|
||||||
|
/// '''
|
||||||
STATIC mp_obj_t mod_TrezorMsg_USB_make_new(const mp_obj_type_t *type, size_t n_args, size_t n_kw, const mp_obj_t *args) {
|
STATIC mp_obj_t mod_TrezorMsg_USB_make_new(const mp_obj_type_t *type, size_t n_args, size_t n_kw, const mp_obj_t *args) {
|
||||||
|
|
||||||
STATIC const mp_arg_t allowed_args[] = {
|
STATIC const mp_arg_t allowed_args[] = {
|
||||||
@ -320,7 +323,8 @@ typedef struct _mp_obj_Msg_t {
|
|||||||
} mp_obj_Msg_t;
|
} mp_obj_Msg_t;
|
||||||
|
|
||||||
/// def __init__(self) -> None:
|
/// def __init__(self) -> None:
|
||||||
/// pass
|
/// '''
|
||||||
|
/// '''
|
||||||
STATIC mp_obj_t mod_TrezorMsg_Msg_make_new(const mp_obj_type_t *type, size_t n_args, size_t n_kw, const mp_obj_t *args) {
|
STATIC mp_obj_t mod_TrezorMsg_Msg_make_new(const mp_obj_type_t *type, size_t n_args, size_t n_kw, const mp_obj_t *args) {
|
||||||
mp_arg_check_num(n_args, n_kw, 0, 0, false);
|
mp_arg_check_num(n_args, n_kw, 0, 0, false);
|
||||||
msg_init();
|
msg_init();
|
||||||
|
@ -14,7 +14,8 @@ class HID:
|
|||||||
protocol: int = 0,
|
protocol: int = 0,
|
||||||
polling_interval: int = 1,
|
polling_interval: int = 1,
|
||||||
max_packet_len: int = 64) -> None:
|
max_packet_len: int = 64) -> None:
|
||||||
pass
|
'''
|
||||||
|
'''
|
||||||
|
|
||||||
# extmod/modtrezormsg/modtrezormsg.c
|
# extmod/modtrezormsg/modtrezormsg.c
|
||||||
class VCP:
|
class VCP:
|
||||||
@ -28,7 +29,8 @@ class VCP:
|
|||||||
ep_in: int,
|
ep_in: int,
|
||||||
ep_out: int,
|
ep_out: int,
|
||||||
ep_cmd: int) -> None:
|
ep_cmd: int) -> None:
|
||||||
pass
|
'''
|
||||||
|
'''
|
||||||
|
|
||||||
# extmod/modtrezormsg/modtrezormsg.c
|
# extmod/modtrezormsg/modtrezormsg.c
|
||||||
class USB:
|
class USB:
|
||||||
@ -45,7 +47,8 @@ class USB:
|
|||||||
serial_number_str: str,
|
serial_number_str: str,
|
||||||
configuration_str: str = '',
|
configuration_str: str = '',
|
||||||
interface_str: str = '') -> None:
|
interface_str: str = '') -> None:
|
||||||
pass
|
'''
|
||||||
|
'''
|
||||||
|
|
||||||
# extmod/modtrezormsg/modtrezormsg.c
|
# extmod/modtrezormsg/modtrezormsg.c
|
||||||
class Msg:
|
class Msg:
|
||||||
@ -54,7 +57,8 @@ class Msg:
|
|||||||
'''
|
'''
|
||||||
|
|
||||||
def __init__(self) -> None:
|
def __init__(self) -> None:
|
||||||
pass
|
'''
|
||||||
|
'''
|
||||||
|
|
||||||
def init_usb(self, usb_info: USB, usb_ifaces: List[Union[HID, VCP]]) -> None:
|
def init_usb(self, usb_info: USB, usb_ifaces: List[Union[HID, VCP]]) -> None:
|
||||||
'''
|
'''
|
||||||
|
Loading…
Reference in New Issue
Block a user