23 #ifndef __USBDEVICE_H__ 24 #define __USBDEVICE_H__ 53 #define USB_MAX_INTERFACES_PER_DEVICE 8 175 uint32_t ui32DefaultConfig);
182 uint32_t *pui32Section);
185 uint8_t ui8InterfaceNumber);
186 extern tInterfaceDescriptor *
188 uint32_t ui32Index, uint32_t ui32AltCfg,
189 uint32_t *pui32Section);
190 extern tEndpointDescriptor *
192 uint32_t ui32InterfaceNumber,
232 #endif // __USBENUM_H__
void USBDCDInit(uint32_t ui32Index, tDeviceInfo *psDevice, void *pvDCDCBData)
Definition: usbdenum.c:301
void USBDCDPowerStatusSet(uint32_t ui32Index, uint8_t ui8Power)
Definition: usbdenum.c:739
void USBDCDSendDataEP0(uint32_t ui32Index, uint8_t *pui8Data, uint32_t ui32Size)
Definition: usbdenum.c:623
void USBDCDStallEP0(uint32_t ui32Index)
Definition: usbdenum.c:704
bool USBDCDRemoteWakeLPM(uint32_t ui32Index)
Definition: usbdenum.c:925
uint32_t ui32DeviceWorkspace
A per-device workspace used by the composite device.
Definition: usbdevice.h:150
void USBDCDSetDefaultConfiguration(uint32_t ui32Index, uint32_t ui32DefaultConfig)
Definition: usbdenum.c:680
const tConfigHeader *const * ppsConfigDescriptors
Definition: usbdevice.h:86
const tCustomHandlers * psCallbacks
Definition: usbdevice.h:72
uint32_t USBDCDConfigGetNumAlternateInterfaces(const tConfigHeader *psConfig, uint8_t ui8InterfaceNumber)
Definition: usbdcdesc.c:407
uint32_t USBDCDConfigDescGetSize(const tConfigHeader *psConfig)
Definition: usbdcdesc.c:217
Definition: usbdevice.h:135
const tDeviceInfo * psDevInfo
This is the top level device information structure.
Definition: usbdevice.h:140
const uint8_t *const * ppui8StringDescriptors
Definition: usbdevice.h:116
uint32_t USBDCDConfigDescGetNum(const tConfigHeader *psConfig, uint32_t ui32Type)
Definition: usbdcdesc.c:264
uint32_t ui32NumStringDescriptors
Definition: usbdevice.h:122
void USB0_IRQDeviceHandler(void)
Definition: usbdhandler.c:59
void USBDCDTerm(uint32_t ui32Index)
Definition: usbdenum.c:510
const uint8_t * pui8DeviceDescriptor
A pointer to the device descriptor for this device.
Definition: usbdevice.h:77
Definition: usbdevice.h:66
tInterfaceDescriptor * USBDCDConfigGetInterface(const tConfigHeader *psConfig, uint32_t ui32Index, uint32_t ui32AltCfg, uint32_t *pui32Section)
Definition: usbdcdesc.c:492
tEndpointDescriptor * USBDCDConfigGetInterfaceEndpoint(const tConfigHeader *psConfig, uint32_t ui32InterfaceNumber, uint32_t ui32AltCfg, uint32_t ui32Index)
Definition: usbdcdesc.c:556
bool USBDCDRemoteWakeupRequest(uint32_t ui32Index)
Definition: usbdenum.c:956
tDescriptorHeader * USBDCDConfigDescGet(const tConfigHeader *psConfig, uint32_t ui32Type, uint32_t ui32Index, uint32_t *pui32Section)
Definition: usbdcdesc.c:320
bool USBDCDFeatureGet(uint32_t ui32Index, uint32_t ui32Feature, void *pvFeature)
Definition: usbdenum.c:881
void USBDCDRequestDataEP0(uint32_t ui32Index, uint8_t *pui8Data, uint32_t ui32Size)
Definition: usbdenum.c:576
void * pvInstance
This is the instance data for the device structure.
Definition: usbdevice.h:145
bool USBDCDFeatureSet(uint32_t ui32Index, uint32_t ui32Feature, void *pvFeature)
Definition: usbdenum.c:781