Vault 7: Projects

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

uint32_t size Number of data bytes to send. If the endpoint is isochronous,
this is the number of data buffer pointers pointed to by pData.
Return Values
Return Values Description
USB_SUCCESS Write 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 USBHostControlWrite to write to a control endpoint.
USB_ENDPOINT_ILLEGAL_DIRECTION Must write to an OUT 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 Write is already in progress.
USB_ENDPOINT_NOT_FOUND Invalid endpoint.
Function
uint8_t USBHostWrite( uint8_t deviceAddress, uint8_t endpoint, uint8_t *data,
uint32_t size )
1.4.2.1.1.24 USBHostGetCurrentConfigurationDescriptor Macro
File
usb_host.h
Syntax
#define USBHostGetCurrentConfigurationDescriptor( deviceAddress) (
pCurrentConfigurationDescriptor )
Returns
uint8_t * - Pointer to the Configuration Descriptor.
Description
This function returns a pointer to the current configuration descriptor of the requested device.
Remarks
This will need to be expanded to a full function when multiple device support is added.
Preconditions
None
Parameters
Parameters Description
uint8_t deviceAddress Address of device
Function
uint8_t * USBHostGetCurrentConfigurationDescriptor( uint8_t deviceAddress )
1.4.2.1.1.25 USBHostGetDeviceDescriptor Macro
File
usb_host.h
Syntax
#define USBHostGetDeviceDescriptor( deviceAddress ) ( pDeviceDescriptor )
1.4 Library Interface MLA - USB Library Help Embedded Host API
117

e-Highlighter

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

Un-highlight all Un-highlight selectionu Highlight selectionh