Vault 7: Projects
This publication series is about specific projects related to the Vault 7 main publication.
uint8_t endpoint Endpoint number
uint8_t *pData Pointer to where to store the data. If the endpoint is
isochronous, this points to an
ISOCHRONOUS_DATA_BUFFERS structure, with multiple
data buffer pointers.
uint32_t size Number of data bytes to read. If the endpoint is isochronous,
this is the number of data buffer pointers pointed to by pData.
Return Values
Return Values Description
USB_SUCCESS Read started successfully.
USB_UNKNOWN_DEVICE Device with the specified address not found.
USB_INVALID_STATE We are not in a normal running state.
USB_ENDPOINT_ILLEGAL_TYPE Must use USBHostControlRead to read from a control
endpoint.
USB_ENDPOINT_ILLEGAL_DIRECTION Must read from an IN endpoint.
USB_ENDPOINT_STALLED Endpoint is stalled. Must be cleared by the application.
USB_ENDPOINT_ERROR Endpoint has too many errors. Must be cleared by the
application.
USB_ENDPOINT_BUSY A Read is already in progress.
USB_ENDPOINT_NOT_FOUND Invalid endpoint.
Function
uint8_t USBHostRead( uint8_t deviceAddress, uint8_t endpoint, uint8_t *pData,
uint32_t size )
1.4.2.1.1.13 USBHostResetDevice Function
This function resets an attached device.
File
usb_host.h
Syntax
uint8_t USBHostResetDevice(uint8_t deviceAddress);
Description
This function places the device back in the RESET state, to issue RESET signaling. It can be called only if the state machine
is not in the DETACHED state.
Remarks
In order to do a full clean-up, the state is set back to STATE_DETACHED rather than a reset state. The ATTACH interrupt
will automatically be triggered when the module is re-enabled, and the proper reset will be performed.
Preconditions
None
Parameters
Parameters Description
uint8_t deviceAddress Device address
Return Values
Return Values Description
USB_SUCCESS Success
USB_UNKNOWN_DEVICE Device not found
1.4 Library Interface MLA - USB Library Help Embedded Host API
109
Protego_Release_01_05-Related-OEM-Documentation-MLA_v2013_12_20-help_mla_usb.pdf