UM10462
All information provided in this document is subject to legal disclaimers.
© NXP B.V. 2016. All rights reserved.
User manual
Rev. 5.5 — 21 December 2016
181 of 523
NXP Semiconductors
UM10462
Chapter 10: LPC11U3x/2x/1x USB on-chip drivers
10.5.26 USBD_API_INIT_PARAM
USB device stack initialization parameter data structure.
cdc
const USBD_CDC_API_T* USBD_API::cdc
Pointer to function table which exposes functions provided by CDC-ACM function driver module.
reserved6
const uint32_t* USBD_API::reserved6
Reserved for future function driver module.
version
const uint32_t USBD_API::version
Version identifier of USB ROM stack. The version is defined as 0x0CHDMhCC where each nibble
represents version number of the corresponding component. CC - 7:0 - 8bit core version number h - 11:8
- 4bit hardware interface version number M - 15:12 - 4bit MSC class module version number D - 19:16 -
4bit DFU class module version number H - 23:20 - 4bit HID class module version number C - 27:24 - 4bit
CDC class module version number H - 31:28 - 4bit reserved
Table 199. USBD_API class structure
Member
Description
Table 200. USBD_API_INIT_PARAM class structure
Member
Description
usb_reg_base
uint32_t USBD_API_INIT_PARAM::usb_reg_base
USB device controller's base register address.
mem_base
uint32_t USBD_API_INIT_PARAM::mem_base
Base memory location from where the stack can allocate data and buffers.
Remark:
The memory address set in this field should be accessible by USB DMA controller. Also
this value should be aligned on 2048 byte boundary.
mem_size
uint32_t USBD_API_INIT_PARAM::mem_size
The size of memory buffer which stack can use.
Remark:
The mem_size should be greater than the size returned by
USBD_HW_API::GetMemSize() routine.
max_num_ep
uint8_t USBD_API_INIT_PARAM::max_num_ep
max number of endpoints supported by the USB device controller instance.
pad0
uint8_t USBD_API_INIT_PARAM::pad0[3][3]
USB_Reset_Event
USB_CB_T USBD_API_INIT_PARAM::USB_Reset_Event
Event for USB interface reset. This event fires when the USB host requests that the device reset
its interface. This event fires after the control endpoint has been automatically configured by the
library.
Remark:
This event is called from USB_ISR context and hence is time-critical. Having delays in
this callback will prevent the device from enumerating correctly or operate properly.
Parameters:
1. hUsb = Handle to the USB device stack.
Returns:
The call back should return ErrorCode_t type to indicate success or error condition.