UM10503
All information provided in this document is subject to legal disclaimers.
© NXP B.V. 2015. All rights reserved.
User manual
Rev. 2.1 — 10 December 2015
790 of 1441
NXP Semiconductors
UM10503
Chapter 27: LPC43xx/LPC43Sxx USB API
SetCtrlLineState
ErrorCode_t(* USBD_CDC_INIT_PARAM::SetCtrlLineState)(USBD_HANDLE_T hCDC, uint16_t state)
Abstract control model(ACM) subclass specific SET_CONTROL_LINE_STATE request
call-back function.
This function is provided by the application software. This function gets called when host
sends a SET_CONTROL_LINE_STATE request. RS-232 signal used to tell the DCE device
the DTE device is now present
Parameters:
1. hCdc = Handle to CDC function driver.
2. state = The state value uses bitmap values defined the
USB CDC class specification
document
published by usb.org.
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.
SendBreak
ErrorCode_t(* USBD_CDC_INIT_PARAM::SendBreak)(USBD_HANDLE_T hCDC, uint16_t mstime)
Abstract control model(ACM) subclass specific SEND_BREAK request call-back function.
This function is provided by the application software. This function gets called when host
sends a SEND_BREAK request.
Parameters:
1. hCdc = Handle to CDC function driver.
2. mstime = Duration of Break signal in milliseconds. If mstime is FFFFh, then the
application should send break until another SendBreak request is received with the
wValue of 0000h.
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 590. USBD_CDC_INIT_PARAM class structure
Member
Description