OLE Developer Guide  Latest Git
All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Modules Pages
usb_descriptors.h File Reference

Detailed Description

USB Descriptors.

Include dependency graph for usb_descriptors.h:

Go to the source code of this file.

Functions

uint16_t * USBDescriptor_UnicodeUID ()
 Fetch a pointer to the USB serial number. More...
 
const USB_DEVICE_INIT * USBDescriptor_GetDeviceConfig ()
 Fetch a pointer to the USB device initialization structure. More...
 

Function Documentation

const USB_DEVICE_INIT* USBDescriptor_GetDeviceConfig ( )

Fetch a pointer to the USB device initialization structure.

Returns
a Pointer to a USB_DEVICE_INIT which contains all the USB descriptors.
uint16_t* USBDescriptor_UnicodeUID ( )

Fetch a pointer to the USB serial number.

Returns
a pointer to the unicode string serial number.

The length of the buffer will be at least UID_LENGTH * 2 + 1, enough to hold a string representation of a UID.