USBLibAPIGuide
1.00.00.01
|
#include <usbdevice.h>
Data Fields | |
const tCustomHandlers * | psCallbacks |
const uint8_t * | pui8DeviceDescriptor |
A pointer to the device descriptor for this device. More... | |
const tConfigHeader *const * | ppsConfigDescriptors |
const uint8_t *const * | ppui8StringDescriptors |
uint32_t | ui32NumStringDescriptors |
This structure is passed to the USB library on a call to USBDCDInit and provides the library with information about the device that the application is implementing. It contains functions pointers for the various USB event handlers and pointers to each of the standard device descriptors.
const tCustomHandlers* tDeviceInfo::psCallbacks |
A pointer to a structure containing pointers to event handler functions provided by the client to support the operation of this device.
Referenced by USBDAudioCompositeInit(), USBDCDCCompositeInit(), USBDCompositeInit(), USBDDFUCompositeInit(), USBDeviceEnumResetHandler(), USBDeviceIntHandlerInternal(), USBDeviceResumeTickHandler(), USBDHIDCompositeInit(), and USBDMSCCompositeInit().
const uint8_t* tDeviceInfo::pui8DeviceDescriptor |
A pointer to the device descriptor for this device.
Referenced by USBDCDCCompositeInit(), USBDCompositeInit(), USBDHIDCompositeInit(), USBDHIDInit(), and USBDMSCCompositeInit().
const tConfigHeader* const* tDeviceInfo::ppsConfigDescriptors |
A pointer to an array of configuration descriptor pointers. Each entry in the array corresponds to one configuration that the device may be set to use by the USB host. The number of entries in the array must match the bNumConfigurations value in the device descriptor array, pui8DeviceDescriptor.
Referenced by BuildCompositeDescriptor(), USBDCDCInit(), and USBDHIDCompositeInit().
const uint8_t* const* tDeviceInfo::ppui8StringDescriptors |
A pointer to the string descriptor array for this device. This array must be arranged as follows:
[0] - Standard descriptor containing supported language codes.
[1] - String 1 for the first language listed in descriptor 0.
[2] - String 2 for the first language listed in descriptor 0.
...
[n] - String n for the first language listed in descriptor 0.
[n+1] - String 1 for the second language listed in descriptor 0.
...
[2n] - String n for the second language listed in descriptor 0.
[2n+1]- String 1 for the third language listed in descriptor 0.
...
[3n] - String n for the third language listed in descriptor 0.
and so on.
Referenced by USBDHIDCompositeInit().
uint32_t tDeviceInfo::ui32NumStringDescriptors |
The total number of descriptors provided in the ppStringDescriptors array.
Referenced by USBDHIDCompositeInit().