# 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
…
- 125
- 126
- 127
- 128
- 129
…
- 311
- 312

1.4.2.1.2.14 TPL_IGNORE_PROTOCOL Macro
File
usb_host.h
Syntax
#define TPL_IGNORE_PROTOCOL 0x08 // Bitmask for ignoring the protocol of
a CL/SC/P driver
Description
Bitmask for ignoring the protocol of a CL/SC/P driver
1.4.2.1.2.15 TPL_IGNORE_SUBCLASS Macro
File
usb_host.h
Syntax
#define TPL_IGNORE_SUBCLASS 0x10 // Bitmask for ignoring the subclass of
a CL/SC/P driver
Description
Bitmask for ignoring the subclass of a CL/SC/P driver
1.4.2.1.2.16 TPL_SET_CONFIG Macro
File
usb_host.h
Syntax
#define TPL_SET_CONFIG 0x04 // Bitmask for setting the configuration.
Description
Bitmask for setting the configuration.
1.4.2.1.2.17 USB_HOST_APP_DATA_EVENT_HANDLER Macro
File
usb_host.h
Syntax
#define USB_HOST_APP_DATA_EVENT_HANDLER(a,e,d,s) true
Description
If the application does not provide an event handler, then we will assume that all events function without error.
1.4.2.1.2.18 USB_HOST_APP_EVENT_HANDLER Macro
File
usb_host.h
Syntax
#define USB_HOST_APP_EVENT_HANDLER(a,e,d,s)
((e==EVENT_OVERRIDE_CLIENT_DRIVER_SELECTION)?false:true)
Description
If the application does not provide an event handler, then we will assume that all events function without error.
1.4 Library Interface MLA - USB Library Help Embedded Host API
127

- 1
- 2
…
- 125
- 126
- 127
- 128
- 129
…
- 311
- 312