![]() |
Data Structures | |
struct | _CDCMSDDriverConfigurationDescriptors |
Modules | |
USB CDC(Serial) + MS Descriptors define | |
Defines | |
#define | CDCMSDDDriverDescriptors_PRODUCTID USBD_PID_CDCMSD |
#define | CDCMSDDDriverDescriptors_VENDORID USBD_VID_ATMEL |
#define | CDCMSDDDriverDescriptors_RELEASE USBD_RELEASE_1_00 |
#define | MIN(a, b) ((a < b) ? a : b) |
Functions | |
void | CDCMSDDriver_Initialize (const USBDDriverDescriptors *pDescriptors, MSDLun *pLuns, unsigned char numLuns) |
void | CDCMSDDriver_ConfigurationChangedHandler (unsigned char cfgnum) |
void | CDCMSDDriver_RequestHandler (const USBGenericRequest *request) |
struct _CDCMSDDriverConfigurationDescriptors | __attribute__ ((__packed__)) CDCMSDDriverConfigurationDescriptors |
Variables | |
const USBDDriverDescriptors | cdcmsddDriverDescriptors |
#define CDCMSDDDriverDescriptors_PRODUCTID USBD_PID_CDCMSD |
Device product ID.
Definition at line 50 of file USBDDriverDescriptors.c.
#define CDCMSDDDriverDescriptors_RELEASE USBD_RELEASE_1_00 |
Device release number.
Definition at line 54 of file USBDDriverDescriptors.c.
#define CDCMSDDDriverDescriptors_VENDORID USBD_VID_ATMEL |
Device vendor ID (Atmel).
Definition at line 52 of file USBDDriverDescriptors.c.
#define MIN | ( | a, | ||
b | ||||
) | ((a < b) ? a : b) |
Returns the minimum between two values.
Definition at line 61 of file USBDDriverDescriptors.c.
void CDCMSDDriver_ConfigurationChangedHandler | ( | unsigned char | cfgnum | ) |
Invoked whenever the configuration value of a device is changed by the host
cfgnum | Configuration number. |
void CDCMSDDriver_Initialize | ( | const USBDDriverDescriptors * | pDescriptors, | |
MSDLun * | pLuns, | |||
unsigned char | numLuns | |||
) |
Initializes the USB device CDCMSD device driver.
void CDCMSDDriver_RequestHandler | ( | const USBGenericRequest * | request | ) |
Handles CDCMSD-specific USB requests sent by the host, and forwards standard ones to the USB device driver.
request | Pointer to a USBGenericRequest instance. |
{ &deviceDescriptor, (const USBConfigurationDescriptor *) &configurationDescriptorsFS, &qualifierDescriptor, 0, 0, (const USBConfigurationDescriptor *) &configurationDescriptorsHS, &qualifierDescriptor, 0, stringDescriptors, 4 }
List of descriptors required by an USB audio speaker device driver.
Definition at line 485 of file USBDDriverDescriptors.c.