USB Library
USBHostInit Function
Syntax
bool USBHostInit(
    unsigned long flags
);
Description

This function initializes the variables of the USB host stack. It does not initialize the hardware. The peripheral itself is initialized in one of the state machine states. Therefore, USBHostTasks() should be called soon after this function.

Preconditions

None

Parameters
Parameters 
Description 
unsigned long flags 
reserved 
Return Values
Return Values 
Description 
true 
Initialization successful 
false 
Could not allocate memory. 
Remarks

If the endpoint list is empty, an entry is created in the endpoint list for EP0. If the list is not empty, free all allocated memory other than the EP0 node. This allows the routine to be called multiple times by the application.

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