# 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
…
- 101
- 102
- 103
- 104
- 105
…
- 311
- 312

File
usb_host.h
Syntax
void USB_HostInterruptHandler();
Description
This function handles the interrupts when the USB module is running in host mode. It will clear all USB based interrupts as
applicable. It should only be called when the module is in host mode.
Preconditions
Should only be called when in host mode.
Function
void USB_HostInterruptHandler(void);
1.4.2.1.1.4 USBHostClearEndpointErrors Function
This function clears an endpoint's internal error condition.
File
usb_host.h
Syntax
uint8_t USBHostClearEndpointErrors(uint8_t deviceAddress, uint8_t endpoint);
Description
This function is called to clear the internal error condition of a device's endpoint. It should be called after the application has
dealt with the error condition on the device. This routine clears internal status only; it does not interact with the device.
Remarks
None
Preconditions
None
Parameters
Parameters Description
uint8_t deviceAddress Address of device
uint8_t endpoint Endpoint to clear error condition
Return Values
Return Values Description
USB_SUCCESS Errors cleared
USB_UNKNOWN_DEVICE Device not found
USB_ENDPOINT_NOT_FOUND Specified endpoint not found
Function
uint8_t USBHostClearEndpointErrors( uint8_t deviceAddress, uint8_t endpoint )
1.4.2.1.1.5 USBHostDeviceSpecificClientDriver Function
This function indicates if the specified device has explicit client driver support specified in the TPL.
File
usb_host.h
1.4 Library Interface MLA - USB Library Help Embedded Host API
103

- 1
- 2
…
- 101
- 102
- 103
- 104
- 105
…
- 311
- 312