OpenOCD
|
Go to the source code of this file.
Data Structures | |
struct | usbprog_jtag |
Macros | |
#define | PID 0x0c63 |
#define | PORT_DIRECTION 0x01 |
#define | PORT_GET 0x03 |
#define | PORT_GETBIT 0x05 |
#define | PORT_SET 0x02 |
#define | PORT_SETBIT 0x04 |
#define | READ_TDO 0x07 |
#define | TCK_BIT 2 |
#define | TDI_BIT 3 |
#define | TDO_BIT 0 |
#define | TMS_BIT 1 |
#define | UNKNOWN_COMMAND 0x00 |
#define | VID 0x1781 |
#define | WRITE_AND_READ 0x08 |
#define | WRITE_TDI 0x06 |
#define | WRITE_TMS 0x09 |
#define | WRITE_TMS_CHAIN 0x0A |
Variables | |
static char | tms_chain [64] |
static int | tms_chain_index |
struct adapter_driver | usbprog_adapter_driver |
static struct jtag_interface | usbprog_interface |
static struct usbprog_jtag * | usbprog_jtag_handle |
|
static |
Definition at line 171 of file usbprog.c.
References LOG_ERROR, state, tap_is_state_stable(), and tap_set_end_state().
Referenced by usbprog_execute_queue(), usbprog_runtest(), and usbprog_scan().
|
static |
Definition at line 86 of file usbprog.c.
References buffer, cmd, ERROR_JTAG_QUEUE_FAILED, ERROR_OK, jtag_build_buffer(), JTAG_PATHMOVE, jtag_read_buffer(), JTAG_RESET, JTAG_RUNTEST, JTAG_SCAN, jtag_scan_type(), JTAG_SLEEP, jtag_sleep(), JTAG_TLR_RESET, LOG_DEBUG_IO, LOG_ERROR, TAP_RESET, tap_set_state, type, usbprog_end_state(), usbprog_path_move(), usbprog_reset(), usbprog_runtest(), usbprog_scan(), and usbprog_state_move().
|
static |
Definition at line 146 of file usbprog.c.
References ERROR_JTAG_INIT_FAILED, ERROR_OK, LOG_ERROR, LOG_INFO, tms_chain_index, usbprog_jtag_handle, usbprog_jtag_init(), usbprog_jtag_open(), usbprog_reset(), and usbprog_write().
|
static |
Definition at line 383 of file usbprog.c.
References usbprog_jtag_set_direction().
Referenced by usbprog_init().
|
static |
Definition at line 363 of file usbprog.c.
References ERROR_OK, jtag_libusb_bulk_read(), jtag_libusb_bulk_write(), and usbprog_jtag::usb_handle.
Referenced by usbprog_jtag_set_bit(), usbprog_jtag_set_direction(), and usbprog_jtag_write_slice().
|
static |
Definition at line 336 of file usbprog.c.
References ERROR_OK, jtag_libusb_open(), NULL, PID, usbprog_jtag::usb_handle, and VID.
Referenced by usbprog_init().
|
static |
Definition at line 436 of file usbprog.c.
References buffer, ERROR_OK, jtag_libusb_bulk_read(), jtag_libusb_bulk_write(), size, usbprog_jtag::usb_handle, and WRITE_AND_READ.
Referenced by usbprog_scan().
|
static |
Definition at line 540 of file usbprog.c.
References bit(), PORT_SETBIT, and usbprog_jtag_message().
Referenced by usbprog_reset().
|
static |
Definition at line 514 of file usbprog.c.
References direction, PORT_DIRECTION, and usbprog_jtag_message().
Referenced by usbprog_jtag_init().
|
static |
Definition at line 566 of file usbprog.c.
References tms_chain, and tms_chain_index.
Referenced by usbprog_jtag_write_tms().
|
static |
Definition at line 572 of file usbprog.c.
Referenced by usbprog_path_move(), usbprog_runtest(), and usbprog_scan().
|
static |
Definition at line 388 of file usbprog.c.
References buffer, ERROR_OK, jtag_libusb_bulk_read(), jtag_libusb_bulk_write(), size, usbprog_jtag::usb_handle, and WRITE_AND_READ.
Referenced by usbprog_scan().
|
static |
Definition at line 522 of file usbprog.c.
References PORT_SET, and usbprog_jtag_message().
Referenced by usbprog_write().
|
static |
Definition at line 478 of file usbprog.c.
References buffer, jtag_libusb_bulk_write(), size, usbprog_jtag::usb_handle, and WRITE_TDI.
Referenced by usbprog_scan().
|
static |
Definition at line 509 of file usbprog.c.
References usbprog_jtag_tms_collect().
Referenced by usbprog_state_move().
|
static |
Definition at line 190 of file usbprog.c.
References cmd, LOG_ERROR, tap_get_state(), tap_set_end_state(), tap_set_state, tap_state_name(), tap_state_transition(), usbprog_jtag_handle, usbprog_jtag_tms_send(), and usbprog_write().
Referenced by usbprog_execute_queue().
|
static |
|
static |
Definition at line 319 of file usbprog.c.
References LOG_DEBUG, usbprog_jtag_handle, and usbprog_jtag_set_bit().
Referenced by usbprog_execute_queue(), and usbprog_init().
|
static |
Definition at line 225 of file usbprog.c.
References LOG_DEBUG_IO, tap_get_end_state(), tap_get_state(), TAP_IDLE, tap_state_name(), usbprog_end_state(), usbprog_jtag_handle, usbprog_jtag_tms_send(), usbprog_state_move(), and usbprog_write().
Referenced by usbprog_execute_queue().
|
static |
Definition at line 258 of file usbprog.c.
References buffer, LOG_ERROR, SCAN_IN, SCAN_IO, SCAN_OUT, size, TAP_DRPAUSE, TAP_DRSHIFT, tap_get_end_state(), tap_get_state(), TAP_IRPAUSE, TAP_IRSHIFT, tap_set_state, type, usbprog_end_state(), usbprog_jtag_handle, usbprog_jtag_read_tdo(), usbprog_jtag_tms_send(), usbprog_jtag_write_and_read(), usbprog_jtag_write_tdi(), and usbprog_state_move().
Referenced by usbprog_execute_queue().
|
static |
Definition at line 181 of file usbprog.c.
References tap_get_end_state(), tap_get_state(), tap_get_tms_path(), tap_set_state, usbprog_jtag_handle, and usbprog_jtag_write_tms().
Referenced by usbprog_execute_queue(), usbprog_runtest(), and usbprog_scan().
|
static |
Definition at line 304 of file usbprog.c.
References output_value, TCK_BIT, TDI_BIT, TMS_BIT, usbprog_jtag_handle, and usbprog_jtag_write_slice().
Referenced by usbprog_init(), usbprog_path_move(), and usbprog_runtest().
|
static |
Definition at line 71 of file usbprog.c.
Referenced by usbprog_jtag_tms_collect().
|
static |
Definition at line 72 of file usbprog.c.
Referenced by usbprog_init(), and usbprog_jtag_tms_collect().
struct adapter_driver usbprog_adapter_driver |
|
static |
|
static |
Definition at line 59 of file usbprog.c.
Referenced by usbprog_init(), usbprog_path_move(), usbprog_reset(), usbprog_runtest(), usbprog_scan(), usbprog_state_move(), and usbprog_write().