3.4.4.14 USB_HOST_CDC_ATTACH_EVENT_HANDLER Type

C

typedef void (* USB_HOST_CDC_ATTACH_EVENT_HANDLER)(USB_HOST_CDC_OBJ cdcObjHandle, uintptr_t context);

Description

USB Host CDC Client Driver Attach Event Handler Function Pointer Type.

This data type defines the required function signature of the USB Host CDC Client Driver attach event handling callback function. The application must register a pointer to a CDC Client Driver attach events handling function whose function signature (parameter and return value types) match the types specified by this function pointer in order to receive attach event call backs from the CDC Client Driver. The client driver will invoke this function with event relevant parameters. The description of the event handler function parameters is given here.

cdcObjHandle - Handle of the client to which this event is directed.

context - Value identifying the context of the application that was registered along with the event handling function.