17 #ifndef EM_USBXPRESS_INTERNAL_H
18 #define EM_USBXPRESS_INTERNAL_H
31 #define USBXPRESS_LIBRARY_VERSION 0x0500
36 #define APIEA_GIE 0x01
37 #define APIEA_GIE_TEMP 0x02
42 #define USBXCORE_MAXLEN 19
47 #define SI_USBXPRESS_REQUEST 0x02
48 #define SI_USBXPRESS_FLUSH_BUFFERS 0x0001
49 #define SI_USBXPRESS_CLEAR_TO_SEND 0x0002
50 #define SI_USBXPRESS_NOT_CLEAR_TO_SEND 0x0004
51 #define SI_USBXPRESS_GET_VERSION 0x0008
53 #define SI_CP210X_REQUEST 0xFF
54 #define SI_CP210X_GET_PART_NUMBER 0x370B
57 #define SI_USBXPRESS_PART_NUMBER_EFM8 0x80
58 #define SI_USBXPRESS_PART_NUMBER_EFM32 0x81
73 extern void (*USBXCORE_apiCallback)(void);
81 void USBXCORE_Read(uint8_t *, uint8_t *, uint8_t);
82 void USBXCORE_Write(uint8_t *, uint8_t *, uint8_t);
97 #endif // EM_USBXPRESS_INTERNAL_H
uint32_t USBXCORE_apiEa
Enable or disable status of USB_API interrupts.
void USBX_jumpCallback(void)
Conditionally jumps to the user call-back routine.
void USBXCORE_resetState(void)
Resets internal USBXpress variables.
USB Setup request package.
uint32_t USBXCORE_apiIntValue
Byte holding the current USB_API interrupts.
USBD_State_TypeDef
USB device state enumerator.
USB_Status_TypeDef
USB transfer status enumerator.
int USBX_SetupCmdCb(const USB_Setup_TypeDef *setup)
USB setup command call-back.
uint32_t * USBXCORE_byteCountOutPtr
Pointer to variable holding number of bytes read.
USB protocol stack library API for EFM32/EZR32.
uint32_t USBXCORE_readSize
Number of bytes sent to USBX_blockRead() as numBytes.
uint32_t * USBXCORE_byteCountInPtr
Pointer to variable holding number of bytes written.
void USBX_ResetCb(void)
USB Reset call-back.
int USBX_inXferCompleteCb(USB_Status_TypeDef, uint16_t, uint16_t remaining)
USBXpress IN Endpoint Transfer Complete Callback.
uint32_t USBXCORE_writeSize
Number of bytes sent to USBX_blockWrite() as numBytes.
void USBX_DeviceStateChangeCb(USBD_State_TypeDef oldState, USBD_State_TypeDef newState)
USB device state change call-back.
int USBX_outXferCompleteCb(USB_Status_TypeDef, uint16_t, uint16_t remaining)
USBXpress OUT Endpoint Transfer Complete Callback.
uint8_t USBXCORE_configDesc[32]
Copy of configuration descriptor.