Vault 7: Projects
This publication series is about specific projects related to the Vault 7 main publication.
Description
An error occurred while resetting the device.
1.4.2.4.2.35 USB_MSD_RESETTING_DEVICE Macro
File
usb_host_msd.h
Syntax
#define USB_MSD_RESETTING_DEVICE 0x53 // Device is being reset.
Description
Device is being reset.
1.4.2.4.3 usb_host_msd.h
Functions
Name Description
USBHostMSDDeviceStatus This function determines the status of a mass storage device.
USBHostMSDEventHandler This function is the event handler for this client driver.
USBHostMSDInitialize This function is the initialization routine for this client driver.
USBHostMSDResetDevice This function starts a bulk-only mass storage reset.
USBHostMSDTasks This function performs the maintenance tasks required by the mass
storage class.
USBHostMSDTerminateTransfer This function terminates a mass storage transfer.
USBHostMSDTransfer This function starts a mass storage transfer.
USBHostMSDTransferIsComplete This function indicates whether or not the last transfer is complete.
Macros
Name Description
DEVICE_CLASS_MASS_STORAGE Class code for Mass Storage.
DEVICE_INTERFACE_PROTOCOL_BULK_ONLY Protocol code for Bulk-only mass storage.
DEVICE_SUBCLASS_CD_DVD SubClass code for a CD/DVD drive (not supported).
DEVICE_SUBCLASS_FLOPPY_INTERFACE SubClass code for a floppy disk interface (not supported).
DEVICE_SUBCLASS_RBC SubClass code for Reduced Block Commands (not supported).
DEVICE_SUBCLASS_REMOVABLE SubClass code for removable media (not supported).
DEVICE_SUBCLASS_SCSI SubClass code for a SCSI interface device (supported).
DEVICE_SUBCLASS_TAPE_DRIVE SubClass code for a tape drive (not supported).
EVENT_MSD_ATTACH MSD device has attached
EVENT_MSD_MAX_LUN Set maximum LUN for the device
EVENT_MSD_NONE No event occured (NULL event)
EVENT_MSD_OFFSET If the application has not defined an offset for MSD events, set it to 0.
EVENT_MSD_RESET MSD reset complete
EVENT_MSD_TRANSFER A MSD transfer has completed
MSD_COMMAND_FAILED Transfer failed. Returned in dCSWStatus.
MSD_COMMAND_PASSED Transfer was successful. Returned in dCSWStatus.
MSD_PHASE_ERROR Transfer phase error. Returned in dCSWStatus.
USB_MSD_CBW_ERROR The CBW was not transferred successfully.
USB_MSD_COMMAND_FAILED Command failed at the device.
USB_MSD_COMMAND_PASSED Command was successful.
1.4 Library Interface MLA - USB Library Help Embedded Host API
218
Protego_Release_01_05-Related-OEM-Documentation-MLA_v2013_12_20-help_mla_usb.pdf