# 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
…
- 170
- 171
- 172
- 173
- 174
…
- 311
- 312

Return Values
Return Values Description
TRUE We can support the device.
FALSE We cannot support the device.
Function
bool USBHostHIDInitialize( uint8_t address, uint32_t flags, uint8_t clientDriverID )
1.4.2.3.1.10 USBHostHIDResetDevice Function
This function starts a HID reset.
File
usb_host_hid.h
Syntax
uint8_t USBHostHIDResetDevice(uint8_t deviceAddress);
Description
This function starts a HID reset. A reset can be issued only if the device is attached and not being initialized.
Remarks
None
Preconditions
None
Parameters
Parameters Description
uint8_t deviceAddress Device address
Return Values
Return Values Description
USB_SUCCESS Reset started
USB_MSD_DEVICE_NOT_FOUND No device with specified address
USB_MSD_ILLEGAL_REQUEST Device is in an illegal state for reset
Function
uint8_t USBHostHIDResetDevice( uint8_t deviceAddress )
1.4.2.3.1.11 USBHostHIDResetDeviceWithWait Function
File
usb_host_hid.h
Syntax
uint8_t USBHostHIDResetDeviceWithWait(uint8_t deviceAddress);
Description
This function resets a HID device, and waits until the reset is complete.
Remarks
None
Preconditions
None
1.4 Library Interface MLA - USB Library Help Embedded Host API
172

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