1
0
mirror of https://github.com/trezor/trezor-firmware.git synced 2024-12-22 14:28:07 +00:00

modtrezormsg: minor doc changes

This commit is contained in:
Jan Pochyla 2017-06-14 18:08:08 +02:00
parent d771c72422
commit 2ca60fc59a
2 changed files with 16 additions and 8 deletions

View File

@ -42,7 +42,8 @@ typedef struct _mp_obj_HID_t {
/// protocol: int = 0,
/// polling_interval: int = 1,
/// 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 const mp_arg_t allowed_args[] = {
@ -135,7 +136,8 @@ typedef struct _mp_obj_VCP_t {
/// ep_in: int,
/// ep_out: int,
/// 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 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,
/// configuration_str: str = '',
/// 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 const mp_arg_t allowed_args[] = {
@ -320,7 +323,8 @@ typedef struct _mp_obj_Msg_t {
} mp_obj_Msg_t;
/// 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) {
mp_arg_check_num(n_args, n_kw, 0, 0, false);
msg_init();

View File

@ -14,7 +14,8 @@ class HID:
protocol: int = 0,
polling_interval: int = 1,
max_packet_len: int = 64) -> None:
pass
'''
'''
# extmod/modtrezormsg/modtrezormsg.c
class VCP:
@ -28,7 +29,8 @@ class VCP:
ep_in: int,
ep_out: int,
ep_cmd: int) -> None:
pass
'''
'''
# extmod/modtrezormsg/modtrezormsg.c
class USB:
@ -45,7 +47,8 @@ class USB:
serial_number_str: str,
configuration_str: str = '',
interface_str: str = '') -> None:
pass
'''
'''
# extmod/modtrezormsg/modtrezormsg.c
class Msg:
@ -54,7 +57,8 @@ class Msg:
'''
def __init__(self) -> None:
pass
'''
'''
def init_usb(self, usb_info: USB, usb_ifaces: List[Union[HID, VCP]]) -> None:
'''