Vault 7: Projects

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

1.4.2.1.3 usb_host.h
Functions
Name Description
USB_HOST_APP_DATA_EVENT_HANDLER This is a typedef to use when defining the application level data
events handler.
USB_HOST_APP_EVENT_HANDLER This is a typedef to use when defining the application level
events handler.
USB_HostInterruptHandler This function handles the interrupts when the USB module is
running in host mode.
USBHostClearEndpointErrors This function clears an endpoint's internal error condition.
USBHostDeviceSpecificClientDriver This function indicates if the specified device has explicit client
driver support specified in the TPL.
USBHostDeviceStatus This function returns the current status of a device.
USBHostInit This function initializes the variables of the USB host stack.
USBHostIsochronousBuffersCreate This function initializes the isochronous data buffer information
and allocates memory for each buffer. This function will not
allocate memory if the buffer pointer is not NULL.
USBHostIsochronousBuffersDestroy This function releases all of the memory allocated for the
isochronous data buffers. It also resets all other information
about the buffers.
USBHostIsochronousBuffersReset This function resets all the isochronous data buffers. It does not
do anything with the space allocated for the buffers.
USBHostIssueDeviceRequest This function sends a standard device request to the attached
device.
USBHostRead This function initiates a read from the attached device.
USBHostResetDevice This function resets an attached device.
USBHostResumeDevice This function issues a RESUME to the attached device.
USBHostSetDeviceConfiguration This function changes the device's configuration.
USBHostSetNAKTimeout This function specifies NAK timeout capability.
USBHostShutdown 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.
USBHostSuspendDevice This function suspends a device.
USBHostTasks This function executes the host tasks for USB host operation.
USBHostTerminateTransfer This function terminates the current transfer for the given
endpoint.
USBHostTransferIsComplete This function initiates whether or not the last endpoint
transaction is complete.
USBHostVbusEvent This function handles Vbus events that are detected by the
application.
USBHostWrite This function initiates a write to the attached device.
Macros
Name Description
__USBHOST_H__ DOM-IGNORE-END
INIT_CL_SC_P Set class support in the TPL (non-OTG only).
INIT_VID_PID Set VID/PID support in the TPL.
TPL_ALLOW_HNP Bitmask for Host Negotiation Protocol.
1.4 Library Interface MLA - USB Library Help Embedded Host API
129

e-Highlighter

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

Un-highlight all Un-highlight selectionu Highlight selectionh