![]() |
LPCOpen Platform
v1.03
LPCOpen Platform for NXP LPC Microcontrollers
|
USB Device definitions for the LPC17xx microcontrollers.
Architecture specific USB Device definitions for the LPC microcontrollers.
Macros | |
| #define | USB_DEVICE_OPT_LOWSPEED (1 << 0) |
| #define | USB_DEVICE_OPT_FULLSPEED (0 << 0) |
| #define | USE_INTERNAL_SERIAL 0xDC |
| #define | INTERNAL_SERIAL_LENGTH_BITS 80 |
| #define | INTERNAL_SERIAL_START_ADDRESS 0x0E |
Functions | |
| void | USB_Device_SendRemoteWakeup (void) |
| static void | USB_Device_EnableSOFEvents (void) ATTR_ALWAYS_INLINE |
| static void | USB_Device_DisableSOFEvents (void) ATTR_ALWAYS_INLINE |
| #define INTERNAL_SERIAL_LENGTH_BITS 80 |
Length of the device's unique internal serial number, in bits, if present on the selected microcontroller model.
Definition at line 89 of file Device_LPC17xx.h.
| #define INTERNAL_SERIAL_START_ADDRESS 0x0E |
Start address of the internal serial number, in the appropriate address space, if present on the selected microcontroller model.
Definition at line 93 of file Device_LPC17xx.h.
| #define USB_DEVICE_OPT_FULLSPEED (0 << 0) |
Mask for the Options parameter of the USB_Init() function. This indicates that the USB interface should be initialized in full speed (12Mb/s) mode.
Definition at line 72 of file Device_LPC17xx.h.
| #define USB_DEVICE_OPT_LOWSPEED (1 << 0) |
Mask for the Options parameter of the USB_Init() function. This indicates that the USB interface should be initialized in low speed (1.5Mb/s) mode.
Definition at line 67 of file Device_LPC17xx.h.
| #define USE_INTERNAL_SERIAL 0xDC |
String descriptor index for the device's unique serial number string descriptor within the device. This unique serial number is used by the host to associate resources to the device (such as drivers or COM port number allocations) to a device regardless of the port it is plugged in to on the host. Some microcontrollers contain a unique serial number internally, and setting the device descriptors serial number string index to this value will cause it to use the internal serial number.
On unsupported devices, this will evaluate to NO_DESCRIPTOR and so will force the host to create a pseudo-serial number for the device.
Definition at line 85 of file Device_LPC17xx.h.
|
inlinestatic |
Disables the device mode Start Of Frame events. When disabled, this stops the firing of the EVENT_USB_Device_StartOfFrame() event when enumerated in device mode.
Definition at line 135 of file Device_LPC17xx.h.
|
inlinestatic |
Enables the device mode Start Of Frame events. When enabled, this causes the EVENT_USB_Device_StartOfFrame() event to fire once per millisecond, synchronized to the USB bus, at the start of each USB frame when enumerated in device mode.
Definition at line 127 of file Device_LPC17xx.h.