20 #if defined( USB_PRESENT ) && ( USB_COUNT == 1 )
22 #if defined( USB_HOST )
30 extern USBH_Hc_TypeDef hcs[];
31 extern int USBH_attachRetryCount;
32 extern const USBH_AttachTiming_TypeDef USBH_attachTiming[];
33 extern USBH_Init_TypeDef USBH_initData;
34 extern volatile USBH_PortState_TypeDef USBH_portStatus;
40 #if defined( USB_RAW_API )
41 int USBH_CtlRxRaw( uint8_t pid, USBH_Ep_TypeDef *ep,
void *data,
int byteCount );
42 int USBH_CtlTxRaw( uint8_t pid, USBH_Ep_TypeDef *ep,
void *data,
int byteCount );
49 __STATIC_INLINE uint16_t USBH_GetFrameNum(
void )
51 return USBHHAL_GetFrameNum();
54 __STATIC_INLINE
bool USBH_FrameNumIsEven(
void )
56 return ( USBHHAL_GetFrameNum() & 1 ) == 0;
CMSIS Cortex-M Peripheral Access Layer for Silicon Laboratories microcontroller devices.
USB_Status_TypeDef
USB transfer status enumerator.
USB protocol stack library API for EFM32/EZR32.