USB Libraries Help > USB Device Libraries > USB CDC Device Library > Library Interface
MPLAB Harmony USB Stack
Library Interface

This section describes the Application Programming Interface (API) functions of the USB CDC Device Library. 

Refer to each section for a detailed description.

a) Functions
 
Name 
Description 
 
This function registers a event handler for the specified CDC function driver instance. 
 
This function requests a data read from the USB Device CDC Function Driver Layer. 
 
This function requests a data write to the USB Device CDC Function Driver Layer. 
 
This function schedules a request to send serial state notification to the host. 
b) Data Types and Constants
 
Name 
Description 
 
USB Device CDC Function Driver Read and Write Complete Event Data. 
 
USB Device CDC Function Driver Read and Write Complete Event Data. 
 
USB Device CDC Function Driver Read and Write Complete Event Data. 
 
USB Device CDC Function Driver Initialization Data Structure 
 
USB Device CDC Function Driver Send Break Event Data 
 
USB Device CDC Function Driver Events 
 
USB Device CDC Event Handler Function Pointer Type. 
 
USB Device CDC Function Driver Event Callback Response Type 
 
USB Device CDC Function Driver Index 
 
USB Device CDC Function Driver USB Device CDC Result enumeration. 
 
USB Device CDC Function Driver Transfer Flags 
 
USB Device CDC Function Driver Transfer Handle Definition. 
 
USB Device CDC Function Driver Event Handler Response Type None. 
 
USB Device CDC Function Driver Invalid Transfer Handle Definition. 
 
USB Device CDC Function Driver Function pointer 
 
Bit code information in line state 
 
Bit code information in line state 
 
Identifies the descriptor types in the CDC. 
 
Identifies the protocol codes. 
 
Identifies the CDC interface type. 
 
Identifies the notification codes available for CDC. 
 
Identifies the CDC specific request codes. 
 
Identifies the CDC function header type. 
 
Identifies the subclass codes for communication interface. 
 
This is type USB_CDC_UNION_FUNCTIONAL_DESCRIPTOR_SUBORDINATE. 
 
This is macro CS_INTERFACE. 
 
This is macro USB_CDC_ACM_SUPPORT_BREAK. 
 
This is macro USB_CDC_ACM_SUPPORT_COMM_FEATURE. 
 
This is macro USB_CDC_ACM_SUPPORT_LINE_CODING_LINE_STATE_AND_NOTIFICATION. 
 
This is macro USB_CDC_ACM_SUPPORT_NETWORK_NOTIFICATION. 
 
Identifies the CDC ACM sub-class capabilities. 
 
Identifies the CDC Interface Class, Subclass and protocol constants. 
 
This is macro USB_CDC_COMMUNICATIONS_INTERFACE_CLASS_CODE. 
 
This is macro USB_CDC_DATA_INTERFACE_CLASS_CODE. 
 
This is macro USB_CDC_DATA_INTERFACE_PROTOCOL. 
 
This is macro USB_CDC_DATA_INTERFACE_SUBCLASS_CODE. 
 
CDC specific request 
 
This is macro USB_CDC_SUBCLASS_CODE. 
 
Use this to specify CDC Function Driver Instance 0 
 
Use this to specify CDC Function Driver Instance 1 
 
Use this to specify CDC Function Driver Instance 2 
 
Use this to specify CDC Function Driver Instance 3 
 
Use this to specify CDC Function Driver Instance 4 
 
Use this to specify CDC Function Driver Instance 5 
 
Use this to specify CDC Function Driver Instance 6 
 
Use this to specify CDC Function Driver Instance 7