Vault 7: Projects
This publication series is about specific projects related to the Vault 7 main publication.
Parameters
Parameters Description
uint8_t deviceAddress Device address
Return Values
Return Values Description
USB_DEVICE_ATTACHED Device is attached and running
USB_DEVICE_DETACHED No device is attached
USB_DEVICE_ENUMERATING Device is enumerating
USB_HOLDING_OUT_OF_MEMORY Not enough heap space available
USB_HOLDING_UNSUPPORTED_DEVICE Invalid configuration or unsupported class
USB_HOLDING_UNSUPPORTED_HUB Hubs are not supported
USB_HOLDING_INVALID_CONFIGURATION Invalid configuration requested
USB_HOLDING_PROCESSING_CAPACITY Processing requirement excessive
USB_HOLDING_POWER_REQUIREMENT Power requirement excessive
USB_HOLDING_CLIENT_INIT_ERROR Client driver failed to initialize
USB_DEVICE_SUSPENDED Device is suspended
Other Device is holding in an error state. The return value indicates
the error.
Function
uint8_t USBHostDeviceStatus( uint8_t deviceAddress )
1.4.2.1.1.7 USBHostInit Function
This function initializes the variables of the USB host stack.
File
usb_host.h
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.
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.
Preconditions
None
Parameters
Parameters Description
flags reserved
Return Values
Return Values Description
true Initialization successful
false Could not allocate memory.
1.4 Library Interface MLA - USB Library Help Embedded Host API
105
Protego_Release_01_05-Related-OEM-Documentation-MLA_v2013_12_20-help_mla_usb.pdf