3.4.5.2 usb_host_cdc.h

File Name

usb_host_cdc.h

Description

USB Host CDC Client Driver Interface Definition

This header file contains the function prototypes and definitions of the data types and constants that make up the interface to the USB Host CDC Client Driver.

Enumerations

Name Description
USB_HOST_CDC_EVENTIdentifies the possible events that the CDC Class Driver can generate.
USB_HOST_CDC_EVENT_RESPONSE Return type of the USB CDC Host Client Driver Event Handler.
USB_HOST_CDC_RESULTUSB Host CDC Client Driver Result enumeration.

Functions

Name Description
USB_HOST_CDC_ACM_ControlLineStateSetThis function sends a request to the attached device to set its Control Line State.
USB_HOST_CDC_ACM_LineCodingSetThis function sends a request to the attached device to set its Line Coding.
USB_HOST_CDC_AttachEventHandlerSetThis function will set an attach event handler.
USB_HOST_CDC_CloseThis function closes the CDC device.
USB_HOST_CDC_DeviceObjHandleGetThis function returns the Device Object Handle for this CDC device.
USB_HOST_CDC_EventHandlerSetRegisters an event handler with the CDC Host Client Driver.
USB_HOST_CDC_OpenThis function opens the specified CDC device.
USB_HOST_CDC_ReadThis function will read data from the attached device.
USB_HOST_CDC_SerialStateNotificationGet This function will request Serial State Notification from the attached device.
USB_HOST_CDC_WriteThis function will write data to the attached device.

Macros

Name Description
USB_HOST_CDC_HANDLE_INVALIDDefines an Invalid CDC Client Driver Handle.
USB_HOST_CDC_INTERFACEUSB HOST CDC Client Driver Interface.
USB_HOST_CDC_REQUEST_HANDLE_INVALIDUSB Host CDC Client Driver Invalid Request Handle.
USB_HOST_CDC_TRANSFER_HANDLE_INVALIDUSB Host CDC Client Driver Invalid Transfer Handle Definition.

Structures

Name Description
USB_HOST_CDC_EVENT_ACM_GET_LINE_CODING_COMPLETE_DATAUSB Host CDC Client Driver Command Event Data.
USB_HOST_CDC_EVENT_ACM_SEND_BREAK_COMPLETE_DATAUSB Host CDC Client Driver Command Event Data.
USB_HOST_CDC_EVENT_ACM_SET_CONTROL_LINE_STATE_COMPLETE_DATAUSB Host CDC Client Driver Command Event Data.
USB_HOST_CDC_EVENT_ACM_SET_LINE_CODING_COMPLETE_DATAUSB Host CDC Client Driver Command Event Data.
USB_HOST_CDC_EVENT_READ_COMPLETE_DATAUSB Host CDC Client Driver Event Data.
USB_HOST_CDC_EVENT_SERIAL_STATE_NOTIFICATION_RECEIVED_DATAUSB Host CDC Client Driver Event Data.
USB_HOST_CDC_EVENT_WRITE_COMPLETE_DATAUSB Host CDC Client Driver Event Data.

Types

Name Description
USB_HOST_CDC_ATTACH_EVENT_HANDLER USB Host CDC Client Driver Attach Event Handler Function Pointer Type.
USB_HOST_CDC_EVENT_HANDLERUSB Host CDC Client Driver Event Handler Function Pointer Type.
USB_HOST_CDC_HANDLEDefines the type of the CDC Host Client Driver Handle.
USB_HOST_CDC_OBJDefines the type of the CDC Host Client Object.
USB_HOST_CDC_REQUEST_HANDLEUSB Host CDC Client Driver Request Handle.
USB_HOST_CDC_TRANSFER_HANDLEUSB Host CDC Client Driver Transfer Handle.