USB Libraries Help > USB Host Libraries > USB CDC Host Library > Library Interface > c) CDC Class-specific Functions > USB_HOST_CDC_ACM_LineCodingSet Function
MPLAB Harmony USB Stack
USB_HOST_CDC_ACM_LineCodingSet Function

This function sends a request to the attached device to set its line coding. The function schedules a SET LINE CODING control transfer. If successful, the requestHandle parameter will contain a valid request handle, else it will contain USB_HOST_CDC_REQUEST_HANDLE_INVALID. When completed, the CDC client driver will generate a USB_HOST_CDC_EVENT_ACM_SET_LINE_CODING_COMPLETE event.

C
USB_HOST_CDC_RESULT USB_HOST_CDC_ACM_LineCodingSet(
    USB_HOST_CDC_HANDLE handle, 
    USB_HOST_CDC_REQUEST_HANDLE * requestHandle, 
    USB_CDC_LINE_CODING * lineCoding
);
Remarks

Refer to usb_host_cdc_acm.h for usage information.