7 #ifndef OPENOCD_JTAG_DRIVERS_VERSALOON_USBTOXXX_USBTOXXX_H
8 #define OPENOCD_JTAG_DRIVERS_VERSALOON_USBTOXXX_USBTOXXX_H
14 #define USB_TO_XXX_ABILITIES_LEN 12
30 uint8_t datalength, uint8_t
mode);
47 uint32_t dir_mask, uint32_t pull_en_mask,
48 uint32_t input_pull_mask);
59 uint8_t data, uint8_t *buf);
69 uint8_t *ret, uint8_t setmask, uint8_t clearmask, uint16_t pollcnt);
79 uint16_t bitlen, uint8_t tms_before_valid,
80 uint8_t tms_before, uint8_t tms_after0,
87 uint8_t ua, uint16_t bb, uint16_t ba);
89 uint8_t idle, uint8_t want_ret);
91 uint8_t idle, uint8_t want_ret);
102 uint8_t *tms, uint8_t *tdo, uint32_t bitlen);
116 uint16_t byte_interval, uint16_t max_dly);
118 uint8_t *data, uint16_t data_len, uint8_t stop,
121 uint8_t *data, uint16_t data_len, uint8_t stop);
130 uint8_t bitlen, uint8_t want_ret);
135 uint32_t
mask, uint32_t value, uint8_t len,
136 uint16_t poll_cnt, uint8_t toggle_tclk);
145 uint8_t bitlen, uint8_t want_ret);
150 uint32_t value, uint8_t len, uint16_t poll_cnt,
151 uint8_t toggle_tclk);
163 uint32_t
mask, uint32_t value);
165 uint32_t
mask, uint32_t value);
177 uint32_t *data, uint8_t *ack);
186 uint16_t bytelen, uint32_t
addr);
188 uint16_t bytelen, uint32_t
addr);
197 uint8_t outlen, uint8_t *in, uint8_t inlen, uint8_t delay, uint8_t ack);
204 uint8_t *so, uint8_t *si, uint32_t bitlen);
210 uint8_t sel_polarity);
212 uint32_t opcode, uint8_t opcode_bitlen,
213 uint32_t
addr, uint8_t addr_bitlen,
214 uint32_t data, uint8_t data_bitlen,
215 uint8_t *reply, uint8_t reply_bitlen);
int(* jtag_callback_t)(jtag_callback_data_t data0, jtag_callback_data_t data1, jtag_callback_data_t data2, jtag_callback_data_t data3)
Defines the interface of the JTAG callback mechanism.
size_t size
Size of the control block search area.
RESULT usbtodelay_delayms(uint16_t ms)
RESULT usbtojtaghl_ir(uint8_t interface_index, uint8_t *ir, uint16_t bitlen, uint8_t idle, uint8_t want_ret)
RESULT usbtomsp430jtag_init(uint8_t interface_index)
RESULT usbtobdm_init(uint8_t interface_index)
RESULT usbtoswim_srst(uint8_t interface_index)
RESULT usbtolpcicp_enter_program_mode(uint8_t interface_index)
RESULT usbtodelay_delayus(uint16_t us)
RESULT usbtoswim_rotf(uint8_t interface_index, uint8_t *data, uint16_t bytelen, uint32_t addr)
RESULT usbtoissp_leave_program_mode(uint8_t interface_index, uint8_t mode)
bool usbtoxxx_interface_supported(uint8_t cmd)
RESULT usbtoi2c_write(uint8_t interface_index, uint16_t chip_addr, uint8_t *data, uint16_t data_len, uint8_t stop)
RESULT usbtospi_config(uint8_t interface_index, uint32_t khz, uint8_t mode)
RESULT usbtoxxx_init(void)
RESULT usbtolpcicp_config(uint8_t interface_index)
RESULT usbtogpio_init(uint8_t interface_index)
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 usbtoc2_fini(uint8_t interface_index)
RESULT usbtojtagll_tms_clocks(uint8_t interface_index, uint32_t bytelen, uint8_t tms)
RESULT usbtomsp430jtag_tclk(uint8_t interface_index, uint8_t value)
RESULT usbtopwm_config(uint8_t interface_index, uint16_t khz, uint8_t mode)
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 usbtoswim_sync(uint8_t interface_index, uint8_t mhz)
RESULT usbtoi2c_config(uint8_t interface_index, uint16_t khz, uint16_t byte_interval, uint16_t max_dly)
RESULT usbtoissp_fini(uint8_t interface_index)
RESULT usbtopoll_end(void)
RESULT usbtojtagraw_config(uint8_t interface_index, uint32_t khz)
RESULT usbtojtaghl_runtest(uint8_t interface_index, uint32_t cycles)
RESULT usbtojtaghl_tms(uint8_t interface_index, uint8_t *tms, uint16_t bitlen)
RESULT usbtogpio_fini(uint8_t interface_index)
RESULT usbtospi_fini(uint8_t interface_index)
RESULT usbtoswim_fini(uint8_t interface_index)
RESULT usbtopwm_out(uint8_t interface_index, uint16_t count, uint16_t *rate)
RESULT usbtopwm_in(uint8_t interface_index, uint16_t count, uint16_t *rate)
RESULT usbtomsp430jtag_ir(uint8_t interface_index, uint8_t *ir, uint8_t want_ret)
RESULT usbtojtagll_fini(uint8_t interface_index)
RESULT usbtojtaghl_init(uint8_t interface_index)
RESULT usbtoissp_wait_and_poll(uint8_t interface_index)
RESULT usbtousart_init(uint8_t interface_index)
RESULT usbtoswim_enable(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 usbtoc2_readaddr(uint8_t interface_index, uint8_t *data)
RESULT usbtopwr_init(uint8_t interface_index)
uint8_t usbtoxxx_abilities[USB_TO_XXX_ABILITIES_LEN]
RESULT usbtopoll_checkfail(uint8_t equ, uint16_t offset, uint8_t size, uint32_t mask, uint32_t value)
RESULT usbtojtaghl_register_callback(uint8_t index, jtag_callback_t send_callback, jtag_callback_t receive_callback)
RESULT usbtoc2_readdata(uint8_t interface_index, uint8_t *buf, uint8_t len)
RESULT usbtomicrowire_init(uint8_t interface_index)
RESULT usbtoi2c_init(uint8_t interface_index)
RESULT usbtomsp430sbw_dr(uint8_t interface_index, uint32_t *dr, uint8_t bitlen, uint8_t want_ret)
RESULT usbtoswd_seqin(uint8_t interface_index, uint8_t *data, uint16_t bitlen)
RESULT usbtobdm_sync(uint8_t interface_index, uint16_t *khz)
RESULT usbtoc2_writedata(uint8_t interface_index, uint8_t *buf, uint8_t len)
RESULT usbtousart_send(uint8_t interface_index, uint8_t *buf, uint16_t len)
RESULT usbtousart_receive(uint8_t interface_index, uint8_t *buf, uint16_t len)
RESULT usbtoswd_transact(uint8_t interface_index, uint8_t request, uint32_t *data, uint8_t *ack)
RESULT usbtolpcicp_init(uint8_t interface_index)
RESULT usbtoswim_init(uint8_t interface_index)
RESULT usbtopwr_fini(uint8_t interface_index)
RESULT usbtojtaghl_dr(uint8_t interface_index, uint8_t *dr, uint16_t bitlen, uint8_t idle, uint8_t want_ret)
RESULT usbtopoll_checkok(uint8_t equ, uint16_t offset, uint8_t size, uint32_t mask, uint32_t value)
RESULT usbtopoll_start(uint16_t retry_cnt, uint16_t interval_us)
RESULT usbtojtagraw_execute(uint8_t interface_index, uint8_t *tdi, uint8_t *tms, uint8_t *tdo, uint32_t bitlen)
RESULT usbtodelay_delay(uint16_t dly)
RESULT usbtospi_io(uint8_t interface_index, uint8_t *out, uint8_t *in, uint16_t bytelen)
RESULT usbtomsp430sbw_tclk_strobe(uint8_t interface_index, uint16_t cnt)
RESULT usbtousart_config(uint8_t interface_index, uint32_t baudrate, uint8_t datalength, uint8_t mode)
RESULT usbtoswd_config(uint8_t interface_index, uint8_t trn, uint16_t retry, uint16_t dly)
RESULT usbtoswim_config(uint8_t interface_index, uint8_t mhz, uint8_t cnt0, uint8_t cnt1)
RESULT usbtojtaghl_fini(uint8_t interface_index)
RESULT usbtomsp430jtag_config(uint8_t interface_index, uint8_t has_test)
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 usbtoxxx_execute_command(void)
RESULT usbtopoll_verifybuff(uint16_t offset, uint16_t size, uint8_t *buff)
RESULT usbtopwm_fini(uint8_t interface_index)
RESULT usbtobdm_fini(uint8_t interface_index)
RESULT usbtoissp_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 usbtolpcicp_in(uint8_t interface_index, uint8_t *buff, uint16_t len)
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 usbtojtagll_tms(uint8_t interface_index, uint8_t *tms, uint8_t bytelen)
RESULT usbtoswd_init(uint8_t interface_index)
RESULT usbtomsp430sbw_fini(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 usbtopwr_output(uint8_t interface_index, uint16_t millivolt)
RESULT usbtoc2_init(uint8_t interface_index)
RESULT usbtodusi_fini(uint8_t interface_index)
RESULT usbtomsp430sbw_reset(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 usbtoissp_vector(uint8_t interface_index, uint8_t operate, uint8_t addr, uint8_t data, uint8_t *buf)
RESULT usbtousart_status(uint8_t interface_index, struct usart_status_t *status)
RESULT usbtodusi_init(uint8_t interface_index)
RESULT usbtojtagll_init(uint8_t interface_index)
RESULT usbtomsp430jtag_fini(uint8_t interface_index)
RESULT usbtolpcicp_poll_ready(uint8_t interface_index, uint8_t data, uint8_t *ret, uint8_t setmask, uint8_t clearmask, uint16_t pollcnt)
RESULT usbtomsp430jtag_tclk_strobe(uint8_t interface_index, uint16_t cnt)
RESULT usbtoi2c_fini(uint8_t interface_index)
RESULT usbtoswd_fini(uint8_t interface_index)
RESULT usbtousart_fini(uint8_t interface_index)
RESULT usbtomsp430jtag_dr(uint8_t interface_index, uint32_t *dr, uint8_t bitlen, uint8_t want_ret)
RESULT usbtojtagll_config(uint8_t interface_index, uint32_t khz)
RESULT usbtomicrowire_config(uint8_t interface_index, uint16_t khz, uint8_t sel_polarity)
RESULT usbtodusi_config(uint8_t interface_index, uint32_t khz, uint8_t mode)
RESULT usbtomsp430sbw_config(uint8_t interface_index, uint8_t has_test)
RESULT usbtogpio_in(uint8_t interface_index, uint32_t mask, uint32_t *value)
RESULT usbtoc2_writeaddr(uint8_t interface_index, uint8_t addr)
RESULT usbtoswd_seqout(uint8_t interface_index, const uint8_t *data, uint16_t bitlen)
RESULT usbtopwr_config(uint8_t interface_index)
RESULT usbtopwm_init(uint8_t interface_index)
RESULT usbtojtagraw_fini(uint8_t interface_index)
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 usbtogpio_out(uint8_t interface_index, uint32_t mask, uint32_t value)
RESULT usbtojtagraw_init(uint8_t interface_index)
RESULT usbtolpcicp_out(uint8_t interface_index, uint8_t *buff, uint16_t len)
RESULT usbtomsp430sbw_ir(uint8_t interface_index, uint8_t *ir, uint8_t want_ret)
RESULT usbtospi_init(uint8_t interface_index)
RESULT usbtomsp430sbw_init(uint8_t interface_index)
RESULT usbtoinfo_get_abilities(uint8_t abilities[USB_TO_XXX_ABILITIES_LEN])
RESULT usbtoswim_wotf(uint8_t interface_index, uint8_t *data, uint16_t bytelen, uint32_t addr)
RESULT usbtomsp430jtag_reset(uint8_t interface_index)
#define USB_TO_XXX_ABILITIES_LEN
RESULT usbtomicrowire_fini(uint8_t interface_index)
RESULT usbtoissp_enter_program_mode(uint8_t interface_index, uint8_t mode)
RESULT usbtomsp430sbw_tclk(uint8_t interface_index, uint8_t value)
RESULT usbtolpcicp_fini(uint8_t interface_index)
RESULT usbtomicrowire_poll(uint8_t interface_index, uint16_t interval_us, uint16_t retry_cnt)
RESULT usbtoxxx_fini(void)