/* host send ctrl request to set line coding to config Baud rate/Stop bits/Parity/Data bits  */
HOST_STATUS usb_host_cdc_setlinecoding(usb_core_instance *pdev, USBH_HOST *phost)
/* host send ctrl request to set line coding to config Baud rate/Stop bits/Parity/Data bits  */
HOST_STATUS usb_host_cdc_setlinecoding(usb_core_instance *pdev, USBH_HOST *phost)
{
    phost->ctrlparam.setup.b.bmRequestType = USB_H2D | USB_REQ_TYPE_CLASS | \
                                             USB_REQ_RECIPIENT_INTERFACE;
    phost->ctrlparam.setup.b.bRequest = CDC_SET_LINE_CODING;
    phost->ctrlparam.setup.b.wValue.w = 0;
    phost->ctrlparam.setup.b.wIndex.w = CDC_Desc.CDC_UnionFuncDesc.bControlInterface;
    phost->ctrlparam.setup.b.wLength.w = LINE_CODING_STRUCTURE_SIZE;
    return usb_host_ctrlreq(pdev, phost, CDC_SetLineCode.Array, LINE_CODING_STRUCTURE_SIZE);
}