LPCOpen Platform
LPCOpen Platform for NXP LPC Microcontrollers
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Class descriptors

Data Structures

struct  USB_Descriptor_Configuration_t
 USB Device descriptor structure for Mass Storage Device Type define for the device configuration descriptor structure. This must be defined in the application code, as the configuration descriptor contains several sub-descriptors which vary between devices, and which describe the device's usage to the host. More...
 

Macros

#define CDC_NOTIFICATION_EPNUM   1
 
#define CDC_TX_EPNUM   2
 
#define CDC_RX_EPNUM   3
 
#define CDC_NOTIFICATION_EPSIZE   8
 
#define CDC_TXRX_EPSIZE   16
 
#define CDC_NOTIFICATION_EPNUM   1
 
#define CDC_TX_EPNUM   2
 
#define CDC_RX_EPNUM   3
 
#define CDC_NOTIFICATION_EPSIZE   8
 
#define CDC_TXRX_EPSIZE   16
 

Functions

uint16_t CALLBACK_USB_GetDescriptor (const uint16_t wValue, const uint8_t wIndex, const void **const DescriptorAddress) ATTR_WARN_UNUSED_RESULT ATTR_NON_NULL_PTR_ARG(3)
 USB Get descriptor callback function.
 

Detailed Description

Macro Definition Documentation

#define CDC_NOTIFICATION_EPNUM   1

Endpoint number of the CDC device-to-host notification IN endpoint.

Definition at line 47 of file Descriptors.h.

#define CDC_NOTIFICATION_EPNUM   1

Endpoint number of the CDC device-to-host notification IN endpoint.

Definition at line 47 of file Descriptors.h.

#define CDC_NOTIFICATION_EPSIZE   8

Size in bytes of the CDC device-to-host notification IN endpoint.

Definition at line 59 of file Descriptors.h.

#define CDC_NOTIFICATION_EPSIZE   8

Size in bytes of the CDC device-to-host notification IN endpoint.

Definition at line 59 of file Descriptors.h.

#define CDC_RX_EPNUM   3

Endpoint number of the CDC host-to-device data OUT endpoint.

Definition at line 56 of file Descriptors.h.

#define CDC_RX_EPNUM   3

Endpoint number of the CDC host-to-device data OUT endpoint.

Definition at line 56 of file Descriptors.h.

#define CDC_TX_EPNUM   2

Endpoint number of the CDC device-to-host data IN endpoint.

Definition at line 50 of file Descriptors.h.

#define CDC_TX_EPNUM   2

Endpoint number of the CDC device-to-host data IN endpoint.

Definition at line 50 of file Descriptors.h.

#define CDC_TXRX_EPSIZE   16

Size in bytes of the CDC data IN and OUT endpoints.

Definition at line 62 of file Descriptors.h.

#define CDC_TXRX_EPSIZE   16

Size in bytes of the CDC data IN and OUT endpoints.

Definition at line 62 of file Descriptors.h.

Function Documentation

uint16_t CALLBACK_USB_GetDescriptor ( const uint16_t  wValue,
const uint8_t  wIndex,
const void **const  DescriptorAddress 
)

USB Get descriptor callback function.

Parameters
wValue: Descriptor type
wIndex: Index of the descriptor
DescriptorAddress: Address of the requested descriptor
Returns
Size of the descriptor This function is called by the library when in device mode, and must be overridden (see library "USB Descriptors" documentation) by the application code so that the address and size of a requested descriptor can be given to the USB library. When the device receives a Get Descriptor request on the control endpoint, this function is called so that the descriptor details can be passed back and the appropriate descriptor sent back.

This function is called by the library when in device mode, and must be overridden (see library "USB Descriptors" documentation) by the application code so that the address and size of a requested descriptor can be given to the USB library. When the device receives a Get Descriptor request on the control endpoint, this function is called so that the descriptor details can be passed back and the appropriate descriptor sent back to the USB host.

Definition at line 206 of file Descriptors.c.