60 #define bmEP(bEP) (1 << (bEP)) 62 #define EndpointInt (USBHS_DEVISR_PEP_0 | USBHS_DEVISR_PEP_1 | USBHS_DEVISR_PEP_2 | USBHS_DEVISR_PEP_3 |\ 63 USBHS_DEVISR_PEP_4 | USBHS_DEVISR_PEP_5 | USBHS_DEVISR_PEP_6 | USBHS_DEVISR_PEP_7 |\ 64 USBHS_DEVISR_PEP_8 | USBHS_DEVISR_PEP_9 | USBHS_DEVISR_PEP_10 | USBHS_DEVISR_PEP_11 ) 66 #define DMAEndpointInt (USBHS_DEVISR_DMA_1 | USBHS_DEVISR_DMA_2 | USBHS_DEVISR_DMA_3 |\ 67 USBHS_DEVISR_DMA_4 | USBHS_DEVISR_DMA_5 | USBHS_DEVISR_DMA_6 | USBHS_DEVISR_DMA_7 ) 98 uint16_t startOffset);
103 const void * pHdr, uint8_t bHdrLen,
104 const void * pData, uint32_t dLength);
118 #endif // #define USBD_HAL_H void USBD_HAL_Enable(void)
Buffer struct used for multi-buffer-listed transfer.
uint8_t USBD_HAL_Read(uint8_t bEndpoint, void *pData, uint32_t dLength)
uint8_t USBD_HAL_Write(uint8_t bEndpoint, const void *pData, uint32_t dLength)
void USBD_HAL_Disconnect(void)
Disable Pull-up, disconnect.
uint8_t USBD_HAL_IsHighSpeed(void)
void USBD_HAL_Test(uint8_t bIndex)
void USBD_HAL_DetachUsb(void)
uint8_t USBD_HAL_ConfigureEP(const USBEndpointDescriptor *pDescriptor)
void USBD_HAL_Connect(void)
Enable Pull-up, connect.
uint8_t USBD_HAL_SetTransferCallback(uint8_t bEP, TransferCallback fCallback, void *pCbData)
void USBD_HAL_RemoteWakeUp(void)
void USBD_HAL_AttachUsb(void)
void USBD_HAL_ResetEPs(uint32_t bmEPs, uint8_t bStatus, uint8_t bKeepCfg)
Reset endpoints and disable them.Terminate transfer if there is any, with given status;Reset the endp...
void USBD_HAL_Suspend(void)
uint8_t USBD_HAL_SetupMblTransfer(uint8_t bEndpoint, USBDTransferBuffer *pMbList, uint16_t mblSize, uint16_t startOffset)
void(* TransferCallback)(void *pArg, uint8_t status, uint32_t transferred, uint32_t remaining)
void USBD_HAL_WaitReadData(uint8_t bEndpoint)
uint8_t USBD_HAL_Halt(uint8_t bEndpoint, uint8_t ctl)
void USBD_HAL_CancelIo(uint32_t bmEPs)
void USBD_HAL_SetAddress(uint8_t address)
void USBD_HAL_Disable(void)
uint8_t USBD_HAL_Stall(uint8_t bEP)
void USBD_HAL_Activate(void)
void USBD_HAL_SetConfiguration(uint8_t cfgnum)
uint8_t USBD_HAL_WrWithHdr(uint8_t bEndpoint, const void *pHdr, uint8_t bHdrLen, const void *pData, uint32_t dLength)