MPLAB Harmony USB Stack
|
This function will set an attach event handler. The attach event handler will be called when a Audio v1.0 Device has been attached or detached. The context will be returned in the event handler. This function should be called before the bus has been enabled.
USB_HOST_AUDIO_V1_RESULT USB_HOST_AUDIO_V1_AttachEventHandlerSet( USB_HOST_AUDIO_V1_ATTACH_EVENT_HANDLER eventHandler, uintptr_t context );
None.
Parameters |
Description |
eventHandler |
Pointer to the attach event handler. |
context |
An application defined context that will be returned in the event handler. |
This function should be called before the USB_HOST_BusEnable function is called.
MPLAB Harmony USB Stack
|