USB Libraries Help > USB Host Libraries > USB CDC Host Library > Library Interface > a) Client Access Functions > USB_HOST_CDC_Close Function
MPLAB Harmony USB Stack
USB_HOST_CDC_Close Function

This function will close the open CDC device. This closes the association between the application entity that opened the device and device. The driver handle becomes invalid.

C
void USB_HOST_CDC_Close(
    USB_HOST_CDC_HANDLE cdcDeviceHandle
);
Preconditions

None.

Parameters
Parameters 
Description 
cdcDeviceHandle 
handle to the CDC device obtained from the USB_HOST_CDC_Open() function. 
Returns

None.

Remarks

The device handle becomes invalid after calling this function.

Example