OpenOCD
|
Go to the source code of this file.
Data Structures | |
struct | cmsis_dap_backend_data |
struct | cmsis_dap_bulk_transfer |
Enumerations | |
enum | { CMSIS_DAP_TRANSFER_PENDING = 0 , CMSIS_DAP_TRANSFER_IDLE , CMSIS_DAP_TRANSFER_COMPLETED } |
Functions | |
static int | cmsis_dap_usb_alloc (struct cmsis_dap *dap, unsigned int pkt_sz) |
static void LIBUSB_CALL | cmsis_dap_usb_callback (struct libusb_transfer *transfer) |
static void | cmsis_dap_usb_cancel_all (struct cmsis_dap *dap) |
static void | cmsis_dap_usb_close (struct cmsis_dap *dap) |
static void | cmsis_dap_usb_free (struct cmsis_dap *dap) |
static int | cmsis_dap_usb_open (struct cmsis_dap *dap, uint16_t vids[], uint16_t pids[], const char *serial) |
static int | cmsis_dap_usb_read (struct cmsis_dap *dap, int transfer_timeout_ms, struct timeval *wait_timeout) |
static int | cmsis_dap_usb_write (struct cmsis_dap *dap, int txlen, int timeout_ms) |
COMMAND_HANDLER (cmsis_dap_handle_usb_interface_command) | |
Variables | |
const struct cmsis_dap_backend | cmsis_dap_usb_backend |
static int | cmsis_dap_usb_interface = -1 |
const struct command_registration | cmsis_dap_usb_subcommand_handlers [] |
anonymous enum |
Enumerator | |
---|---|
CMSIS_DAP_TRANSFER_PENDING | |
CMSIS_DAP_TRANSFER_IDLE | |
CMSIS_DAP_TRANSFER_COMPLETED |
Definition at line 36 of file cmsis_dap_usb_bulk.c.
|
static |
Definition at line 580 of file cmsis_dap_usb_bulk.c.
References cmsis_dap::bdata, cmsis_dap_bulk_transfer::buffer, cmsis_dap::command, cmsis_dap_backend_data::command_transfers, cmsis_dap_backend_data::dev_handle, ERROR_FAIL, ERROR_OK, LOG_ERROR, MAX_PENDING_REQUESTS, oocd_libusb_dev_mem_alloc(), cmsis_dap::packet_buffer, cmsis_dap::packet_buffer_size, cmsis_dap::packet_size, cmsis_dap::packet_usable_size, cmsis_dap::response, and cmsis_dap_backend_data::response_transfers.
Referenced by cmsis_dap_usb_open().
|
static |
Definition at line 428 of file cmsis_dap_usb_bulk.c.
References CMSIS_DAP_TRANSFER_COMPLETED, ERROR_JTAG_DEVICE_ERROR, ERROR_TIMEOUT_REACHED, cmsis_dap_bulk_transfer::status, cmsis_dap_bulk_transfer::transfer, and cmsis_dap_bulk_transfer::transferred.
Referenced by cmsis_dap_usb_read(), and cmsis_dap_usb_write().
|
static |
Definition at line 632 of file cmsis_dap_usb_bulk.c.
References cmsis_dap::bdata, CMSIS_DAP_TRANSFER_IDLE, CMSIS_DAP_TRANSFER_PENDING, cmsis_dap_backend_data::command_transfers, MAX_PENDING_REQUESTS, cmsis_dap_backend_data::response_transfers, cmsis_dap_bulk_transfer::status, and cmsis_dap_bulk_transfer::transfer.
|
static |
Definition at line 414 of file cmsis_dap_usb_bulk.c.
References cmsis_dap::bdata, cmsis_dap_usb_free(), cmsis_dap_backend_data::command_transfers, cmsis_dap_backend_data::dev_handle, cmsis_dap_backend_data::interface, MAX_PENDING_REQUESTS, NULL, cmsis_dap_backend_data::response_transfers, cmsis_dap_bulk_transfer::transfer, and cmsis_dap_backend_data::usb_ctx.
Referenced by cmsis_dap_usb_open().
|
static |
Definition at line 613 of file cmsis_dap_usb_bulk.c.
References cmsis_dap::bdata, cmsis_dap_bulk_transfer::buffer, cmsis_dap::command, cmsis_dap_backend_data::command_transfers, cmsis_dap_backend_data::dev_handle, MAX_PENDING_REQUESTS, NULL, oocd_libusb_dev_mem_free(), cmsis_dap::packet_buffer, cmsis_dap::packet_size, cmsis_dap::response, and cmsis_dap_backend_data::response_transfers.
Referenced by cmsis_dap_usb_close().
|
static |
Definition at line 66 of file cmsis_dap_usb_bulk.c.
References cmsis_dap::bdata, CMSIS_DAP_TRANSFER_IDLE, cmsis_dap_usb_alloc(), cmsis_dap_usb_close(), cmsis_dap_usb_interface, cmsis_dap_backend_data::command_transfers, config, cmsis_dap_backend_data::dev_handle, cmsis_dap_backend_data::ep_in, ep_in, cmsis_dap_backend_data::ep_out, ep_out, ERROR_FAIL, ERROR_OK, id, cmsis_dap_backend_data::interface, LOG_DEBUG, LOG_ERROR, LOG_INFO, LOG_WARNING, MAX_PENDING_REQUESTS, NULL, cmsis_dap_backend_data::response_transfers, serial, cmsis_dap_bulk_transfer::status, cmsis_dap_bulk_transfer::transfer, and cmsis_dap_backend_data::usb_ctx.
|
static |
Definition at line 443 of file cmsis_dap_usb_bulk.c.
References cmsis_dap::bdata, cmsis_dap_bulk_transfer::buffer, CMSIS_DAP_TRANSFER_COMPLETED, CMSIS_DAP_TRANSFER_IDLE, CMSIS_DAP_TRANSFER_PENDING, cmsis_dap_usb_callback(), cmsis_dap_backend_data::command_transfers, cmsis_dap_backend_data::dev_handle, cmsis_dap_backend_data::ep_in, ERROR_FAIL, ERROR_TIMEOUT_REACHED, LOG_DEBUG, LOG_DEBUG_IO, LOG_ERROR, cmsis_dap::packet_buffer, cmsis_dap::packet_buffer_size, cmsis_dap::packet_size, cmsis_dap::pending_fifo_get_idx, cmsis_dap_backend_data::response_transfers, cmsis_dap_bulk_transfer::status, cmsis_dap_bulk_transfer::transfer, cmsis_dap_bulk_transfer::transferred, timeval::tv_sec, and cmsis_dap_backend_data::usb_ctx.
|
static |
Definition at line 525 of file cmsis_dap_usb_bulk.c.
References cmsis_dap::bdata, cmsis_dap_bulk_transfer::buffer, CMSIS_DAP_TRANSFER_COMPLETED, CMSIS_DAP_TRANSFER_IDLE, CMSIS_DAP_TRANSFER_PENDING, cmsis_dap_usb_callback(), cmsis_dap_backend_data::command_transfers, cmsis_dap_backend_data::dev_handle, cmsis_dap_backend_data::ep_out, ERROR_FAIL, ERROR_JTAG_DEVICE_ERROR, ERROR_OK, ERROR_TIMEOUT_REACHED, LOG_DEBUG, LOG_DEBUG_IO, LOG_ERROR, cmsis_dap::packet_buffer, cmsis_dap::pending_fifo_get_idx, cmsis_dap::pending_fifo_put_idx, cmsis_dap_bulk_transfer::status, cmsis_dap_bulk_transfer::transfer, timeval::tv_sec, and cmsis_dap_backend_data::usb_ctx.
COMMAND_HANDLER | ( | cmsis_dap_handle_usb_interface_command | ) |
Definition at line 645 of file cmsis_dap_usb_bulk.c.
const struct cmsis_dap_backend cmsis_dap_usb_backend |
Definition at line 645 of file cmsis_dap_usb_bulk.c.
|
static |
Definition at line 60 of file cmsis_dap_usb_bulk.c.
Referenced by cmsis_dap_usb_open().
const struct command_registration cmsis_dap_usb_subcommand_handlers[] |
Definition at line 645 of file cmsis_dap_usb_bulk.c.