Vault 7: Projects
This publication series is about specific projects related to the Vault 7 main publication.
Parameters
Parameters Description
uint8_t deviceAddress Device address
uint8_t endpoint Endpoint number to configure
uint16_t flags Bit 0:
• 0 = disable NAK timeout
• 1 = enable NAK timeout
uint16_t timeoutCount Number of NAKs allowed before a timeout
Return Values
Return Values Description
USB_SUCCESS NAK timeout was configured successfully.
USB_UNKNOWN_DEVICE Device not found.
USB_ENDPOINT_NOT_FOUND The specified endpoint was not found.
Function
uint8_t USBHostSetNAKTimeout( uint8_t deviceAddress, uint8_t endpoint, uint16_t flags,
uint16_t timeoutCount )
1.4.2.1.1.17 USBHostShutdown Function
File
usb_host.h
Syntax
void USBHostShutdown();
Returns
None
Description
This function turns off the USB module and frees all unnecessary memory. This routine can be called by the application layer
to shut down all USB activity, which effectively detaches all devices. The event EVENT_DETACH will be sent to the client
drivers for the attached device, and the event EVENT_VBUS_RELEASE_POWER will be sent to the application layer.
Remarks
None
Preconditions
None
Parameters
Parameters Description
None None
Function
void USBHostShutdown( void )
1.4.2.1.1.18 USBHostSuspendDevice Function
This function suspends a device.
File
usb_host.h
1.4 Library Interface MLA - USB Library Help Embedded Host API
112
Protego_Release_01_05-Related-OEM-Documentation-MLA_v2013_12_20-help_mla_usb.pdf