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 651 of 1269NXP Semiconductors UM10503Chapter 25: LPC43xx USB APISetLineCode ErrorCode_t(*ErrorCode_t(* USBD_CDC_INIT_PARAM::SetLineCode)(USBD_HANDLE_T hCDC,CDC_LINE_CODING *line_coding))(USBD_HANDLE_T hCDC, CDC_LINE_CODING *line_coding)Abstract control model(ACM) subclass specific SET_LINE_CODING request call-backfunction.This function is provided by the application software. This function gets called when hostsends a SET_LINE_CODING request. The application should configure the device per DTErate, stop-bits, parity, and number-of-character bits settings provided in command buffer.Parameters:1. hCdc = Handle to CDC function driver.2. line_coding = Pointer to the CDC_LINE_CODING command 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.CDC_InterruptEP_Hdlr ErrorCode_t(*ErrorCode_t(* USBD_CDC_INIT_PARAM::CDC_InterruptEP_Hdlr)(USBD_HANDLE_T hUsb,void *data, uint32_t event))(USBD_HANDLE_T hUsb, void *data, uint32_t event)Optional Communication Device Class specific INTERRUPT IN endpoint handler.The application software should provide the INT IN endpoint handler. Applications shouldtransfer data depending on the communication protocol type set in descriptors.Parameters:1. hUsb = Handle to the USB device stack.2. data = Pointer to the data which will be passed when callback function is called by thestack.3. event = Type of endpoint event. See USBD_EVENT_T for more details.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 structureMember Description