OpenOCD
usbtoxxx_internal.h File Reference
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define USB_TO_ADC   (VERSALOON_USB_TO_XXX_CMD_START + 0x06)
 
#define USB_TO_ALL   (VERSALOON_USB_TO_XXX_CMD_START + 0x5F)
 
#define USB_TO_BDM   (VERSALOON_USB_TO_XXX_CMD_START + 0x28)
 
#define USB_TO_C2   (VERSALOON_USB_TO_XXX_CMD_START + 0x23)
 
#define USB_TO_CAN   (VERSALOON_USB_TO_XXX_CMD_START + 0x04)
 
#define USB_TO_DAC   (VERSALOON_USB_TO_XXX_CMD_START + 0x07)
 
#define USB_TO_DELAY   (VERSALOON_USB_TO_XXX_CMD_START + 0x41)
 
#define USB_TO_DUSI   (VERSALOON_USB_TO_XXX_CMD_START + 0x0A)
 
#define USB_TO_DUSI_BAUDRATE_MSK   0x1F
 
#define USB_TO_DUSI_CPHA_MSK   0x40
 
#define USB_TO_DUSI_CPOL_MSK   0x20
 
#define USB_TO_DUSI_MSB_FIRST   0x80
 
#define USB_TO_GPIO   (VERSALOON_USB_TO_XXX_CMD_START + 0x03)
 
#define USB_TO_GPIO_DIR_MSK   0x01
 
#define USB_TO_I2C   (VERSALOON_USB_TO_XXX_CMD_START + 0x02)
 
#define USB_TO_INFO   (VERSALOON_USB_TO_XXX_CMD_START + 0x5E)
 
#define USB_TO_ISSP   (VERSALOON_USB_TO_XXX_CMD_START + 0x22)
 
#define USB_TO_JTAG_HL   (VERSALOON_USB_TO_XXX_CMD_START + 0x21)
 
#define USB_TO_JTAG_LL   (VERSALOON_USB_TO_XXX_CMD_START + 0x20)
 
#define USB_TO_JTAG_RAW   (VERSALOON_USB_TO_XXX_CMD_START + 0x27)
 
#define USB_TO_LPCICP   (VERSALOON_USB_TO_XXX_CMD_START + 0x25)
 
#define USB_TO_MICROWIRE   (VERSALOON_USB_TO_XXX_CMD_START + 0x08)
 
#define USB_TO_MSP430_JTAG   (VERSALOON_USB_TO_XXX_CMD_START + 0x38)
 
#define USB_TO_POLL   (VERSALOON_USB_TO_XXX_CMD_START + 0x42)
 
#define USB_TO_POLL_CHECKFAIL   0x03
 
#define USB_TO_POLL_CHECKOK   0x02
 
#define USB_TO_POLL_END   0x01
 
#define USB_TO_POLL_START   0x00
 
#define USB_TO_POLL_VERIFYBUFF   0x04
 
#define USB_TO_POWER   (VERSALOON_USB_TO_XXX_CMD_START + 0x40)
 
#define USB_TO_PWM   (VERSALOON_USB_TO_XXX_CMD_START + 0x05)
 
#define USB_TO_SBW   (VERSALOON_USB_TO_XXX_CMD_START + 0x24)
 
#define USB_TO_SPI   (VERSALOON_USB_TO_XXX_CMD_START + 0x01)
 
#define USB_TO_SPI_BAUDRATE_MSK   0x1F
 
#define USB_TO_SPI_CPHA_MSK   0x40
 
#define USB_TO_SPI_CPOL_MSK   0x20
 
#define USB_TO_SPI_MSB_FIRST   0x80
 
#define USB_TO_SWD   (VERSALOON_USB_TO_XXX_CMD_START + 0x26)
 
#define USB_TO_SWIM   (VERSALOON_USB_TO_XXX_CMD_START + 0x09)
 
#define USB_TO_USART   (VERSALOON_USB_TO_XXX_CMD_START + 0x00)
 
#define USB_TO_XXX_CMD_NOT_SUPPORT   0x06
 
#define USB_TO_XXX_CMDMASK   0xF8
 
#define USB_TO_XXX_CMDSHIFT   3
 
#define USB_TO_XXX_CONFIG   (0x02 << USB_TO_XXX_CMDSHIFT)
 
#define USB_TO_XXX_DISABLE   (0x0D << USB_TO_XXX_CMDSHIFT)
 
#define USB_TO_XXX_ENABLE   (0x0C << USB_TO_XXX_CMDSHIFT)
 
#define USB_TO_XXX_FAILED   0x01
 
#define USB_TO_XXX_FINI   (0x01 << USB_TO_XXX_CMDSHIFT)
 
#define USB_TO_XXX_GETHWINFO   (0x03 << USB_TO_XXX_CMDSHIFT)
 
#define USB_TO_XXX_IDXMASK   0x07
 
#define USB_TO_XXX_IN   (0x06 << USB_TO_XXX_CMDSHIFT)
 
#define USB_TO_XXX_IN_OUT   (0x05 << USB_TO_XXX_CMDSHIFT)
 
#define USB_TO_XXX_INIT   (0x00 << USB_TO_XXX_CMDSHIFT)
 
#define USB_TO_XXX_INVALID_CMD   0x05
 
#define USB_TO_XXX_INVALID_INDEX   0x03
 
#define USB_TO_XXX_INVALID_PARA   0x04
 
#define USB_TO_XXX_OK   0x00
 
#define USB_TO_XXX_OUT   (0x07 << USB_TO_XXX_CMDSHIFT)
 
#define USB_TO_XXX_POLL   (0x08 << USB_TO_XXX_CMDSHIFT)
 
#define USB_TO_XXX_RESET   (0x0A << USB_TO_XXX_CMDSHIFT)
 
#define USB_TO_XXX_SPECIAL   (0x09 << USB_TO_XXX_CMDSHIFT)
 
#define USB_TO_XXX_STATUS   (0X04 << USB_TO_XXX_CMDSHIFT)
 
#define USB_TO_XXX_SYNC   (0x0B << USB_TO_XXX_CMDSHIFT)
 
#define USB_TO_XXX_TIME_OUT   0x02
 
#define usbtoxxx_conf_command(type, port, cmdbuf, cmdlen)
 
#define usbtoxxx_disable_command(type, port, cmdbuf, cmdlen)
 
#define usbtoxxx_enable_command(type, port, cmdbuf, cmdlen)
 
#define usbtoxxx_fini_command(type, port)
 
#define usbtoxxx_in_command(type, port, cmdbuf, cmdlen, retlen, wantbuf, wantpos, wantlen, c)
 
#define usbtoxxx_init_command(type, port)
 
#define usbtoxxx_inout_command(type, port, cmdbuf, cmdlen, retlen, wantbuf, wantpos, wantlen, c)
 
#define usbtoxxx_out_command(type, port, cmdbuf, cmdlen, c)
 
#define usbtoxxx_poll_command(type, port, cmdbuf, cmdlen, retbuf, retlen)
 
#define usbtoxxx_reset_command(type, port, cmdbuf, cmdlen)
 
#define usbtoxxx_special_command(type, port, cmdbuf, cmdlen, retlen, wantbuf, wantpos, wantlen, c)
 
#define usbtoxxx_status_command(type, port, retlen, wantbuf, wantpos, wantlen, c)
 
#define usbtoxxx_sync_command(type, port, cmdbuf, cmdlen, retlen, wantbuf)
 

Functions

RESULT usbtoxxx_add_command (uint8_t type, uint8_t cmd, uint8_t *cmdbuf, uint16_t cmdlen, uint16_t retlen, uint8_t *wantbuf, uint16_t wantpos, uint16_t wantlen, uint8_t collect)
 
RESULT usbtoxxx_add_pending (uint8_t type, uint8_t cmd, uint16_t actual_szie, uint16_t want_pos, uint16_t want_size, uint8_t *buffer)
 

Macro Definition Documentation

◆ USB_TO_ADC

#define USB_TO_ADC   (VERSALOON_USB_TO_XXX_CMD_START + 0x06)

Definition at line 18 of file usbtoxxx_internal.h.

◆ USB_TO_ALL

#define USB_TO_ALL   (VERSALOON_USB_TO_XXX_CMD_START + 0x5F)

Definition at line 39 of file usbtoxxx_internal.h.

◆ USB_TO_BDM

#define USB_TO_BDM   (VERSALOON_USB_TO_XXX_CMD_START + 0x28)

Definition at line 32 of file usbtoxxx_internal.h.

◆ USB_TO_C2

#define USB_TO_C2   (VERSALOON_USB_TO_XXX_CMD_START + 0x23)

Definition at line 27 of file usbtoxxx_internal.h.

◆ USB_TO_CAN

#define USB_TO_CAN   (VERSALOON_USB_TO_XXX_CMD_START + 0x04)

Definition at line 16 of file usbtoxxx_internal.h.

◆ USB_TO_DAC

#define USB_TO_DAC   (VERSALOON_USB_TO_XXX_CMD_START + 0x07)

Definition at line 19 of file usbtoxxx_internal.h.

◆ USB_TO_DELAY

#define USB_TO_DELAY   (VERSALOON_USB_TO_XXX_CMD_START + 0x41)

Definition at line 36 of file usbtoxxx_internal.h.

◆ USB_TO_DUSI

#define USB_TO_DUSI   (VERSALOON_USB_TO_XXX_CMD_START + 0x0A)

Definition at line 22 of file usbtoxxx_internal.h.

◆ USB_TO_DUSI_BAUDRATE_MSK

#define USB_TO_DUSI_BAUDRATE_MSK   0x1F

Definition at line 142 of file usbtoxxx_internal.h.

◆ USB_TO_DUSI_CPHA_MSK

#define USB_TO_DUSI_CPHA_MSK   0x40

Definition at line 144 of file usbtoxxx_internal.h.

◆ USB_TO_DUSI_CPOL_MSK

#define USB_TO_DUSI_CPOL_MSK   0x20

Definition at line 143 of file usbtoxxx_internal.h.

◆ USB_TO_DUSI_MSB_FIRST

#define USB_TO_DUSI_MSB_FIRST   0x80

Definition at line 145 of file usbtoxxx_internal.h.

◆ USB_TO_GPIO

#define USB_TO_GPIO   (VERSALOON_USB_TO_XXX_CMD_START + 0x03)

Definition at line 15 of file usbtoxxx_internal.h.

◆ USB_TO_GPIO_DIR_MSK

#define USB_TO_GPIO_DIR_MSK   0x01

Definition at line 148 of file usbtoxxx_internal.h.

◆ USB_TO_I2C

#define USB_TO_I2C   (VERSALOON_USB_TO_XXX_CMD_START + 0x02)

Definition at line 14 of file usbtoxxx_internal.h.

◆ USB_TO_INFO

#define USB_TO_INFO   (VERSALOON_USB_TO_XXX_CMD_START + 0x5E)

Definition at line 38 of file usbtoxxx_internal.h.

◆ USB_TO_ISSP

#define USB_TO_ISSP   (VERSALOON_USB_TO_XXX_CMD_START + 0x22)

Definition at line 26 of file usbtoxxx_internal.h.

◆ USB_TO_JTAG_HL

#define USB_TO_JTAG_HL   (VERSALOON_USB_TO_XXX_CMD_START + 0x21)

Definition at line 25 of file usbtoxxx_internal.h.

◆ USB_TO_JTAG_LL

#define USB_TO_JTAG_LL   (VERSALOON_USB_TO_XXX_CMD_START + 0x20)

Definition at line 24 of file usbtoxxx_internal.h.

◆ USB_TO_JTAG_RAW

#define USB_TO_JTAG_RAW   (VERSALOON_USB_TO_XXX_CMD_START + 0x27)

Definition at line 31 of file usbtoxxx_internal.h.

◆ USB_TO_LPCICP

#define USB_TO_LPCICP   (VERSALOON_USB_TO_XXX_CMD_START + 0x25)

Definition at line 29 of file usbtoxxx_internal.h.

◆ USB_TO_MICROWIRE

#define USB_TO_MICROWIRE   (VERSALOON_USB_TO_XXX_CMD_START + 0x08)

Definition at line 20 of file usbtoxxx_internal.h.

◆ USB_TO_MSP430_JTAG

#define USB_TO_MSP430_JTAG   (VERSALOON_USB_TO_XXX_CMD_START + 0x38)

Definition at line 33 of file usbtoxxx_internal.h.

◆ USB_TO_POLL

#define USB_TO_POLL   (VERSALOON_USB_TO_XXX_CMD_START + 0x42)

Definition at line 37 of file usbtoxxx_internal.h.

◆ USB_TO_POLL_CHECKFAIL

#define USB_TO_POLL_CHECKFAIL   0x03

Definition at line 65 of file usbtoxxx_internal.h.

◆ USB_TO_POLL_CHECKOK

#define USB_TO_POLL_CHECKOK   0x02

Definition at line 64 of file usbtoxxx_internal.h.

◆ USB_TO_POLL_END

#define USB_TO_POLL_END   0x01

Definition at line 63 of file usbtoxxx_internal.h.

◆ USB_TO_POLL_START

#define USB_TO_POLL_START   0x00

Definition at line 62 of file usbtoxxx_internal.h.

◆ USB_TO_POLL_VERIFYBUFF

#define USB_TO_POLL_VERIFYBUFF   0x04

Definition at line 66 of file usbtoxxx_internal.h.

◆ USB_TO_POWER

#define USB_TO_POWER   (VERSALOON_USB_TO_XXX_CMD_START + 0x40)

Definition at line 35 of file usbtoxxx_internal.h.

◆ USB_TO_PWM

#define USB_TO_PWM   (VERSALOON_USB_TO_XXX_CMD_START + 0x05)

Definition at line 17 of file usbtoxxx_internal.h.

◆ USB_TO_SBW

#define USB_TO_SBW   (VERSALOON_USB_TO_XXX_CMD_START + 0x24)

Definition at line 28 of file usbtoxxx_internal.h.

◆ USB_TO_SPI

#define USB_TO_SPI   (VERSALOON_USB_TO_XXX_CMD_START + 0x01)

Definition at line 13 of file usbtoxxx_internal.h.

◆ USB_TO_SPI_BAUDRATE_MSK

#define USB_TO_SPI_BAUDRATE_MSK   0x1F

Definition at line 136 of file usbtoxxx_internal.h.

◆ USB_TO_SPI_CPHA_MSK

#define USB_TO_SPI_CPHA_MSK   0x40

Definition at line 138 of file usbtoxxx_internal.h.

◆ USB_TO_SPI_CPOL_MSK

#define USB_TO_SPI_CPOL_MSK   0x20

Definition at line 137 of file usbtoxxx_internal.h.

◆ USB_TO_SPI_MSB_FIRST

#define USB_TO_SPI_MSB_FIRST   0x80

Definition at line 139 of file usbtoxxx_internal.h.

◆ USB_TO_SWD

#define USB_TO_SWD   (VERSALOON_USB_TO_XXX_CMD_START + 0x26)

Definition at line 30 of file usbtoxxx_internal.h.

◆ USB_TO_SWIM

#define USB_TO_SWIM   (VERSALOON_USB_TO_XXX_CMD_START + 0x09)

Definition at line 21 of file usbtoxxx_internal.h.

◆ USB_TO_USART

#define USB_TO_USART   (VERSALOON_USB_TO_XXX_CMD_START + 0x00)

Definition at line 12 of file usbtoxxx_internal.h.

◆ USB_TO_XXX_CMD_NOT_SUPPORT

#define USB_TO_XXX_CMD_NOT_SUPPORT   0x06

Definition at line 75 of file usbtoxxx_internal.h.

◆ USB_TO_XXX_CMDMASK

#define USB_TO_XXX_CMDMASK   0xF8

Definition at line 42 of file usbtoxxx_internal.h.

◆ USB_TO_XXX_CMDSHIFT

#define USB_TO_XXX_CMDSHIFT   3

Definition at line 43 of file usbtoxxx_internal.h.

◆ USB_TO_XXX_CONFIG

#define USB_TO_XXX_CONFIG   (0x02 << USB_TO_XXX_CMDSHIFT)

Definition at line 49 of file usbtoxxx_internal.h.

◆ USB_TO_XXX_DISABLE

#define USB_TO_XXX_DISABLE   (0x0D << USB_TO_XXX_CMDSHIFT)

Definition at line 60 of file usbtoxxx_internal.h.

◆ USB_TO_XXX_ENABLE

#define USB_TO_XXX_ENABLE   (0x0C << USB_TO_XXX_CMDSHIFT)

Definition at line 59 of file usbtoxxx_internal.h.

◆ USB_TO_XXX_FAILED

#define USB_TO_XXX_FAILED   0x01

Definition at line 70 of file usbtoxxx_internal.h.

◆ USB_TO_XXX_FINI

#define USB_TO_XXX_FINI   (0x01 << USB_TO_XXX_CMDSHIFT)

Definition at line 48 of file usbtoxxx_internal.h.

◆ USB_TO_XXX_GETHWINFO

#define USB_TO_XXX_GETHWINFO   (0x03 << USB_TO_XXX_CMDSHIFT)

Definition at line 50 of file usbtoxxx_internal.h.

◆ USB_TO_XXX_IDXMASK

#define USB_TO_XXX_IDXMASK   0x07

Definition at line 44 of file usbtoxxx_internal.h.

◆ USB_TO_XXX_IN

#define USB_TO_XXX_IN   (0x06 << USB_TO_XXX_CMDSHIFT)

Definition at line 53 of file usbtoxxx_internal.h.

◆ USB_TO_XXX_IN_OUT

#define USB_TO_XXX_IN_OUT   (0x05 << USB_TO_XXX_CMDSHIFT)

Definition at line 52 of file usbtoxxx_internal.h.

◆ USB_TO_XXX_INIT

#define USB_TO_XXX_INIT   (0x00 << USB_TO_XXX_CMDSHIFT)

Definition at line 47 of file usbtoxxx_internal.h.

◆ USB_TO_XXX_INVALID_CMD

#define USB_TO_XXX_INVALID_CMD   0x05

Definition at line 74 of file usbtoxxx_internal.h.

◆ USB_TO_XXX_INVALID_INDEX

#define USB_TO_XXX_INVALID_INDEX   0x03

Definition at line 72 of file usbtoxxx_internal.h.

◆ USB_TO_XXX_INVALID_PARA

#define USB_TO_XXX_INVALID_PARA   0x04

Definition at line 73 of file usbtoxxx_internal.h.

◆ USB_TO_XXX_OK

#define USB_TO_XXX_OK   0x00

Definition at line 69 of file usbtoxxx_internal.h.

◆ USB_TO_XXX_OUT

#define USB_TO_XXX_OUT   (0x07 << USB_TO_XXX_CMDSHIFT)

Definition at line 54 of file usbtoxxx_internal.h.

◆ USB_TO_XXX_POLL

#define USB_TO_XXX_POLL   (0x08 << USB_TO_XXX_CMDSHIFT)

Definition at line 55 of file usbtoxxx_internal.h.

◆ USB_TO_XXX_RESET

#define USB_TO_XXX_RESET   (0x0A << USB_TO_XXX_CMDSHIFT)

Definition at line 57 of file usbtoxxx_internal.h.

◆ USB_TO_XXX_SPECIAL

#define USB_TO_XXX_SPECIAL   (0x09 << USB_TO_XXX_CMDSHIFT)

Definition at line 56 of file usbtoxxx_internal.h.

◆ USB_TO_XXX_STATUS

#define USB_TO_XXX_STATUS   (0X04 << USB_TO_XXX_CMDSHIFT)

Definition at line 51 of file usbtoxxx_internal.h.

◆ USB_TO_XXX_SYNC

#define USB_TO_XXX_SYNC   (0x0B << USB_TO_XXX_CMDSHIFT)

Definition at line 58 of file usbtoxxx_internal.h.

◆ USB_TO_XXX_TIME_OUT

#define USB_TO_XXX_TIME_OUT   0x02

Definition at line 71 of file usbtoxxx_internal.h.

◆ usbtoxxx_conf_command

#define usbtoxxx_conf_command (   type,
  port,
  cmdbuf,
  cmdlen 
)
Value:
(cmdbuf), (cmdlen), 0, NULL, 0, 0, 0)
uint8_t type
Definition: esp_usb_jtag.c:0
#define NULL
Definition: usb.h:16
#define USB_TO_XXX_CONFIG
RESULT usbtoxxx_add_command(uint8_t type, uint8_t cmd, uint8_t *cmdbuf, uint16_t cmdlen, uint16_t retlen, uint8_t *wantbuf, uint16_t wantpos, uint16_t wantlen, uint8_t collect)
Definition: usbtoxxx.c:313

Definition at line 93 of file usbtoxxx_internal.h.

◆ usbtoxxx_disable_command

#define usbtoxxx_disable_command (   type,
  port,
  cmdbuf,
  cmdlen 
)
Value:
(cmdbuf), (cmdlen), 0, NULL, 0, 0, 0)
#define USB_TO_XXX_DISABLE

Definition at line 131 of file usbtoxxx_internal.h.

◆ usbtoxxx_enable_command

#define usbtoxxx_enable_command (   type,
  port,
  cmdbuf,
  cmdlen 
)
Value:
(cmdbuf), (cmdlen), 0, NULL, 0, 0, 0)
#define USB_TO_XXX_ENABLE

Definition at line 128 of file usbtoxxx_internal.h.

◆ usbtoxxx_fini_command

#define usbtoxxx_fini_command (   type,
  port 
)
Value:
NULL, 0, 0, NULL, 0, 0, 0)
#define USB_TO_XXX_FINI

Definition at line 90 of file usbtoxxx_internal.h.

◆ usbtoxxx_in_command

#define usbtoxxx_in_command (   type,
  port,
  cmdbuf,
  cmdlen,
  retlen,
  wantbuf,
  wantpos,
  wantlen,
 
)
Value:
usbtoxxx_add_command((type), (USB_TO_XXX_IN | (port)), (cmdbuf), \
(cmdlen), (retlen), (wantbuf), (wantpos), \
(wantlen), (c))
#define USB_TO_XXX_IN

Definition at line 101 of file usbtoxxx_internal.h.

◆ usbtoxxx_init_command

#define usbtoxxx_init_command (   type,
  port 
)
Value:
NULL, 0, 0, NULL, 0, 0, 0)
#define USB_TO_XXX_INIT

Definition at line 87 of file usbtoxxx_internal.h.

◆ usbtoxxx_inout_command

#define usbtoxxx_inout_command (   type,
  port,
  cmdbuf,
  cmdlen,
  retlen,
  wantbuf,
  wantpos,
  wantlen,
 
)
Value:
(cmdbuf), (cmdlen), (retlen), (wantbuf), \
(wantpos), (wantlen), (c))
#define USB_TO_XXX_IN_OUT

Definition at line 96 of file usbtoxxx_internal.h.

◆ usbtoxxx_out_command

#define usbtoxxx_out_command (   type,
  port,
  cmdbuf,
  cmdlen,
 
)
Value:
usbtoxxx_add_command((type), (USB_TO_XXX_OUT | (port)), (cmdbuf), \
(cmdlen), 0, NULL, 0, 0, (c))
#define USB_TO_XXX_OUT

Definition at line 106 of file usbtoxxx_internal.h.

◆ usbtoxxx_poll_command

#define usbtoxxx_poll_command (   type,
  port,
  cmdbuf,
  cmdlen,
  retbuf,
  retlen 
)
Value:
usbtoxxx_add_command((type), (USB_TO_XXX_POLL | (port)), (cmdbuf), \
(cmdlen), (retlen), (retbuf), 0, (retlen), 0)
#define USB_TO_XXX_POLL

Definition at line 109 of file usbtoxxx_internal.h.

◆ usbtoxxx_reset_command

#define usbtoxxx_reset_command (   type,
  port,
  cmdbuf,
  cmdlen 
)
Value:
(cmdbuf), (cmdlen), 0, NULL, 0, 0, 0)
#define USB_TO_XXX_RESET

Definition at line 121 of file usbtoxxx_internal.h.

◆ usbtoxxx_special_command

#define usbtoxxx_special_command (   type,
  port,
  cmdbuf,
  cmdlen,
  retlen,
  wantbuf,
  wantpos,
  wantlen,
 
)
Value:
(cmdbuf), (cmdlen), retlen, wantbuf, \
wantpos, wantlen, (c))
#define USB_TO_XXX_SPECIAL

Definition at line 116 of file usbtoxxx_internal.h.

◆ usbtoxxx_status_command

#define usbtoxxx_status_command (   type,
  port,
  retlen,
  wantbuf,
  wantpos,
  wantlen,
 
)
Value:
NULL, 0, (retlen), (wantbuf), (wantpos), \
(wantlen), (c))
#define USB_TO_XXX_STATUS

Definition at line 112 of file usbtoxxx_internal.h.

◆ usbtoxxx_sync_command

#define usbtoxxx_sync_command (   type,
  port,
  cmdbuf,
  cmdlen,
  retlen,
  wantbuf 
)
Value:
(cmdbuf), (cmdlen), (retlen), (wantbuf), 0, \
(retlen), 0)
#define USB_TO_XXX_SYNC

Definition at line 124 of file usbtoxxx_internal.h.

Function Documentation

◆ usbtoxxx_add_command()

RESULT usbtoxxx_add_command ( uint8_t  type,
uint8_t  cmd,
uint8_t *  cmdbuf,
uint16_t  cmdlen,
uint16_t  retlen,
uint8_t *  wantbuf,
uint16_t  wantpos,
uint16_t  wantlen,
uint8_t  collect 
)

◆ usbtoxxx_add_pending()

RESULT usbtoxxx_add_pending ( uint8_t  type,
uint8_t  cmd,
uint16_t  actual_szie,
uint16_t  want_pos,
uint16_t  want_size,
uint8_t *  buffer 
)