Go to the source code of this file.
◆ cmsis_dap_usb_alloc()
static int cmsis_dap_usb_alloc |
( |
struct cmsis_dap * |
dap, |
|
|
unsigned int |
pkt_sz |
|
) |
| |
|
static |
◆ cmsis_dap_usb_close()
static void cmsis_dap_usb_close |
( |
struct cmsis_dap * |
dap | ) |
|
|
static |
◆ cmsis_dap_usb_open()
static int cmsis_dap_usb_open |
( |
struct cmsis_dap * |
dap, |
|
|
uint16_t |
vids[], |
|
|
uint16_t |
pids[], |
|
|
const char * |
serial |
|
) |
| |
|
static |
Definition at line 47 of file cmsis_dap_usb_bulk.c.
References cmsis_dap::bdata, cmsis_dap_usb_close(), cmsis_dap_usb_interface, cmsis_dap::command, 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, NULL, cmsis_dap::packet_buffer, cmsis_dap::packet_buffer_size, cmsis_dap::packet_size, cmsis_dap::response, serial, and cmsis_dap_backend_data::usb_ctx.
◆ cmsis_dap_usb_read()
static int cmsis_dap_usb_read |
( |
struct cmsis_dap * |
dap, |
|
|
int |
timeout_ms |
|
) |
| |
|
static |
◆ cmsis_dap_usb_write()
static int cmsis_dap_usb_write |
( |
struct cmsis_dap * |
dap, |
|
|
int |
txlen, |
|
|
int |
timeout_ms |
|
) |
| |
|
static |
◆ COMMAND_HANDLER()
COMMAND_HANDLER |
( |
cmsis_dap_handle_usb_interface_command |
| ) |
|
◆ cmsis_dap_usb_backend
Initial value:= {
.name = "usb_bulk",
}
static int cmsis_dap_usb_write(struct cmsis_dap *dap, int txlen, int timeout_ms)
static int cmsis_dap_usb_alloc(struct cmsis_dap *dap, unsigned int pkt_sz)
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 timeout_ms)
static void cmsis_dap_usb_close(struct cmsis_dap *dap)
Definition at line 455 of file cmsis_dap_usb_bulk.c.
◆ cmsis_dap_usb_interface
int cmsis_dap_usb_interface = -1 |
|
static |
◆ cmsis_dap_usb_subcommand_handlers
Initial value:= {
{
.name = "interface",
.handler = &cmsis_dap_handle_usb_interface_command,
.help = "set the USB interface number to use (for USB bulk backend only)",
.usage = "<interface_number>",
},
}
#define COMMAND_REGISTRATION_DONE
Use this as the last entry in an array of command_registration records.
Definition at line 455 of file cmsis_dap_usb_bulk.c.