Vault 7: Projects

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

Function
bool USBHostInit( unsigned long flags )
1.4.2.1.1.8 USBHostIsochronousBuffersCreate Function
File
usb_host.h
Syntax
bool USBHostIsochronousBuffersCreate(ISOCHRONOUS_DATA * isocData, uint8_t numberOfBuffers,
uint16_t bufferSize);
Description
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.
Remarks
This function is available only if USB_SUPPORT_ISOCHRONOUS_TRANSFERS is defined in usb_config.h.
Preconditions
None
Return Values
Return Values Description
true All buffers are allocated successfully.
false Not enough heap space to allocate all buffers - adjust the
project to provide more heap space.
Function
bool USBHostIsochronousBuffersCreate( ISOCHRONOUS_DATA * isocData,
uint8_t numberOfBuffers, uint16_t bufferSize )
1.4.2.1.1.9 USBHostIsochronousBuffersDestroy Function
File
usb_host.h
Syntax
void USBHostIsochronousBuffersDestroy(ISOCHRONOUS_DATA * isocData, uint8_t numberOfBuffers);
Returns
None
Description
This function releases all of the memory allocated for the isochronous data buffers. It also resets all other information about
the buffers.
Remarks
This function is available only if USB_SUPPORT_ISOCHRONOUS_TRANSFERS is defined in usb_config.h.
Preconditions
None
Function
void USBHostIsochronousBuffersDestroy( ISOCHRONOUS_DATA * isocData, uint8_t numberOfBuffers )
1.4 Library Interface MLA - USB Library Help Embedded Host API
106

e-Highlighter

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

Un-highlight all Un-highlight selectionu Highlight selectionh