66 #if defined ( __CC_ARM ) 67 #define WEAK __attribute__ ((weak)) 68 #elif defined ( __ICCARM__ ) 70 #elif defined ( __GNUC__ ) 71 #define WEAK __attribute__ ((weak)) 76 #if defined ( __CC_ARM ) 78 #elif defined ( __ICCARM__ ) 79 #define NO_INIT __no_init 80 #elif defined ( __GNUC__ ) 100 #define USBD_STATUS_SUCCESS USBRC_SUCCESS 102 #define USBD_STATUS_LOCKED USBRC_BUSY 104 #define USBD_STATUS_ABORTED USBRC_ABORTED 106 #define USBD_STATUS_CANCELED USBRC_CANCELED 108 #define USBD_STATUS_RESET USBRC_RESET 110 #define USBD_STATUS_PARTIAL_DONE USBRC_PARTIAL_DONE 112 #define USBD_STATUS_INVALID_PARAMETER USBRC_PARAM_ERR 114 #define USBD_STATUS_WRONG_STATE USBRC_STATE_ERR 116 #define USBD_STATUS_SW_NOT_SUPPORTED USBRC_SW_NOT_SUPPORTED 118 #define USBD_STATUS_HW_NOT_SUPPORTED USBRC_HW_NOT_SUPPORTED 133 #define USBD_STATE_SUSPENDED 0 135 #define USBD_STATE_ATTACHED 1 137 #define USBD_STATE_POWERED 2 139 #define USBD_STATE_DEFAULT 3 141 #define USBD_STATE_ADDRESS 4 143 #define USBD_STATE_CONFIGURED 5 169 #if defined ( __CC_ARM ) 170 #elif defined ( __ICCARM__ ) 171 #define __attribute__(...) 172 #elif defined ( __GNUC__ ) 244 extern void USBD_Halt(uint8_t bEndpoint);
Buffer struct used for multi-buffer-listed transfer.
void USBD_ForceFullSpeed(void)
void USBD_RemoteWakeUp(void)
void USBDCallbacks_RequestReceived(const USBGenericRequest *request)
uint8_t USBD_GetState(void)
void USBD_ConfigureSpeed(uint8_t forceFS)
void USBD_Unhalt(uint8_t bEndpoint)
uint8_t USBD_IsHalted(uint8_t bEndpoint)
void USBD_SetAddress(uint8_t address)
void USBDCallbacks_Resumed(void)
void USBD_ResetHandler(void)
uint8_t USBD_Stall(uint8_t bEndpoint)
void USBD_SetConfiguration(uint8_t cfgnum)
struct _USBDDmaDescriptor __attribute__((aligned(16))) USBDDmaDescriptor
Struct used for USBD DMA Link List Transfer Descriptor, must be 16-bytes aligned. ...
uint8_t USBD_Read(uint8_t bEndpoint, void *pData, uint32_t dLength, TransferCallback fCallback, void *pArg)
void USBD_RequestHandler(uint8_t bEndpoint, const USBGenericRequest *pRequest)
void USBD_ConfigureEndpoint(const USBEndpointDescriptor *pDescriptor)
void USBDCallbacks_Suspended(void)
void USBD_ResumeHandler(void)
uint8_t USBD_Write(uint8_t bEndpoint, const void *pData, uint32_t size, TransferCallback callback, void *pArg)
uint8_t USBD_IsHighSpeed(void)
void USBDCallbacks_Reset(void)
void USBD_Disconnect(void)
void USBD_SuspendHandler(void)
void(* TransferCallback)(void *pArg, uint8_t status, uint32_t transferred, uint32_t remaining)
void USBD_Halt(uint8_t bEndpoint)
void USBD_Test(uint8_t bIndex)
struct _USBDTransferBuffer USBDTransferBuffer
Buffer struct used for multi-buffer-listed transfer.
Struct used for USBD DMA Link List Transfer Descriptor, must be 16-bytes aligned. ...
void(* MblTransferCallback)(void *pArg, uint8_t status)
void USBDCallbacks_Initialized(void)