Vault 7: Projects
This publication series is about specific projects related to the Vault 7 main publication.
USB_HID_DEVICE_NOT_FOUND No device with specified address
USB_HID_DEVICE_BUSY Device not in proper state for performing a transfer
Others Return values from USBHostIssueDeviceRequest(),
USBHostRead(), and USBHostWrite()
Function
USBHostHIDTransfer( uint8_t deviceAddress, uint8_t direction, uint8_t interfaceNum,
uint8_t reportid, uint8_t size, uint8_t *data)
1.4.2.3.1.15 USBHostHIDTransferIsComplete Function
This function indicates whether or not the last transfer is complete.
File
usb_host_hid.h
Syntax
bool USBHostHIDTransferIsComplete(uint8_t deviceAddress, uint8_t * errorCode, uint8_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.
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 USBHostHIDTransferIsComplete( uint8_t deviceAddress,
uint8_t *errorCode, uint32_t *byteCount )
1.4.2.3.1.16 USBHostHID_ApiDeviceDetect Macro
File
usb_host_hid.h
Syntax
#define USBHostHID_ApiDeviceDetect USBHostHIDDeviceDetect( 1 )
Description
This macro provides legacy support for an older API function.
1.4 Library Interface MLA - USB Library Help Embedded Host API
175
Protego_Release_01_05-Related-OEM-Documentation-MLA_v2013_12_20-help_mla_usb.pdf