USB Libraries Help > USB Host Libraries > USB Host Layer Library > Library Interface > b) Data Types and Constants > USB_HOST_INIT Structure
MPLAB Harmony USB Stack
USB_HOST_INIT Structure

USB Host Initialization Data Structure 

This data type defines the data required to initialize the host layer. A pointer to a structure of this type is required by the USB_HOST_Initialize() function.

C
typedef struct {
  size_t nTPLEntries;
  USB_HOST_TPL_ENTRY * tplList;
  USB_HOST_HCD * hostControllerDrivers;
} USB_HOST_INIT;
Members
Members 
Description 
size_t nTPLEntries; 
Size of the TPL table 
USB_HOST_TPL_ENTRY * tplList; 
Pointer to the TPL table for this host layer implementation. 
USB_HOST_HCD * hostControllerDrivers; 
This is a pointer to a table of host controller drivers that the host layer will operate on. The number of entries in this table is specified via the USB_HOST_CONTROLLERS_NUMBER configuration macro in system_config.h 
Remarks

This data structure is specific to the PIC32MX and PIC32WK implementation of the USB Host layer.