| LPCOpen Platform v1.03 LPCOpen Platform for NXP LPC Microcontrollers

- Main Page
- Modules
- Data Structures
- Files
- Related Pages

- File List
- Globals

All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Functions | Variables
Descriptors.c File Reference
`#include "Descriptors.h"`

Go to the source code of this file.

## Functions
uint16_t | CALLBACK_USB_GetDescriptor (uint8_t corenum, const uint16_t wValue, const uint8_t wIndex, const void **const DescriptorAddress)

## Variables
USB_Descriptor_Device_t | DeviceDescriptor
USB_Descriptor_Configuration_t | ConfigurationDescriptor
uint8_t | LanguageString []
USB_Descriptor_String_t * | LanguageStringPtr = (USB_Descriptor_String_t *) LanguageString
uint8_t | ManufacturerString []
USB_Descriptor_String_t * | ManufacturerStringPtr = (USB_Descriptor_String_t *) ManufacturerString
uint8_t | ProductString []
USB_Descriptor_String_t * | ProductStringPtr = (USB_Descriptor_String_t *) ProductString

## Variable Documentation

USB_Descriptor_Configuration_t ConfigurationDescriptor

Configuration descriptor structure. This descriptor, located in FLASH memory, describes the usage of the device in one of its supported configurations, including information about any device interfaces and endpoints. The descriptor is read out by the USB host during the enumeration process when selecting a configuration so that the host may correctly communicate with the USB device.

Definition at line 85 of file Descriptors.c.

USB_Descriptor_Device_t DeviceDescriptor

Initial value:
= {
.Header = {.Size = sizeof(USB_Descriptor_Device_t), .Type = DTYPE_Device},
.USBSpecification = VERSION_BCD(02.00),
.Class = USB_CSCP_NoDeviceClass,
.SubClass = USB_CSCP_NoDeviceSubclass,
.Protocol = USB_CSCP_NoDeviceProtocol,
.Endpoint0Size = FIXED_CONTROL_ENDPOINT_SIZE,
.VendorID = 0x1fc9,
.ProductID = 0x2045,
.ReleaseNumber = VERSION_BCD(01.00),
.ManufacturerStrIndex = 0x01,
.ProductStrIndex = 0x02,
.SerialNumStrIndex = USE_INTERNAL_SERIAL,
.NumberOfConfigurations = FIXED_NUM_CONFIGURATIONS
}

Device descriptor structure. This descriptor, located in FLASH memory, describes the overall device characteristics, including the supported USB version, control endpoint size and the number of device configurations. The descriptor is read out by the USB host when the enumeration process begins.

Definition at line 59 of file Descriptors.c.

uint8_t LanguageString[]

Initial value:
= {
USB_STRING_LEN(1),
DTYPE_String,
WBVAL(LANGUAGE_ID_ENG),
}

Language descriptor structure. This descriptor, located in FLASH memory, is returned when the host requests the string descriptor with index 0 (the first index). It is actually an array of 16-bit integers, which indicate via the language ID table available at USB.org what languages the device supports for its string descriptors.

Definition at line 139 of file Descriptors.c.

USB_Descriptor_String_t* LanguageStringPtr = (USB_Descriptor_String_t *) LanguageString

Definition at line 144 of file Descriptors.c.

uint8_t ManufacturerString[]

Initial value:
= {
USB_STRING_LEN(3),
DTYPE_String,
WBVAL('N'),
WBVAL('X'),
WBVAL('P'),
}

Manufacturer descriptor string. This is a Unicode string containing the manufacturer's details in human readable form, and is read out upon request by the host when the appropriate string ID is requested, listed in the Device Descriptor.

Definition at line 150 of file Descriptors.c.

USB_Descriptor_String_t* ManufacturerStringPtr = (USB_Descriptor_String_t *) ManufacturerString

Definition at line 157 of file Descriptors.c.

uint8_t ProductString[]

Product descriptor string. This is a Unicode string containing the product's details in human readable form, and is read out upon request by the host when the appropriate string ID is requested, listed in the Device Descriptor.

Definition at line 163 of file Descriptors.c.

USB_Descriptor_String_t* ProductStringPtr = (USB_Descriptor_String_t *) ProductString

Definition at line 194 of file Descriptors.c.