思澈科技软件开发工具包  2.20

Functions

HAL_StatusTypeDef HAL_PCDEx_PMAConfig (PCD_HandleTypeDef *hpcd, uint16_t ep_addr, void *dma_config)
 
HAL_StatusTypeDef HAL_PCD_TestMode (PCD_HandleTypeDef *hpcd, uint16_t tm, uint8_t *data, uint8_t len)
 Set test mode. More...
 

Detailed Description

Function Documentation

◆ HAL_PCD_TestMode()

HAL_StatusTypeDef HAL_PCD_TestMode ( PCD_HandleTypeDef hpcd,
uint16_t  tm,
uint8_t *  data,
uint8_t  len 
)

Set test mode.

Parameters
hpcdPCD handle
tmtest mode see USB 2.0 spec, section 9.4.9 wIndex
dataused in TEST_PACKET
lenlength of data
Return values
HALstatus