OpenOCD
cmsis_dap_usb_hid.c File Reference
Include dependency graph for cmsis_dap_usb_hid.c:

Go to the source code of this file.

Data Structures

struct  cmsis_dap_backend_data
 

Functions

static int cmsis_dap_hid_alloc (struct cmsis_dap *dap, unsigned int pkt_sz)
 
static void cmsis_dap_hid_close (struct cmsis_dap *dap)
 
static int cmsis_dap_hid_open (struct cmsis_dap *dap, uint16_t vids[], uint16_t pids[], const char *serial)
 
static int cmsis_dap_hid_read (struct cmsis_dap *dap, int timeout_ms)
 
static int cmsis_dap_hid_write (struct cmsis_dap *dap, int txlen, int timeout_ms)
 

Variables

const struct cmsis_dap_backend cmsis_dap_hid_backend
 

Function Documentation

◆ cmsis_dap_hid_alloc()

static int cmsis_dap_hid_alloc ( struct cmsis_dap dap,
unsigned int  pkt_sz 
)
static

◆ cmsis_dap_hid_close()

static void cmsis_dap_hid_close ( struct cmsis_dap dap)
static

◆ cmsis_dap_hid_open()

static int cmsis_dap_hid_open ( struct cmsis_dap dap,
uint16_t  vids[],
uint16_t  pids[],
const char *  serial 
)
static

◆ cmsis_dap_hid_read()

static int cmsis_dap_hid_read ( struct cmsis_dap dap,
int  timeout_ms 
)
static

◆ cmsis_dap_hid_write()

static int cmsis_dap_hid_write ( struct cmsis_dap dap,
int  txlen,
int  timeout_ms 
)
static

Variable Documentation

◆ cmsis_dap_hid_backend

const struct cmsis_dap_backend cmsis_dap_hid_backend
Initial value:
= {
.name = "hid",
.packet_buffer_alloc = cmsis_dap_hid_alloc,
}
static int cmsis_dap_hid_alloc(struct cmsis_dap *dap, unsigned int pkt_sz)
static int cmsis_dap_hid_open(struct cmsis_dap *dap, uint16_t vids[], uint16_t pids[], const char *serial)
static void cmsis_dap_hid_close(struct cmsis_dap *dap)
static int cmsis_dap_hid_read(struct cmsis_dap *dap, int timeout_ms)
static int cmsis_dap_hid_write(struct cmsis_dap *dap, int txlen, int timeout_ms)

Definition at line 205 of file cmsis_dap_usb_hid.c.