Vault 7: Projects

This publication series is about specific projects related to the Vault 7 main publication.

Syntax
uint8_t USBHostSuspendDevice(uint8_t deviceAddress);
Description
This function put a device into an IDLE state. It can only be called while the state machine is in normal running mode. After
3ms, the attached device should go into SUSPEND mode.
Remarks
None
Preconditions
None
Parameters
Parameters Description
uint8_t deviceAddress Device to suspend
Return Values
Return Values Description
USB_SUCCESS Success
USB_UNKNOWN_DEVICE Device not found
USB_ILLEGAL_REQUEST Cannot suspend unless device is in normal run mode
Function
uint8_t USBHostSuspendDevice( uint8_t deviceAddress )
1.4.2.1.1.19 USBHostTasks Function
This function executes the host tasks for USB host operation.
File
usb_host.h
Syntax
void USBHostTasks();
Returns
None
Description
This function executes the host tasks for USB host operation. It must be executed on a regular basis to keep everything
functioning.
The primary purpose of this function is to handle device attach/detach and enumeration. It does not handle USB packet
transmission or reception; that must be done in the USB interrupt handler to ensure timely operation.
This routine should be called on a regular basis, but there is no specific time requirement. Devices will still be able to attach,
enumerate, and detach, but the operations will occur more slowly as the calling interval increases.
Remarks
None
Preconditions
USBHostInit() has been called.
Function
void USBHostTasks( void )
1.4 Library Interface MLA - USB Library Help Embedded Host API
113

e-Highlighter

Click to send permalink to address bar, or right-click to copy permalink.

Un-highlight all Un-highlight selectionu Highlight selectionh