UM10503
All information provided in this document is subject to legal disclaimers.
© NXP B.V. 2012. All rights reserved.
User manual
Rev. 1.3 — 6 July 2012
648 of 1269
NXP Semiconductors
UM10503
Chapter 25: LPC43xx USB API
SetCommFeature
ErrorCode_t(*ErrorCode_t(* USBD_CDC_INIT_PARAM::SetCommFeature)(USBD_HANDLE_T hCDC, uint16_t
feature, uint8_t *buffer, uint16_t len))(USBD_HANDLE_T hCDC, uint16_t feature, uint8_t *buffer,
uint16_t len)
Abstract control model(ACM) subclass specific SET_COMM_FEATURE request call-back
function.
This function is provided by the application software. This function gets called when host
sends a SET_COMM_FEATURE set request.
Parameters:
1. hCdc = Handle to CDC function driver.
2. feature = Communication feature type.
3. buffer = Pointer to the settings buffer for the specified communication feature.
4. len = Length of the request buffer.
Returns:
The call back should returns ErrorCode_t type to indicate success or error condition.
Return values:
1. LPC_OK = On success.
2. ERR_USBD_UNHANDLED = Event is not handled hence pass the event to next in line.
3. ERR_USBD_xxx = For other error conditions.
GetCommFeature
ErrorCode_t(*ErrorCode_t(* USBD_CDC_INIT_PARAM::GetCommFeature)(USBD_HANDLE_T hCDC, uint16_t
feature, uint8_t **pBuffer, uint16_t *len))(USBD_HANDLE_T hCDC, uint16_t feature, uint8_t
**pBuffer, uint16_t *len)
Abstract control model(ACM) subclass specific GET_COMM_FEATURE request call-back
function.
This function is provided by the application software. This function gets called when host
sends a GET_ENCAPSULATED_RESPONSE request.
Parameters:
1. hCdc = Handle to CDC function driver.
2. feature = Communication feature type.
3. buffer = Pointer to a pointer of data buffer containing current settings for the
communication feature. Pointer-to-pointer is used to implement zero-copy buffers.
4. len = Amount of data to be sent back to host.
Returns:
The call back should returns ErrorCode_t type to indicate success or error condition.
Return values:
1. LPC_OK = On success.
2. ERR_USBD_UNHANDLED = Event is not handled hence pass the event to next in line.
3. ERR_USBD_xxx = For other error conditions.
Table 520. USBD_CDC_INIT_PARAM class structure
Member
Description