OpenOCD
|
Go to the source code of this file.
Functions | |
RESULT | usbtoswd_config (uint8_t interface_index, uint8_t trn, uint16_t retry, uint16_t dly) |
RESULT | usbtoswd_fini (uint8_t interface_index) |
RESULT | usbtoswd_init (uint8_t interface_index) |
static RESULT | usbtoswd_read_callback (void *p, uint8_t *src, uint8_t *processed) |
RESULT | usbtoswd_seqin (uint8_t interface_index, uint8_t *data, uint16_t bitlen) |
RESULT | usbtoswd_seqout (uint8_t interface_index, const uint8_t *data, uint16_t bitlen) |
RESULT | usbtoswd_transact (uint8_t interface_index, uint8_t request, uint32_t *data, uint8_t *ack) |
static RESULT | usbtoswd_write_callback (void *p, uint8_t *src, uint8_t *processed) |
RESULT usbtoswd_config | ( | uint8_t | interface_index, |
uint8_t | trn, | ||
uint16_t | retry, | ||
uint16_t | dly | ||
) |
Definition at line 52 of file usbtoswd.c.
References ERRMSG_INVALID_INTERFACE_NUM, ERROR_FAIL, LOG_BUG, SET_LE_U16, USB_TO_SWD, and usbtoxxx_conf_command.
RESULT usbtoswd_fini | ( | uint8_t | interface_index | ) |
Definition at line 47 of file usbtoswd.c.
References USB_TO_SWD, and usbtoxxx_fini_command.
RESULT usbtoswd_init | ( | uint8_t | interface_index | ) |
Definition at line 42 of file usbtoswd.c.
References USB_TO_SWD, and usbtoxxx_init_command.
|
static |
Definition at line 20 of file usbtoswd.c.
References ERROR_OK, and versaloon_pending_t::extra_data.
Referenced by usbtoswd_transact().
RESULT usbtoswd_seqin | ( | uint8_t | interface_index, |
uint8_t * | data, | ||
uint16_t | bitlen | ||
) |
Definition at line 90 of file usbtoswd.c.
References ERRMSG_INVALID_INTERFACE_NUM, ERROR_FAIL, LOG_BUG, SET_LE_U16, USB_TO_SWD, and usbtoxxx_in_command.
RESULT usbtoswd_seqout | ( | uint8_t | interface_index, |
const uint8_t * | data, | ||
uint16_t | bitlen | ||
) |
Definition at line 71 of file usbtoswd.c.
References ERRMSG_INVALID_INTERFACE_NUM, ERROR_FAIL, LOG_BUG, SET_LE_U16, USB_TO_SWD, usbtoxxx_out_command, and versaloon_cmd_buf.
RESULT usbtoswd_transact | ( | uint8_t | interface_index, |
uint8_t | request, | ||
uint32_t * | data, | ||
uint8_t * | ack | ||
) |
Definition at line 108 of file usbtoswd.c.
References ERRMSG_INVALID_INTERFACE_NUM, ERROR_FAIL, LOG_BUG, parity(), SET_LE_U32, USB_TO_SWD, usbtoswd_read_callback(), usbtoswd_write_callback(), usbtoxxx_inout_command, versaloon_set_callback(), and versaloon_set_extra_data().
|
static |
Definition at line 30 of file usbtoswd.c.
References ERROR_OK, and versaloon_pending_t::extra_data.
Referenced by usbtoswd_transact().