USB Library
USB_HOST_APP_DATA_EVENT_HANDLER Function
Syntax
bool USB_HOST_APP_DATA_EVENT_HANDLER(
    uint8_t address, 
    USB_EVENT event, 
    void * data, 
    uint32_t size
);
Description

This function is implemented by the application. The function name can be anything - the macro USB_HOST_APP_EVENT_HANDLER must be set in usb_config.h to the name of the application function. 

In the application layer, this function is responsible for handling all application-level data events that are generated by the stack. See the enumeration USB_EVENT for a complete list of all events that can occur. Note that only data events, such as EVENT_DATA_ISOC_READ, will be passed to this event handler. 

If the application can handle the event successfully, the function should return true.

Preconditions

None

Return Values
Return Values 
Description 
true 
Event was processed successfully 
false 
Event was not processed successfully 
Remarks

If this function is not provided by the application, then all application events are assumed to function without error.

MLA - USB Library Help Version : 2.16
http://www.microchip.com/mla