11 #ifndef OPENOCD_JTAG_DRIVERS_BITBANG_H
12 #define OPENOCD_JTAG_DRIVERS_BITBANG_H
45 int (*
write)(
int tck,
int tms,
int tdi);
60 int (*
sleep)(
unsigned int microseconds);
struct bitbang_interface * bitbang_interface
int bitbang_execute_queue(struct jtag_command *cmd_queue)
const struct swd_driver bitbang_swd
Low level callbacks (for bitbang).
int(* sleep)(unsigned int microseconds)
Sleep for some number of microseconds.
int(* swdio_read)(void)
Sample SWDIO and return the value.
int(* swd_write)(int swclk, int swdio)
Set SWCLK and SWDIO to the given value.
int(* sample)(void)
Sample TDO and put the result in a buffer.
bb_value_t(* read)(void)
Sample TDO and return the value.
bb_value_t(* read_sample)(void)
Return the next unread value from the buffer.
int(* flush)(void)
Force a flush.
int(* write)(int tck, int tms, int tdi)
Set TCK, TMS, and TDI to the given values.
void(* swdio_drive)(bool on)
Set direction of SWDIO.
int(* blink)(bool on)
Blink led (optional).
size_t buf_size
The number of TDO samples that can be buffered up before the caller has to call read_sample.