USBLibAPIGuide  1.00.00.01
Data Fields
tDeviceInfo Struct Reference

#include <usbdevice.h>

Collaboration diagram for tDeviceInfo:
Collaboration graph
[legend]

Data Fields

const tCustomHandlerspsCallbacks
 
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
 

Detailed Description

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.

Field Documentation

§ psCallbacks

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().

§ pui8DeviceDescriptor

const uint8_t* tDeviceInfo::pui8DeviceDescriptor

A pointer to the device descriptor for this device.

Referenced by USBDCDCCompositeInit(), USBDCompositeInit(), USBDHIDCompositeInit(), USBDHIDInit(), and USBDMSCCompositeInit().

§ ppsConfigDescriptors

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().

§ ppui8StringDescriptors

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().

§ ui32NumStringDescriptors

uint32_t tDeviceInfo::ui32NumStringDescriptors

The total number of descriptors provided in the ppStringDescriptors array.

Referenced by USBDHIDCompositeInit().


The documentation for this struct was generated from the following file:
© Copyright 1995-2020, Texas Instruments Incorporated. All rights reserved.
Trademarks | Privacy policy | Terms of use | Terms of sale