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

1.4.2.1.2.19 USB_NUM_BULK_NAKS Macro
File
usb_host.h
Syntax
#define USB_NUM_BULK_NAKS 10000 // Define how many NAK's are allowed
Description
Define how many NAK's are allowed during a bulk transfer before erroring.
1.4.2.1.2.20 USB_NUM_COMMAND_TRIES Macro
File
usb_host.h
Syntax
#define USB_NUM_COMMAND_TRIES 3 // During enumeration, define how many
Description
During enumeration, define how many times each command will be tried before giving up and resetting the device.
1.4.2.1.2.21 USB_NUM_CONTROL_NAKS Macro
File
usb_host.h
Syntax
#define USB_NUM_CONTROL_NAKS 20 // Define how many NAK's are allowed
Description
Define how many NAK's are allowed during a control transfer before erroring.
1.4.2.1.2.22 USB_NUM_ENUMERATION_TRIES Macro
File
usb_host.h
Syntax
#define USB_NUM_ENUMERATION_TRIES 3 // Define how many times the host will try
Description
Define how many times the host will try to enumerate the device before giving up and setting the state to DETACHED.
1.4.2.1.2.23 USB_NUM_INTERRUPT_NAKS Macro
File
usb_host.h
Syntax
#define USB_NUM_INTERRUPT_NAKS 3 // Define how many NAK's are allowed
Description
Define how many NAK's are allowed during an interrupt OUT transfer before erroring. Interrupt IN transfers that are NAK'd
are terminated without error.
1.4 Library Interface MLA - USB Library Help Embedded Host API
128

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