Vault 7: Projects
This publication series is about specific projects related to the Vault 7 main publication.
Parameters
Parameters Description
uint8_t deviceAddress address of device to query
Return Values
Return Values Description
USB_MSD_DEVICE_NOT_FOUND Illegal device address, or the device is not an MSD
USB_MSD_INITIALIZING MSD is attached and in the process of initializing
USB_MSD_NORMAL_RUNNING MSD is in normal running mode
USB_MSD_RESETTING_DEVICE MSD is resetting
USB_MSD_DEVICE_DETACHED MSD detached. Should not occur
USB_MSD_ERROR_STATE MSD is holding due to an error. No communication is
allowed.
Other Return codes from USBHostDeviceStatus() will also be
returned if the device is in the process of enumerating.
Function
uint8_t USBHostMSDDeviceStatus( uint8_t deviceAddress )
1.4.2.4.1.2 USBHostMSDEventHandler Function
This function is the event handler for this client driver.
File
usb_host_msd.h
Syntax
bool USBHostMSDEventHandler(uint8_t address, USB_EVENT event, void * data, uint32_t size);
Description
This function is the event handler for this client driver. It is called by the host layer when various events occur.
Remarks
None
Preconditions
The device has been initialized.
Parameters
Parameters Description
uint8_t address Address of the device
USB_EVENT event Event that has occurred
void *data Pointer to data pertinent to the event
uint16_t size Size of the data
Return Values
Return Values Description
true Event was handled
false Event was not handled
Function
bool USBHostMSDEventHandler( uint8_t address, USB_EVENT event,
void *data, uint32_t size )
1.4 Library Interface MLA - USB Library Help Embedded Host API
204
Protego_Release_01_05-Related-OEM-Documentation-MLA_v2013_12_20-help_mla_usb.pdf