Vault 7: Projects
This publication series is about specific projects related to the Vault 7 main publication.
Function
uint8_t USBHostMSDTransfer( uint8_t deviceAddress, uint8_t deviceLUN,
uint8_t direction, uint8_t *commandBlock, uint8_t commandBlockLength,
uint8_t *data, uint32_t dataLength )
1.4.2.4.1.8 USBHostMSDTransferIsComplete Function
This function indicates whether or not the last transfer is complete.
File
usb_host_msd.h
Syntax
bool USBHostMSDTransferIsComplete(uint8_t deviceAddress, uint8_t * errorCode, uint32_t *
byteCount);
Description
This function indicates whether or not the last transfer is complete. If the functions returns true, the returned byte count and
error code are valid. Since only one transfer can be performed at once and only one endpoint can be used, we only need to
know the device address.
Remarks
None
Preconditions
None
Parameters
Parameters Description
uint8_t deviceAddress Device address
uint8_t *errorCode Error code from last transfer
uint32_t *byteCount Number of bytes transferred
Return Values
Return Values Description
true Transfer is complete, errorCode is valid
false Transfer is not complete, errorCode is not valid
Function
bool USBHostMSDTransferIsComplete( uint8_t deviceAddress,
uint8_t *errorCode, uint32_t *byteCount )
1.4.2.4.1.9 USBHostMSDRead Macro
File
usb_host_msd.h
Syntax
#define USBHostMSDRead(
deviceAddress,deviceLUN,commandBlock,commandBlockLength,data,dataLength ) \
USBHostMSDTransfer( deviceAddress, deviceLUN, 1, commandBlock, commandBlockLength,
data, dataLength )
Description
This function starts a mass storage read, utilizing the function USBHostMSDTransfer();
1.4 Library Interface MLA - USB Library Help Embedded Host API
208
Protego_Release_01_05-Related-OEM-Documentation-MLA_v2013_12_20-help_mla_usb.pdf