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

Go to the source code of this file.

Functions

RESULT usbtoswd_config (uint8_t interface_index, uint8_t trn, uint16_t retry, uint16_t dly)
 
RESULT usbtoswd_fini (uint8_t interface_index)
 
RESULT usbtoswd_init (uint8_t interface_index)
 
static RESULT usbtoswd_read_callback (void *p, uint8_t *src, uint8_t *processed)
 
RESULT usbtoswd_seqin (uint8_t interface_index, uint8_t *data, uint16_t bitlen)
 
RESULT usbtoswd_seqout (uint8_t interface_index, const uint8_t *data, uint16_t bitlen)
 
RESULT usbtoswd_transact (uint8_t interface_index, uint8_t request, uint32_t *data, uint8_t *ack)
 
static RESULT usbtoswd_write_callback (void *p, uint8_t *src, uint8_t *processed)
 

Function Documentation

◆ usbtoswd_config()

RESULT usbtoswd_config ( uint8_t  interface_index,
uint8_t  trn,
uint16_t  retry,
uint16_t  dly 
)

◆ usbtoswd_fini()

RESULT usbtoswd_fini ( uint8_t  interface_index)

Definition at line 47 of file usbtoswd.c.

References USB_TO_SWD, and usbtoxxx_fini_command.

◆ usbtoswd_init()

RESULT usbtoswd_init ( uint8_t  interface_index)

Definition at line 42 of file usbtoswd.c.

References USB_TO_SWD, and usbtoxxx_init_command.

◆ usbtoswd_read_callback()

static RESULT usbtoswd_read_callback ( void *  p,
uint8_t *  src,
uint8_t *  processed 
)
static

Definition at line 20 of file usbtoswd.c.

References ERROR_OK, and versaloon_pending_t::extra_data.

Referenced by usbtoswd_transact().

◆ usbtoswd_seqin()

RESULT usbtoswd_seqin ( uint8_t  interface_index,
uint8_t *  data,
uint16_t  bitlen 
)

◆ usbtoswd_seqout()

RESULT usbtoswd_seqout ( uint8_t  interface_index,
const uint8_t *  data,
uint16_t  bitlen 
)

◆ usbtoswd_transact()

RESULT usbtoswd_transact ( uint8_t  interface_index,
uint8_t  request,
uint32_t *  data,
uint8_t *  ack 
)

◆ usbtoswd_write_callback()

static RESULT usbtoswd_write_callback ( void *  p,
uint8_t *  src,
uint8_t *  processed 
)
static

Definition at line 30 of file usbtoswd.c.

References ERROR_OK, and versaloon_pending_t::extra_data.

Referenced by usbtoswd_transact().