# Vault 7: Projects

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

### Protego

# MLA -- USB Library

20 December, 2013

- 1
- 2
…
- 171
- 172
- 173
- 174
- 175
…
- 311
- 312

Parameters
Parameters Description
uint8_t deviceAddress Address of the device to reset.
Return Values
Return Values Description
USB_SUCCESS Reset successful
USB_HID_RESET_ERROR Error while resetting device
Others See return values for USBHostHIDResetDevice() and error
codes that can be returned in the errorCode parameter of
USBHostHIDTransferIsComplete();
Function
bool USBHostHIDResetDeviceWithWait( uint8_t deviceAddress )
1.4.2.3.1.12 USBHostHIDTasks Function
This function performs the maintenance tasks required by HID class
File
usb_host_hid.h
Syntax
void USBHostHIDTasks();
Returns
None
Description
This function performs the maintenance tasks required by the HID class. If transfer events from the host layer are not being
used, then it should be called on a regular basis by the application. If transfer events from the host layer are being used, this
function is compiled out, and does not need to be called.
Remarks
None
Preconditions
USBHostHIDInitialize() has been called.
Function
void USBHostHIDTasks( void )
1.4.2.3.1.13 USBHostHIDTerminateTransfer Function
This function terminates a transfer that is in progress.
File
usb_host_hid.h
Syntax
uint8_t USBHostHIDTerminateTransfer(uint8_t deviceAddress, uint8_t direction, uint8_t
interfaceNum);
Description
This function terminates a transfer that is in progress.
1.4 Library Interface MLA - USB Library Help Embedded Host API
173

- 1
- 2
…
- 171
- 172
- 173
- 174
- 175
…
- 311
- 312