3.4.4.11 USB_HOST_CDC_EVENT_HANDLER Type
C
typedef USB_HOST_CDC_EVENT_RESPONSE (* USB_HOST_CDC_EVENT_HANDLER)(USB_HOST_CDC_HANDLE cdcHandle, USB_HOST_CDC_EVENT event, void * eventData, uintptr_t context);
Description
USB Host CDC Client Driver Event Handler Function Pointer Type.
This data type defines the required function signature of the USB Host CDC Client Driver event handling callback function. The application must register a pointer to a CDC Client Driver events handling function whose function signature (parameter and return value types) match the types specified by this function pointer in order to receive event call backs from the CDC Client Driver. The class driver will invoke this function with event relevant parameters. The description of the event handler function parameters is given here.
handle - Handle of the client to which this event is directed.
event - Type of event generated.
eventData - This parameter should be type casted to a event specific pointer type based on the event that has occurred. Refer to the USB_HOST_CDC_EVENT enumeration description for more details.
context - Value identifying the context of the application that was registered along with the event handling function.
Remarks
None.