OpenOCD
usbtoxxx.h
Go to the documentation of this file.
1 /* SPDX-License-Identifier: GPL-2.0-or-later */
2 
3 /***************************************************************************
4  * Copyright (C) 2009 - 2010 by Simon Qian <SimonQian@SimonQian.com> *
5  ***************************************************************************/
6 
7 #ifndef OPENOCD_JTAG_DRIVERS_VERSALOON_USBTOXXX_USBTOXXX_H
8 #define OPENOCD_JTAG_DRIVERS_VERSALOON_USBTOXXX_USBTOXXX_H
9 
10 RESULT usbtoxxx_init(void);
11 RESULT usbtoxxx_fini(void);
13 
14 #define USB_TO_XXX_ABILITIES_LEN 12
16 bool usbtoxxx_interface_supported(uint8_t cmd);
17 
18 /* USB_TO_INFO */
20 
21 /* USB_TO_DELAY */
22 RESULT usbtodelay_delay(uint16_t dly);
23 RESULT usbtodelay_delayms(uint16_t ms);
24 RESULT usbtodelay_delayus(uint16_t us);
25 
26 /* USB_TO_USART */
27 RESULT usbtousart_init(uint8_t interface_index);
28 RESULT usbtousart_fini(uint8_t interface_index);
29 RESULT usbtousart_config(uint8_t interface_index, uint32_t baudrate,
30  uint8_t datalength, uint8_t mode);
31 RESULT usbtousart_send(uint8_t interface_index, uint8_t *buf, uint16_t len);
32 RESULT usbtousart_receive(uint8_t interface_index, uint8_t *buf, uint16_t len);
33 RESULT usbtousart_status(uint8_t interface_index,
34  struct usart_status_t *status);
35 
36 /* USB_TO_SPI */
37 RESULT usbtospi_init(uint8_t interface_index);
38 RESULT usbtospi_fini(uint8_t interface_index);
39 RESULT usbtospi_config(uint8_t interface_index, uint32_t khz, uint8_t mode);
40 RESULT usbtospi_io(uint8_t interface_index, uint8_t *out, uint8_t *in,
41  uint16_t bytelen);
42 
43 /* USB_TO_GPIO */
44 RESULT usbtogpio_init(uint8_t interface_index);
45 RESULT usbtogpio_fini(uint8_t interface_index);
46 RESULT usbtogpio_config(uint8_t interface_index, uint32_t mask,
47  uint32_t dir_mask, uint32_t pull_en_mask,
48  uint32_t input_pull_mask);
49 RESULT usbtogpio_in(uint8_t interface_index, uint32_t mask, uint32_t *value);
50 RESULT usbtogpio_out(uint8_t interface_index, uint32_t mask, uint32_t value);
51 
52 /* USB_TO_ISSP */
53 RESULT usbtoissp_init(uint8_t interface_index);
54 RESULT usbtoissp_fini(uint8_t interface_index);
55 RESULT usbtoissp_enter_program_mode(uint8_t interface_index, uint8_t mode);
56 RESULT usbtoissp_leave_program_mode(uint8_t interface_index, uint8_t mode);
57 RESULT usbtoissp_wait_and_poll(uint8_t interface_index);
58 RESULT usbtoissp_vector(uint8_t interface_index, uint8_t operate, uint8_t addr,
59  uint8_t data, uint8_t *buf);
60 
61 /* USB_TO_LPCICP */
62 RESULT usbtolpcicp_init(uint8_t interface_index);
63 RESULT usbtolpcicp_fini(uint8_t interface_index);
64 RESULT usbtolpcicp_config(uint8_t interface_index);
65 RESULT usbtolpcicp_enter_program_mode(uint8_t interface_index);
66 RESULT usbtolpcicp_in(uint8_t interface_index, uint8_t *buff, uint16_t len);
67 RESULT usbtolpcicp_out(uint8_t interface_index, uint8_t *buff, uint16_t len);
68 RESULT usbtolpcicp_poll_ready(uint8_t interface_index, uint8_t data,
69  uint8_t *ret, uint8_t setmask, uint8_t clearmask, uint16_t pollcnt);
70 
71 /* USB_TO_JTAG_LL */
72 RESULT usbtojtagll_init(uint8_t interface_index);
73 RESULT usbtojtagll_fini(uint8_t interface_index);
74 RESULT usbtojtagll_config(uint8_t interface_index, uint32_t khz);
75 RESULT usbtojtagll_tms(uint8_t interface_index, uint8_t *tms, uint8_t bytelen);
76 RESULT usbtojtagll_tms_clocks(uint8_t interface_index, uint32_t bytelen,
77  uint8_t tms);
78 RESULT usbtojtagll_scan(uint8_t interface_index, uint8_t *data,
79  uint16_t bitlen, uint8_t tms_before_valid,
80  uint8_t tms_before, uint8_t tms_after0,
81  uint8_t tms_after1);
82 
83 /* USB_TO_JTAG_HL */
84 RESULT usbtojtaghl_init(uint8_t interface_index);
85 RESULT usbtojtaghl_fini(uint8_t interface_index);
86 RESULT usbtojtaghl_config(uint8_t interface_index, uint32_t khz, uint8_t ub,
87  uint8_t ua, uint16_t bb, uint16_t ba);
88 RESULT usbtojtaghl_ir(uint8_t interface_index, uint8_t *ir, uint16_t bitlen,
89  uint8_t idle, uint8_t want_ret);
90 RESULT usbtojtaghl_dr(uint8_t interface_index, uint8_t *dr, uint16_t bitlen,
91  uint8_t idle, uint8_t want_ret);
92 RESULT usbtojtaghl_tms(uint8_t interface_index, uint8_t *tms, uint16_t bitlen);
93 RESULT usbtojtaghl_runtest(uint8_t interface_index, uint32_t cycles);
95  jtag_callback_t receive_callback);
96 
97 /* USB_TO_JTAG_RAW */
98 RESULT usbtojtagraw_init(uint8_t interface_index);
99 RESULT usbtojtagraw_fini(uint8_t interface_index);
100 RESULT usbtojtagraw_config(uint8_t interface_index, uint32_t khz);
101 RESULT usbtojtagraw_execute(uint8_t interface_index, uint8_t *tdi,
102  uint8_t *tms, uint8_t *tdo, uint32_t bitlen);
103 
104 /* USB_TO_C2 */
105 RESULT usbtoc2_init(uint8_t interface_index);
106 RESULT usbtoc2_fini(uint8_t interface_index);
107 RESULT usbtoc2_writeaddr(uint8_t interface_index, uint8_t addr);
108 RESULT usbtoc2_readaddr(uint8_t interface_index, uint8_t *data);
109 RESULT usbtoc2_writedata(uint8_t interface_index, uint8_t *buf, uint8_t len);
110 RESULT usbtoc2_readdata(uint8_t interface_index, uint8_t *buf, uint8_t len);
111 
112 /* USB_TO_I2C */
113 RESULT usbtoi2c_init(uint8_t interface_index);
114 RESULT usbtoi2c_fini(uint8_t interface_index);
115 RESULT usbtoi2c_config(uint8_t interface_index, uint16_t khz,
116  uint16_t byte_interval, uint16_t max_dly);
117 RESULT usbtoi2c_read(uint8_t interface_index, uint16_t chip_addr,
118  uint8_t *data, uint16_t data_len, uint8_t stop,
119  bool nacklast);
120 RESULT usbtoi2c_write(uint8_t interface_index, uint16_t chip_addr,
121  uint8_t *data, uint16_t data_len, uint8_t stop);
122 
123 /* USB_TO_MSP430_JTAG */
124 RESULT usbtomsp430jtag_init(uint8_t interface_index);
125 RESULT usbtomsp430jtag_fini(uint8_t interface_index);
126 RESULT usbtomsp430jtag_config(uint8_t interface_index, uint8_t has_test);
127 RESULT usbtomsp430jtag_ir(uint8_t interface_index, uint8_t *ir,
128  uint8_t want_ret);
129 RESULT usbtomsp430jtag_dr(uint8_t interface_index, uint32_t *dr,
130  uint8_t bitlen, uint8_t want_ret);
131 RESULT usbtomsp430jtag_tclk(uint8_t interface_index, uint8_t value);
132 RESULT usbtomsp430jtag_tclk_strobe(uint8_t interface_index, uint16_t cnt);
133 RESULT usbtomsp430jtag_reset(uint8_t interface_index);
134 RESULT usbtomsp430jtag_poll(uint8_t interface_index, uint32_t dr,
135  uint32_t mask, uint32_t value, uint8_t len,
136  uint16_t poll_cnt, uint8_t toggle_tclk);
137 
138 /* USB_TO_MSP430_SBW */
139 RESULT usbtomsp430sbw_init(uint8_t interface_index);
140 RESULT usbtomsp430sbw_fini(uint8_t interface_index);
141 RESULT usbtomsp430sbw_config(uint8_t interface_index, uint8_t has_test);
142 RESULT usbtomsp430sbw_ir(uint8_t interface_index, uint8_t *ir,
143  uint8_t want_ret);
144 RESULT usbtomsp430sbw_dr(uint8_t interface_index, uint32_t *dr,
145  uint8_t bitlen, uint8_t want_ret);
146 RESULT usbtomsp430sbw_tclk(uint8_t interface_index, uint8_t value);
147 RESULT usbtomsp430sbw_tclk_strobe(uint8_t interface_index, uint16_t cnt);
148 RESULT usbtomsp430sbw_reset(uint8_t interface_index);
149 RESULT usbtomsp430sbw_poll(uint8_t interface_index, uint32_t dr, uint32_t mask,
150  uint32_t value, uint8_t len, uint16_t poll_cnt,
151  uint8_t toggle_tclk);
152 
153 /* USB_TO_POWER */
154 RESULT usbtopwr_init(uint8_t interface_index);
155 RESULT usbtopwr_fini(uint8_t interface_index);
156 RESULT usbtopwr_config(uint8_t interface_index);
157 RESULT usbtopwr_output(uint8_t interface_index, uint16_t millivolt);
158 
159 /* USB_TO_POLL */
160 RESULT usbtopoll_start(uint16_t retry_cnt, uint16_t interval_us);
161 RESULT usbtopoll_end(void);
162 RESULT usbtopoll_checkok(uint8_t equ, uint16_t offset, uint8_t size,
163  uint32_t mask, uint32_t value);
164 RESULT usbtopoll_checkfail(uint8_t equ, uint16_t offset, uint8_t size,
165  uint32_t mask, uint32_t value);
166 RESULT usbtopoll_verifybuff(uint16_t offset, uint16_t size, uint8_t *buff);
167 
168 /* USB_TO_SWD */
169 RESULT usbtoswd_init(uint8_t interface_index);
170 RESULT usbtoswd_fini(uint8_t interface_index);
171 RESULT usbtoswd_config(uint8_t interface_index, uint8_t trn, uint16_t retry,
172  uint16_t dly);
173 RESULT usbtoswd_seqout(uint8_t interface_index, const uint8_t *data,
174  uint16_t bitlen);
175 RESULT usbtoswd_seqin(uint8_t interface_index, uint8_t *data, uint16_t bitlen);
176 RESULT usbtoswd_transact(uint8_t interface_index, uint8_t request,
177  uint32_t *data, uint8_t *ack);
178 
179 /* USB_TO_SWIM */
180 RESULT usbtoswim_init(uint8_t interface_index);
181 RESULT usbtoswim_fini(uint8_t interface_index);
182 RESULT usbtoswim_config(uint8_t interface_index, uint8_t mhz, uint8_t cnt0,
183  uint8_t cnt1);
184 RESULT usbtoswim_srst(uint8_t interface_index);
185 RESULT usbtoswim_wotf(uint8_t interface_index, uint8_t *data,
186  uint16_t bytelen, uint32_t addr);
187 RESULT usbtoswim_rotf(uint8_t interface_index, uint8_t *data,
188  uint16_t bytelen, uint32_t addr);
189 RESULT usbtoswim_sync(uint8_t interface_index, uint8_t mhz);
190 RESULT usbtoswim_enable(uint8_t interface_index);
191 
192 /* USB_TO_BDM */
193 RESULT usbtobdm_init(uint8_t interface_index);
194 RESULT usbtobdm_fini(uint8_t interface_index);
195 RESULT usbtobdm_sync(uint8_t interface_index, uint16_t *khz);
196 RESULT usbtobdm_transact(uint8_t interface_index, uint8_t *out,
197  uint8_t outlen, uint8_t *in, uint8_t inlen, uint8_t delay, uint8_t ack);
198 
199 /* USB_TO_DUSI */
200 RESULT usbtodusi_init(uint8_t interface_index);
201 RESULT usbtodusi_fini(uint8_t interface_index);
202 RESULT usbtodusi_config(uint8_t interface_index, uint32_t khz, uint8_t mode);
203 RESULT usbtodusi_io(uint8_t interface_index, uint8_t *mo, uint8_t *mi,
204  uint8_t *so, uint8_t *si, uint32_t bitlen);
205 
206 /* USB_TO_MICROWIRE */
207 RESULT usbtomicrowire_init(uint8_t interface_index);
208 RESULT usbtomicrowire_fini(uint8_t interface_index);
209 RESULT usbtomicrowire_config(uint8_t interface_index, uint16_t khz,
210  uint8_t sel_polarity);
211 RESULT usbtomicrowire_transport(uint8_t interface_index,
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);
216 RESULT usbtomicrowire_poll(uint8_t interface_index, uint16_t interval_us,
217  uint16_t retry_cnt);
218 
219 /* USB_TO_PWM */
220 RESULT usbtopwm_init(uint8_t interface_index);
221 RESULT usbtopwm_fini(uint8_t interface_index);
222 RESULT usbtopwm_config(uint8_t interface_index, uint16_t khz, uint8_t mode);
223 RESULT usbtopwm_out(uint8_t interface_index, uint16_t count, uint16_t *rate);
224 RESULT usbtopwm_in(uint8_t interface_index, uint16_t count, uint16_t *rate);
225 
226 #endif /* OPENOCD_JTAG_DRIVERS_VERSALOON_USBTOXXX_USBTOXXX_H */
enum arm_mode mode
Definition: armv4_5.c:277
int mask
Definition: esirisc.c:1698
uint32_t dr
Definition: imx_gpio.c:0
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.
Definition: jtag.h:376
uint32_t addr
Definition: nuttx.c:65
size_t size
Size of the control block search area.
Definition: rtt/rtt.c:30
RESULT usbtodelay_delayms(uint16_t ms)
Definition: usbtoxxx.c:534
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)
Definition: usbtoxxx.c:539
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)
Definition: usbtoxxx.c:254
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)
Definition: usbtoxxx.c:233
RESULT usbtolpcicp_config(uint8_t interface_index)
RESULT usbtogpio_init(uint8_t interface_index)
Definition: usbtogpio.c:19
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: usbtogpio.c:29
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)
Definition: usbtoxxx.c:396
RESULT usbtojtagraw_config(uint8_t interface_index, uint32_t khz)
Definition: usbtojtagraw.c:29
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)
Definition: usbtogpio.c:24
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)
Definition: usbtopwr.c:19
uint8_t usbtoxxx_abilities[USB_TO_XXX_ABILITIES_LEN]
Definition: usbtoxxx.c:36
RESULT usbtopoll_checkfail(uint8_t equ, uint16_t offset, uint8_t size, uint32_t mask, uint32_t value)
Definition: usbtoxxx.c:454
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)
Definition: usbtoswd.c:90
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)
Definition: usbtoswd.c:108
RESULT usbtolpcicp_init(uint8_t interface_index)
RESULT usbtoswim_init(uint8_t interface_index)
RESULT usbtopwr_fini(uint8_t interface_index)
Definition: usbtopwr.c:24
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)
Definition: usbtoxxx.c:418
RESULT usbtopoll_start(uint16_t retry_cnt, uint16_t interval_us)
Definition: usbtoxxx.c:373
RESULT usbtojtagraw_execute(uint8_t interface_index, uint8_t *tdi, uint8_t *tms, uint8_t *tdo, uint32_t bitlen)
Definition: usbtojtagraw.c:45
RESULT usbtodelay_delay(uint16_t dly)
Definition: usbtoxxx.c:517
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)
Definition: usbtoswd.c:52
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)
Definition: usbtoxxx.c:106
RESULT usbtopoll_verifybuff(uint16_t offset, uint16_t size, uint8_t *buff)
Definition: usbtoxxx.c:490
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)
Definition: usbtoswd.c:42
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)
Definition: usbtopwr.c:41
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)
Definition: usbtoswd.c:47
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)
Definition: usbtogpio.c:52
RESULT usbtoc2_writeaddr(uint8_t interface_index, uint8_t addr)
RESULT usbtoswd_seqout(uint8_t interface_index, const uint8_t *data, uint16_t bitlen)
Definition: usbtoswd.c:71
RESULT usbtopwr_config(uint8_t interface_index)
Definition: usbtopwr.c:29
RESULT usbtopwm_init(uint8_t interface_index)
RESULT usbtojtagraw_fini(uint8_t interface_index)
Definition: usbtojtagraw.c:24
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)
Definition: usbtogpio.c:69
RESULT usbtojtagraw_init(uint8_t interface_index)
Definition: usbtojtagraw.c:19
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])
Definition: usbtoxxx.c:358
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
Definition: usbtoxxx.h:14
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)
Definition: usbtoxxx.c:247
uint8_t status[4]
Definition: vdebug.c:17
uint8_t cmd
Definition: vdebug.c:1
uint8_t offset[4]
Definition: vdebug.c:9
uint8_t count[4]
Definition: vdebug.c:22
#define RESULT