Vault 7: Projects

This publication series is about specific projects related to the Vault 7 main publication.

Description
This function terminates a mass storage transfer.
Remarks
After executing this function, the application may have to reset the device in order for the device to continue working properly.
Preconditions
None
Parameters
Parameters Description
uint8_t deviceAddress Device address
Function
void USBHostMSDTerminateTransfer( uint8_t deviceAddress )
1.4.2.4.1.7 USBHostMSDTransfer Function
This function starts a mass storage transfer.
File
usb_host_msd.h
Syntax
uint8_t USBHostMSDTransfer(uint8_t deviceAddress, uint8_t deviceLUN, uint8_t direction,
uint8_t * commandBlock, uint8_t commandBlockLength, uint8_t * data, uint32_t dataLength);
Description
This function starts a mass storage transfer. Usually, applications will probably utilize a read/write wrapper to access this
function.
Remarks
None
Preconditions
None
Parameters
Parameters Description
uint8_t deviceAddress Device address
uint8_t deviceLUN Device LUN to access
uint8_t direction 1=read, 0=write
uint8_t *commandBlock Pointer to the command block for the CBW
uint8_t commandBlockLength Length of the command block
uint8_t *data Pointer to the data buffer
uint32_t dataLength Byte size of the data buffer
Return Values
Return Values Description
USB_SUCCESS Request started successfully
USB_MSD_DEVICE_NOT_FOUND No device with specified address
USB_MSD_DEVICE_BUSY Device not in proper state for performing a transfer
USB_MSD_INVALID_LUN Specified LUN does not exist
1.4 Library Interface MLA - USB Library Help Embedded Host API
207

e-Highlighter

Click to send permalink to address bar, or right-click to copy permalink.

Un-highlight all Un-highlight selectionu Highlight selectionh