Vault 7: Projects
This publication series is about specific projects related to the Vault 7 main publication.
1.4.2.1.1.10 USBHostIsochronousBuffersReset Function
File
usb_host.h
Syntax
void USBHostIsochronousBuffersReset(ISOCHRONOUS_DATA * isocData, uint8_t numberOfBuffers);
Returns
None
Description
This function resets all the isochronous data buffers. It does not do anything with the space allocated for the buffers.
Remarks
This function is available only if USB_SUPPORT_ISOCHRONOUS_TRANSFERS is defined in usb_config.h.
Preconditions
None
Function
void USBHostIsochronousBuffersReset( ISOCHRONOUS_DATA * isocData, uint8_t numberOfBuffers )
1.4.2.1.1.11 USBHostIssueDeviceRequest Function
This function sends a standard device request to the attached device.
File
usb_host.h
Syntax
uint8_t USBHostIssueDeviceRequest(uint8_t deviceAddress, uint8_t bmRequestType, uint8_t
bRequest, uint16_t wValue, uint16_t wIndex, uint16_t wLength, uint8_t * data, uint8_t
dataDirection, uint8_t clientDriverID);
Description
This function sends a standard device request to the attached device. The user must pass in the parameters of the device
request. If there is input or output data associated with the request, a pointer to the data must be provided. The direction of
the associated data (input or output) must also be indicated.
This function does no special processing in regards to the request except for three requests. If SET INTERFACE is sent,
then DTS is reset for all endpoints. If CLEAR FEATURE (ENDPOINT HALT) is sent, then DTS is reset for that endpoint. If
SET CONFIGURATION is sent, the request is aborted with a failure. The function USBHostSetDeviceConfiguration() must
be called to change the device configuration, since endpoint definitions may change.
Remarks
DTS reset is done before the command is issued.
Preconditions
The host state machine should be in the running state, and no reads or writes to EP0 should be in progress.
Parameters
Parameters Description
uint8_t deviceAddress Device address
uint8_t bmRequestType The request type as defined by the USB specification.
1.4 Library Interface MLA - USB Library Help Embedded Host API
107
Protego_Release_01_05-Related-OEM-Documentation-MLA_v2013_12_20-help_mla_usb.pdf