OpenOCD
|
Go to the source code of this file.
Macros | |
#define | USB_TO_XXX_ABILITIES_LEN 12 |
Functions | |
RESULT | usbtobdm_fini (uint8_t interface_index) |
RESULT | usbtobdm_init (uint8_t interface_index) |
RESULT | usbtobdm_sync (uint8_t interface_index, uint16_t *khz) |
RESULT | usbtobdm_transact (uint8_t interface_index, uint8_t *out, uint8_t outlen, uint8_t *in, uint8_t inlen, uint8_t delay, uint8_t ack) |
RESULT | usbtoc2_fini (uint8_t interface_index) |
RESULT | usbtoc2_init (uint8_t interface_index) |
RESULT | usbtoc2_readaddr (uint8_t interface_index, uint8_t *data) |
RESULT | usbtoc2_readdata (uint8_t interface_index, uint8_t *buf, uint8_t len) |
RESULT | usbtoc2_writeaddr (uint8_t interface_index, uint8_t addr) |
RESULT | usbtoc2_writedata (uint8_t interface_index, uint8_t *buf, uint8_t len) |
RESULT | usbtodelay_delay (uint16_t dly) |
RESULT | usbtodelay_delayms (uint16_t ms) |
RESULT | usbtodelay_delayus (uint16_t us) |
RESULT | usbtodusi_config (uint8_t interface_index, uint32_t khz, uint8_t mode) |
RESULT | usbtodusi_fini (uint8_t interface_index) |
RESULT | usbtodusi_init (uint8_t interface_index) |
RESULT | usbtodusi_io (uint8_t interface_index, uint8_t *mo, uint8_t *mi, uint8_t *so, uint8_t *si, uint32_t bitlen) |
RESULT | usbtogpio_config (uint8_t interface_index, uint32_t mask, uint32_t dir_mask, uint32_t pull_en_mask, uint32_t input_pull_mask) |
RESULT | usbtogpio_fini (uint8_t interface_index) |
RESULT | usbtogpio_in (uint8_t interface_index, uint32_t mask, uint32_t *value) |
RESULT | usbtogpio_init (uint8_t interface_index) |
RESULT | usbtogpio_out (uint8_t interface_index, uint32_t mask, uint32_t value) |
RESULT | usbtoi2c_config (uint8_t interface_index, uint16_t khz, uint16_t byte_interval, uint16_t max_dly) |
RESULT | usbtoi2c_fini (uint8_t interface_index) |
RESULT | usbtoi2c_init (uint8_t interface_index) |
RESULT | usbtoi2c_read (uint8_t interface_index, uint16_t chip_addr, uint8_t *data, uint16_t data_len, uint8_t stop, bool nacklast) |
RESULT | usbtoi2c_write (uint8_t interface_index, uint16_t chip_addr, uint8_t *data, uint16_t data_len, uint8_t stop) |
RESULT | usbtoinfo_get_abilities (uint8_t abilities[USB_TO_XXX_ABILITIES_LEN]) |
RESULT | usbtoissp_enter_program_mode (uint8_t interface_index, uint8_t mode) |
RESULT | usbtoissp_fini (uint8_t interface_index) |
RESULT | usbtoissp_init (uint8_t interface_index) |
RESULT | usbtoissp_leave_program_mode (uint8_t interface_index, uint8_t mode) |
RESULT | usbtoissp_vector (uint8_t interface_index, uint8_t operate, uint8_t addr, uint8_t data, uint8_t *buf) |
RESULT | usbtoissp_wait_and_poll (uint8_t interface_index) |
RESULT | usbtojtaghl_config (uint8_t interface_index, uint32_t khz, uint8_t ub, uint8_t ua, uint16_t bb, uint16_t ba) |
RESULT | usbtojtaghl_dr (uint8_t interface_index, uint8_t *dr, uint16_t bitlen, uint8_t idle, uint8_t want_ret) |
RESULT | usbtojtaghl_fini (uint8_t interface_index) |
RESULT | usbtojtaghl_init (uint8_t interface_index) |
RESULT | usbtojtaghl_ir (uint8_t interface_index, uint8_t *ir, uint16_t bitlen, uint8_t idle, uint8_t want_ret) |
RESULT | usbtojtaghl_register_callback (uint8_t index, jtag_callback_t send_callback, jtag_callback_t receive_callback) |
RESULT | usbtojtaghl_runtest (uint8_t interface_index, uint32_t cycles) |
RESULT | usbtojtaghl_tms (uint8_t interface_index, uint8_t *tms, uint16_t bitlen) |
RESULT | usbtojtagll_config (uint8_t interface_index, uint32_t khz) |
RESULT | usbtojtagll_fini (uint8_t interface_index) |
RESULT | usbtojtagll_init (uint8_t interface_index) |
RESULT | usbtojtagll_scan (uint8_t interface_index, uint8_t *data, uint16_t bitlen, uint8_t tms_before_valid, uint8_t tms_before, uint8_t tms_after0, uint8_t tms_after1) |
RESULT | usbtojtagll_tms (uint8_t interface_index, uint8_t *tms, uint8_t bytelen) |
RESULT | usbtojtagll_tms_clocks (uint8_t interface_index, uint32_t bytelen, uint8_t tms) |
RESULT | usbtojtagraw_config (uint8_t interface_index, uint32_t khz) |
RESULT | usbtojtagraw_execute (uint8_t interface_index, uint8_t *tdi, uint8_t *tms, uint8_t *tdo, uint32_t bitlen) |
RESULT | usbtojtagraw_fini (uint8_t interface_index) |
RESULT | usbtojtagraw_init (uint8_t interface_index) |
RESULT | usbtolpcicp_config (uint8_t interface_index) |
RESULT | usbtolpcicp_enter_program_mode (uint8_t interface_index) |
RESULT | usbtolpcicp_fini (uint8_t interface_index) |
RESULT | usbtolpcicp_in (uint8_t interface_index, uint8_t *buff, uint16_t len) |
RESULT | usbtolpcicp_init (uint8_t interface_index) |
RESULT | usbtolpcicp_out (uint8_t interface_index, uint8_t *buff, uint16_t len) |
RESULT | usbtolpcicp_poll_ready (uint8_t interface_index, uint8_t data, uint8_t *ret, uint8_t setmask, uint8_t clearmask, uint16_t pollcnt) |
RESULT | usbtomicrowire_config (uint8_t interface_index, uint16_t khz, uint8_t sel_polarity) |
RESULT | usbtomicrowire_fini (uint8_t interface_index) |
RESULT | usbtomicrowire_init (uint8_t interface_index) |
RESULT | usbtomicrowire_poll (uint8_t interface_index, uint16_t interval_us, uint16_t retry_cnt) |
RESULT | usbtomicrowire_transport (uint8_t interface_index, uint32_t opcode, uint8_t opcode_bitlen, uint32_t addr, uint8_t addr_bitlen, uint32_t data, uint8_t data_bitlen, uint8_t *reply, uint8_t reply_bitlen) |
RESULT | usbtomsp430jtag_config (uint8_t interface_index, uint8_t has_test) |
RESULT | usbtomsp430jtag_dr (uint8_t interface_index, uint32_t *dr, uint8_t bitlen, uint8_t want_ret) |
RESULT | usbtomsp430jtag_fini (uint8_t interface_index) |
RESULT | usbtomsp430jtag_init (uint8_t interface_index) |
RESULT | usbtomsp430jtag_ir (uint8_t interface_index, uint8_t *ir, uint8_t want_ret) |
RESULT | usbtomsp430jtag_poll (uint8_t interface_index, uint32_t dr, uint32_t mask, uint32_t value, uint8_t len, uint16_t poll_cnt, uint8_t toggle_tclk) |
RESULT | usbtomsp430jtag_reset (uint8_t interface_index) |
RESULT | usbtomsp430jtag_tclk (uint8_t interface_index, uint8_t value) |
RESULT | usbtomsp430jtag_tclk_strobe (uint8_t interface_index, uint16_t cnt) |
RESULT | usbtomsp430sbw_config (uint8_t interface_index, uint8_t has_test) |
RESULT | usbtomsp430sbw_dr (uint8_t interface_index, uint32_t *dr, uint8_t bitlen, uint8_t want_ret) |
RESULT | usbtomsp430sbw_fini (uint8_t interface_index) |
RESULT | usbtomsp430sbw_init (uint8_t interface_index) |
RESULT | usbtomsp430sbw_ir (uint8_t interface_index, uint8_t *ir, uint8_t want_ret) |
RESULT | usbtomsp430sbw_poll (uint8_t interface_index, uint32_t dr, uint32_t mask, uint32_t value, uint8_t len, uint16_t poll_cnt, uint8_t toggle_tclk) |
RESULT | usbtomsp430sbw_reset (uint8_t interface_index) |
RESULT | usbtomsp430sbw_tclk (uint8_t interface_index, uint8_t value) |
RESULT | usbtomsp430sbw_tclk_strobe (uint8_t interface_index, uint16_t cnt) |
RESULT | usbtopoll_checkfail (uint8_t equ, uint16_t offset, uint8_t size, uint32_t mask, uint32_t value) |
RESULT | usbtopoll_checkok (uint8_t equ, uint16_t offset, uint8_t size, uint32_t mask, uint32_t value) |
RESULT | usbtopoll_end (void) |
RESULT | usbtopoll_start (uint16_t retry_cnt, uint16_t interval_us) |
RESULT | usbtopoll_verifybuff (uint16_t offset, uint16_t size, uint8_t *buff) |
RESULT | usbtopwm_config (uint8_t interface_index, uint16_t khz, uint8_t mode) |
RESULT | usbtopwm_fini (uint8_t interface_index) |
RESULT | usbtopwm_in (uint8_t interface_index, uint16_t count, uint16_t *rate) |
RESULT | usbtopwm_init (uint8_t interface_index) |
RESULT | usbtopwm_out (uint8_t interface_index, uint16_t count, uint16_t *rate) |
RESULT | usbtopwr_config (uint8_t interface_index) |
RESULT | usbtopwr_fini (uint8_t interface_index) |
RESULT | usbtopwr_init (uint8_t interface_index) |
RESULT | usbtopwr_output (uint8_t interface_index, uint16_t millivolt) |
RESULT | usbtospi_config (uint8_t interface_index, uint32_t khz, uint8_t mode) |
RESULT | usbtospi_fini (uint8_t interface_index) |
RESULT | usbtospi_init (uint8_t interface_index) |
RESULT | usbtospi_io (uint8_t interface_index, uint8_t *out, uint8_t *in, uint16_t bytelen) |
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) |
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) |
RESULT | usbtoswim_config (uint8_t interface_index, uint8_t mhz, uint8_t cnt0, uint8_t cnt1) |
RESULT | usbtoswim_enable (uint8_t interface_index) |
RESULT | usbtoswim_fini (uint8_t interface_index) |
RESULT | usbtoswim_init (uint8_t interface_index) |
RESULT | usbtoswim_rotf (uint8_t interface_index, uint8_t *data, uint16_t bytelen, uint32_t addr) |
RESULT | usbtoswim_srst (uint8_t interface_index) |
RESULT | usbtoswim_sync (uint8_t interface_index, uint8_t mhz) |
RESULT | usbtoswim_wotf (uint8_t interface_index, uint8_t *data, uint16_t bytelen, uint32_t addr) |
RESULT | usbtousart_config (uint8_t interface_index, uint32_t baudrate, uint8_t datalength, uint8_t mode) |
RESULT | usbtousart_fini (uint8_t interface_index) |
RESULT | usbtousart_init (uint8_t interface_index) |
RESULT | usbtousart_receive (uint8_t interface_index, uint8_t *buf, uint16_t len) |
RESULT | usbtousart_send (uint8_t interface_index, uint8_t *buf, uint16_t len) |
RESULT | usbtousart_status (uint8_t interface_index, struct usart_status_t *status) |
RESULT | usbtoxxx_execute_command (void) |
RESULT | usbtoxxx_fini (void) |
RESULT | usbtoxxx_init (void) |
bool | usbtoxxx_interface_supported (uint8_t cmd) |
Variables | |
uint8_t | usbtoxxx_abilities [USB_TO_XXX_ABILITIES_LEN] |
#define USB_TO_XXX_ABILITIES_LEN 12 |
Definition at line 14 of file usbtoxxx.h.
RESULT usbtobdm_fini | ( | uint8_t | interface_index | ) |
RESULT usbtobdm_init | ( | uint8_t | interface_index | ) |
RESULT usbtobdm_sync | ( | uint8_t | interface_index, |
uint16_t * | khz | ||
) |
RESULT usbtobdm_transact | ( | uint8_t | interface_index, |
uint8_t * | out, | ||
uint8_t | outlen, | ||
uint8_t * | in, | ||
uint8_t | inlen, | ||
uint8_t | delay, | ||
uint8_t | ack | ||
) |
RESULT usbtoc2_fini | ( | uint8_t | interface_index | ) |
RESULT usbtoc2_init | ( | uint8_t | interface_index | ) |
RESULT usbtoc2_readaddr | ( | uint8_t | interface_index, |
uint8_t * | data | ||
) |
RESULT usbtoc2_readdata | ( | uint8_t | interface_index, |
uint8_t * | buf, | ||
uint8_t | len | ||
) |
RESULT usbtoc2_writeaddr | ( | uint8_t | interface_index, |
uint8_t | addr | ||
) |
RESULT usbtoc2_writedata | ( | uint8_t | interface_index, |
uint8_t * | buf, | ||
uint8_t | len | ||
) |
RESULT usbtodelay_delay | ( | uint16_t | dly | ) |
Definition at line 517 of file usbtoxxx.c.
References ERRCODE_FAILURE_OPERATION, ERRMSG_FAILURE_OPERATION, ERROR_FAIL, ERROR_OK, LOG_BUG, NULL, SET_LE_U16, type_pre, USB_TO_DELAY, usbtoxxx_buffer, usbtoxxx_current_cmd_index, usbtoxxx_ensure_buffer_size(), usbtoxxx_validate_current_command_type(), and versaloon_add_pending().
Referenced by usbtodelay_delayms(), usbtodelay_delayus(), versaloon_delay_ms(), and versaloon_delay_us().
RESULT usbtodelay_delayms | ( | uint16_t | ms | ) |
Definition at line 534 of file usbtoxxx.c.
References usbtodelay_delay().
RESULT usbtodelay_delayus | ( | uint16_t | us | ) |
Definition at line 539 of file usbtoxxx.c.
References usbtodelay_delay().
RESULT usbtodusi_config | ( | uint8_t | interface_index, |
uint32_t | khz, | ||
uint8_t | mode | ||
) |
RESULT usbtodusi_fini | ( | uint8_t | interface_index | ) |
RESULT usbtodusi_init | ( | uint8_t | interface_index | ) |
RESULT usbtodusi_io | ( | uint8_t | interface_index, |
uint8_t * | mo, | ||
uint8_t * | mi, | ||
uint8_t * | so, | ||
uint8_t * | si, | ||
uint32_t | bitlen | ||
) |
RESULT usbtogpio_config | ( | uint8_t | interface_index, |
uint32_t | mask, | ||
uint32_t | dir_mask, | ||
uint32_t | pull_en_mask, | ||
uint32_t | input_pull_mask | ||
) |
Definition at line 29 of file usbtogpio.c.
References ERRMSG_INVALID_INTERFACE_NUM, ERROR_FAIL, LOG_BUG, mask, SET_LE_U16, USB_TO_GPIO, and usbtoxxx_conf_command.
RESULT usbtogpio_fini | ( | uint8_t | interface_index | ) |
Definition at line 24 of file usbtogpio.c.
References USB_TO_GPIO, and usbtoxxx_fini_command.
RESULT usbtogpio_in | ( | uint8_t | interface_index, |
uint32_t | mask, | ||
uint32_t * | value | ||
) |
Definition at line 52 of file usbtogpio.c.
References ERRMSG_INVALID_INTERFACE_NUM, ERROR_FAIL, LOG_BUG, mask, SET_LE_U16, USB_TO_GPIO, and usbtoxxx_in_command.
RESULT usbtogpio_init | ( | uint8_t | interface_index | ) |
Definition at line 19 of file usbtogpio.c.
References USB_TO_GPIO, and usbtoxxx_init_command.
RESULT usbtogpio_out | ( | uint8_t | interface_index, |
uint32_t | mask, | ||
uint32_t | value | ||
) |
Definition at line 69 of file usbtogpio.c.
References ERRMSG_INVALID_INTERFACE_NUM, ERROR_FAIL, LOG_BUG, mask, SET_LE_U16, USB_TO_GPIO, and usbtoxxx_out_command.
RESULT usbtoi2c_config | ( | uint8_t | interface_index, |
uint16_t | khz, | ||
uint16_t | byte_interval, | ||
uint16_t | max_dly | ||
) |
RESULT usbtoi2c_fini | ( | uint8_t | interface_index | ) |
RESULT usbtoi2c_init | ( | uint8_t | interface_index | ) |
RESULT usbtoi2c_read | ( | uint8_t | interface_index, |
uint16_t | chip_addr, | ||
uint8_t * | data, | ||
uint16_t | data_len, | ||
uint8_t | stop, | ||
bool | nacklast | ||
) |
RESULT usbtoi2c_write | ( | uint8_t | interface_index, |
uint16_t | chip_addr, | ||
uint8_t * | data, | ||
uint16_t | data_len, | ||
uint8_t | stop | ||
) |
RESULT usbtoinfo_get_abilities | ( | uint8_t | abilities[USB_TO_XXX_ABILITIES_LEN] | ) |
Definition at line 358 of file usbtoxxx.c.
References ERRCODE_FAILURE_OPERATION, ERRMSG_FAILURE_OPERATION, ERROR_FAIL, ERROR_OK, LOG_BUG, type_pre, USB_TO_INFO, USB_TO_XXX_ABILITIES_LEN, usbtoxxx_ensure_buffer_size(), usbtoxxx_validate_current_command_type(), and versaloon_add_pending().
Referenced by usbtoxxx_init().
RESULT usbtoissp_enter_program_mode | ( | uint8_t | interface_index, |
uint8_t | mode | ||
) |
RESULT usbtoissp_fini | ( | uint8_t | interface_index | ) |
RESULT usbtoissp_init | ( | uint8_t | interface_index | ) |
RESULT usbtoissp_leave_program_mode | ( | uint8_t | interface_index, |
uint8_t | mode | ||
) |
RESULT usbtoissp_vector | ( | uint8_t | interface_index, |
uint8_t | operate, | ||
uint8_t | addr, | ||
uint8_t | data, | ||
uint8_t * | buf | ||
) |
RESULT usbtoissp_wait_and_poll | ( | uint8_t | interface_index | ) |
RESULT usbtojtaghl_config | ( | uint8_t | interface_index, |
uint32_t | khz, | ||
uint8_t | ub, | ||
uint8_t | ua, | ||
uint16_t | bb, | ||
uint16_t | ba | ||
) |
RESULT usbtojtaghl_dr | ( | uint8_t | interface_index, |
uint8_t * | dr, | ||
uint16_t | bitlen, | ||
uint8_t | idle, | ||
uint8_t | want_ret | ||
) |
RESULT usbtojtaghl_fini | ( | uint8_t | interface_index | ) |
RESULT usbtojtaghl_init | ( | uint8_t | interface_index | ) |
RESULT usbtojtaghl_ir | ( | uint8_t | interface_index, |
uint8_t * | ir, | ||
uint16_t | bitlen, | ||
uint8_t | idle, | ||
uint8_t | want_ret | ||
) |
RESULT usbtojtaghl_register_callback | ( | uint8_t | index, |
jtag_callback_t | send_callback, | ||
jtag_callback_t | receive_callback | ||
) |
RESULT usbtojtaghl_runtest | ( | uint8_t | interface_index, |
uint32_t | cycles | ||
) |
RESULT usbtojtaghl_tms | ( | uint8_t | interface_index, |
uint8_t * | tms, | ||
uint16_t | bitlen | ||
) |
RESULT usbtojtagll_config | ( | uint8_t | interface_index, |
uint32_t | khz | ||
) |
RESULT usbtojtagll_fini | ( | uint8_t | interface_index | ) |
RESULT usbtojtagll_init | ( | uint8_t | interface_index | ) |
RESULT usbtojtagll_scan | ( | uint8_t | interface_index, |
uint8_t * | data, | ||
uint16_t | bitlen, | ||
uint8_t | tms_before_valid, | ||
uint8_t | tms_before, | ||
uint8_t | tms_after0, | ||
uint8_t | tms_after1 | ||
) |
RESULT usbtojtagll_tms | ( | uint8_t | interface_index, |
uint8_t * | tms, | ||
uint8_t | bytelen | ||
) |
RESULT usbtojtagll_tms_clocks | ( | uint8_t | interface_index, |
uint32_t | bytelen, | ||
uint8_t | tms | ||
) |
RESULT usbtojtagraw_config | ( | uint8_t | interface_index, |
uint32_t | khz | ||
) |
Definition at line 29 of file usbtojtagraw.c.
References ERRMSG_INVALID_INTERFACE_NUM, ERROR_FAIL, LOG_BUG, SET_LE_U32, USB_TO_JTAG_RAW, and usbtoxxx_conf_command.
RESULT usbtojtagraw_execute | ( | uint8_t | interface_index, |
uint8_t * | tdi, | ||
uint8_t * | tms, | ||
uint8_t * | tdo, | ||
uint32_t | bitlen | ||
) |
Definition at line 45 of file usbtojtagraw.c.
References ERRMSG_INVALID_INTERFACE_NUM, ERROR_FAIL, LOG_BUG, SET_LE_U32, USB_TO_JTAG_RAW, usbtoxxx_inout_command, and versaloon_cmd_buf.
RESULT usbtojtagraw_fini | ( | uint8_t | interface_index | ) |
Definition at line 24 of file usbtojtagraw.c.
References USB_TO_JTAG_RAW, and usbtoxxx_fini_command.
RESULT usbtojtagraw_init | ( | uint8_t | interface_index | ) |
Definition at line 19 of file usbtojtagraw.c.
References USB_TO_JTAG_RAW, and usbtoxxx_init_command.
RESULT usbtolpcicp_config | ( | uint8_t | interface_index | ) |
RESULT usbtolpcicp_enter_program_mode | ( | uint8_t | interface_index | ) |
RESULT usbtolpcicp_fini | ( | uint8_t | interface_index | ) |
RESULT usbtolpcicp_in | ( | uint8_t | interface_index, |
uint8_t * | buff, | ||
uint16_t | len | ||
) |
RESULT usbtolpcicp_init | ( | uint8_t | interface_index | ) |
RESULT usbtolpcicp_out | ( | uint8_t | interface_index, |
uint8_t * | buff, | ||
uint16_t | len | ||
) |
RESULT usbtolpcicp_poll_ready | ( | uint8_t | interface_index, |
uint8_t | data, | ||
uint8_t * | ret, | ||
uint8_t | setmask, | ||
uint8_t | clearmask, | ||
uint16_t | pollcnt | ||
) |
RESULT usbtomicrowire_config | ( | uint8_t | interface_index, |
uint16_t | khz, | ||
uint8_t | sel_polarity | ||
) |
RESULT usbtomicrowire_fini | ( | uint8_t | interface_index | ) |
RESULT usbtomicrowire_init | ( | uint8_t | interface_index | ) |
RESULT usbtomicrowire_poll | ( | uint8_t | interface_index, |
uint16_t | interval_us, | ||
uint16_t | retry_cnt | ||
) |
RESULT usbtomicrowire_transport | ( | uint8_t | interface_index, |
uint32_t | opcode, | ||
uint8_t | opcode_bitlen, | ||
uint32_t | addr, | ||
uint8_t | addr_bitlen, | ||
uint32_t | data, | ||
uint8_t | data_bitlen, | ||
uint8_t * | reply, | ||
uint8_t | reply_bitlen | ||
) |
RESULT usbtomsp430jtag_config | ( | uint8_t | interface_index, |
uint8_t | has_test | ||
) |
RESULT usbtomsp430jtag_dr | ( | uint8_t | interface_index, |
uint32_t * | dr, | ||
uint8_t | bitlen, | ||
uint8_t | want_ret | ||
) |
RESULT usbtomsp430jtag_fini | ( | uint8_t | interface_index | ) |
RESULT usbtomsp430jtag_init | ( | uint8_t | interface_index | ) |
RESULT usbtomsp430jtag_ir | ( | uint8_t | interface_index, |
uint8_t * | ir, | ||
uint8_t | want_ret | ||
) |
RESULT usbtomsp430jtag_poll | ( | uint8_t | interface_index, |
uint32_t | dr, | ||
uint32_t | mask, | ||
uint32_t | value, | ||
uint8_t | len, | ||
uint16_t | poll_cnt, | ||
uint8_t | toggle_tclk | ||
) |
RESULT usbtomsp430jtag_reset | ( | uint8_t | interface_index | ) |
RESULT usbtomsp430jtag_tclk | ( | uint8_t | interface_index, |
uint8_t | value | ||
) |
RESULT usbtomsp430jtag_tclk_strobe | ( | uint8_t | interface_index, |
uint16_t | cnt | ||
) |
RESULT usbtomsp430sbw_config | ( | uint8_t | interface_index, |
uint8_t | has_test | ||
) |
RESULT usbtomsp430sbw_dr | ( | uint8_t | interface_index, |
uint32_t * | dr, | ||
uint8_t | bitlen, | ||
uint8_t | want_ret | ||
) |
RESULT usbtomsp430sbw_fini | ( | uint8_t | interface_index | ) |
RESULT usbtomsp430sbw_init | ( | uint8_t | interface_index | ) |
RESULT usbtomsp430sbw_ir | ( | uint8_t | interface_index, |
uint8_t * | ir, | ||
uint8_t | want_ret | ||
) |
RESULT usbtomsp430sbw_poll | ( | uint8_t | interface_index, |
uint32_t | dr, | ||
uint32_t | mask, | ||
uint32_t | value, | ||
uint8_t | len, | ||
uint16_t | poll_cnt, | ||
uint8_t | toggle_tclk | ||
) |
RESULT usbtomsp430sbw_reset | ( | uint8_t | interface_index | ) |
RESULT usbtomsp430sbw_tclk | ( | uint8_t | interface_index, |
uint8_t | value | ||
) |
RESULT usbtomsp430sbw_tclk_strobe | ( | uint8_t | interface_index, |
uint16_t | cnt | ||
) |
RESULT usbtopoll_checkfail | ( | uint8_t | equ, |
uint16_t | offset, | ||
uint8_t | size, | ||
uint32_t | mask, | ||
uint32_t | value | ||
) |
Definition at line 454 of file usbtoxxx.c.
References ERRCODE_FAILURE_OPERATION, ERRCODE_INVALID_PARAMETER, ERRMSG_FAILURE_OPERATION, ERRMSG_INVALID_PARAMETER, ERROR_FAIL, ERROR_OK, LOG_BUG, mask, offset, poll_nesting, SET_LE_U16, size, type_pre, USB_TO_POLL, USB_TO_POLL_CHECKFAIL, usbtoxxx_buffer, usbtoxxx_current_cmd_index, usbtoxxx_ensure_buffer_size(), and usbtoxxx_validate_current_command_type().
RESULT usbtopoll_checkok | ( | uint8_t | equ, |
uint16_t | offset, | ||
uint8_t | size, | ||
uint32_t | mask, | ||
uint32_t | value | ||
) |
Definition at line 418 of file usbtoxxx.c.
References ERRCODE_FAILURE_OPERATION, ERRCODE_INVALID_PARAMETER, ERRMSG_FAILURE_OPERATION, ERRMSG_INVALID_PARAMETER, ERROR_FAIL, ERROR_OK, LOG_BUG, mask, offset, poll_nesting, SET_LE_U16, size, type_pre, USB_TO_POLL, USB_TO_POLL_CHECKOK, usbtoxxx_buffer, usbtoxxx_current_cmd_index, usbtoxxx_ensure_buffer_size(), and usbtoxxx_validate_current_command_type().
RESULT usbtopoll_end | ( | void | ) |
Definition at line 396 of file usbtoxxx.c.
References ERRCODE_FAILURE_OPERATION, ERRMSG_FAILURE_OPERATION, ERROR_FAIL, ERROR_OK, LOG_BUG, NULL, poll_nesting, type_pre, USB_TO_POLL, USB_TO_POLL_END, usbtoxxx_buffer, usbtoxxx_current_cmd_index, usbtoxxx_ensure_buffer_size(), usbtoxxx_validate_current_command_type(), and versaloon_add_pending().
RESULT usbtopoll_start | ( | uint16_t | retry_cnt, |
uint16_t | interval_us | ||
) |
Definition at line 373 of file usbtoxxx.c.
References ERRCODE_FAILURE_OPERATION, ERRMSG_FAILURE_OPERATION, ERROR_FAIL, ERROR_OK, LOG_BUG, NULL, poll_context, poll_nesting, SET_LE_U16, type_pre, USB_TO_POLL, USB_TO_POLL_START, usbtoxxx_buffer, usbtoxxx_current_cmd_index, usbtoxxx_ensure_buffer_size(), usbtoxxx_save_context(), usbtoxxx_validate_current_command_type(), and versaloon_add_pending().
RESULT usbtopoll_verifybuff | ( | uint16_t | offset, |
uint16_t | size, | ||
uint8_t * | buff | ||
) |
Definition at line 490 of file usbtoxxx.c.
References ERRCODE_FAILURE_OPERATION, ERRMSG_FAILURE_OPERATION, ERROR_FAIL, ERROR_OK, LOG_BUG, offset, poll_nesting, SET_LE_U16, size, type_pre, USB_TO_POLL, USB_TO_POLL_VERIFYBUFF, usbtoxxx_buffer, usbtoxxx_current_cmd_index, usbtoxxx_ensure_buffer_size(), and usbtoxxx_validate_current_command_type().
RESULT usbtopwm_config | ( | uint8_t | interface_index, |
uint16_t | khz, | ||
uint8_t | mode | ||
) |
RESULT usbtopwm_fini | ( | uint8_t | interface_index | ) |
RESULT usbtopwm_in | ( | uint8_t | interface_index, |
uint16_t | count, | ||
uint16_t * | rate | ||
) |
RESULT usbtopwm_init | ( | uint8_t | interface_index | ) |
RESULT usbtopwm_out | ( | uint8_t | interface_index, |
uint16_t | count, | ||
uint16_t * | rate | ||
) |
RESULT usbtopwr_config | ( | uint8_t | interface_index | ) |
Definition at line 29 of file usbtopwr.c.
References ERRMSG_INVALID_INTERFACE_NUM, ERROR_FAIL, LOG_BUG, NULL, USB_TO_POWER, and usbtoxxx_conf_command.
Referenced by versaloon_set_target_voltage().
RESULT usbtopwr_fini | ( | uint8_t | interface_index | ) |
Definition at line 24 of file usbtopwr.c.
References USB_TO_POWER, and usbtoxxx_fini_command.
Referenced by versaloon_set_target_voltage().
RESULT usbtopwr_init | ( | uint8_t | interface_index | ) |
Definition at line 19 of file usbtopwr.c.
References USB_TO_POWER, and usbtoxxx_init_command.
Referenced by versaloon_set_target_voltage().
RESULT usbtopwr_output | ( | uint8_t | interface_index, |
uint16_t | millivolt | ||
) |
Definition at line 41 of file usbtopwr.c.
References ERRMSG_INVALID_INTERFACE_NUM, ERROR_FAIL, LOG_BUG, USB_TO_POWER, and usbtoxxx_out_command.
Referenced by versaloon_set_target_voltage().
RESULT usbtospi_config | ( | uint8_t | interface_index, |
uint32_t | khz, | ||
uint8_t | mode | ||
) |
RESULT usbtospi_fini | ( | uint8_t | interface_index | ) |
RESULT usbtospi_init | ( | uint8_t | interface_index | ) |
RESULT usbtospi_io | ( | uint8_t | interface_index, |
uint8_t * | out, | ||
uint8_t * | in, | ||
uint16_t | bytelen | ||
) |
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.
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().
RESULT usbtoswim_config | ( | uint8_t | interface_index, |
uint8_t | mhz, | ||
uint8_t | cnt0, | ||
uint8_t | cnt1 | ||
) |
RESULT usbtoswim_enable | ( | uint8_t | interface_index | ) |
RESULT usbtoswim_fini | ( | uint8_t | interface_index | ) |
RESULT usbtoswim_init | ( | uint8_t | interface_index | ) |
RESULT usbtoswim_rotf | ( | uint8_t | interface_index, |
uint8_t * | data, | ||
uint16_t | bytelen, | ||
uint32_t | addr | ||
) |
RESULT usbtoswim_srst | ( | uint8_t | interface_index | ) |
RESULT usbtoswim_sync | ( | uint8_t | interface_index, |
uint8_t | mhz | ||
) |
RESULT usbtoswim_wotf | ( | uint8_t | interface_index, |
uint8_t * | data, | ||
uint16_t | bytelen, | ||
uint32_t | addr | ||
) |
RESULT usbtousart_config | ( | uint8_t | interface_index, |
uint32_t | baudrate, | ||
uint8_t | datalength, | ||
uint8_t | mode | ||
) |
RESULT usbtousart_fini | ( | uint8_t | interface_index | ) |
RESULT usbtousart_init | ( | uint8_t | interface_index | ) |
RESULT usbtousart_receive | ( | uint8_t | interface_index, |
uint8_t * | buf, | ||
uint16_t | len | ||
) |
RESULT usbtousart_send | ( | uint8_t | interface_index, |
uint8_t * | buf, | ||
uint16_t | len | ||
) |
RESULT usbtousart_status | ( | uint8_t | interface_index, |
struct usart_status_t * | status | ||
) |
RESULT usbtoxxx_execute_command | ( | void | ) |
Definition at line 106 of file usbtoxxx.c.
References versaloon_pending_t::actual_data_size, versaloon_want_pos_t::buff, versaloon_pending_t::callback, cmd, collect_cmd, collect_index, ERRCODE_FAILURE_OPERATION, ERRMSG_FAILURE_OPERATION, ERRMSG_INVALID_TARGET, ERRMSG_INVALID_USAGE, ERRMSG_NOT_SUPPORT_BY, ERROR_FAIL, ERROR_OK, LOG_BUG, LOG_ERROR, versaloon_want_pos_t::next, NULL, versaloon_want_pos_t::offset, poll_nesting, versaloon_pending_t::pos, RESULT, SET_LE_U16, versaloon_want_pos_t::size, sleep_ms, type, type_pre, USB_TO_ALL, USB_TO_XXX_CMD_NOT_SUPPORT, USB_TO_XXX_OK, usbtoxxx_buffer_index, usbtoxxx_get_type_name, usbtoxxx_validate_current_command_type(), versaloon_buf, versaloon_free_want_pos(), versaloon_pending, versaloon_pending_idx, and versaloon_send_command().
Referenced by usbtoxxx_ensure_buffer_size(), usbtoxxx_init(), and versaloon_set_target_voltage().
RESULT usbtoxxx_fini | ( | void | ) |
Definition at line 247 of file usbtoxxx.c.
References ERROR_OK, NULL, type_pre, and usbtoxxx_buffer.
Referenced by versaloon_fini().
RESULT usbtoxxx_init | ( | void | ) |
Definition at line 233 of file usbtoxxx.c.
References ERROR_FAIL, ERROR_OK, GET_LE_U32, LOG_INFO, usbtoinfo_get_abilities(), usbtoxxx_abilities, usbtoxxx_execute_command(), and versaloon_pending_idx.
Referenced by versaloon_init().
bool usbtoxxx_interface_supported | ( | uint8_t | cmd | ) |
Definition at line 254 of file usbtoxxx.c.
References cmd, usbtoxxx_abilities, VERSALOON_USB_TO_XXX_CMD_END, and VERSALOON_USB_TO_XXX_CMD_START.
|
extern |
Definition at line 36 of file usbtoxxx.c.
Referenced by usbtoxxx_init(), and usbtoxxx_interface_supported().