Vault 7: Projects
This publication series is about specific projects related to the Vault 7 main publication.
1.4.2.1.1.20 USBHostTerminateTransfer Function
This function terminates the current transfer for the given endpoint.
File
usb_host.h
Syntax
void USBHostTerminateTransfer(uint8_t deviceAddress, uint8_t endpoint);
Returns
None
Description
This function terminates the current transfer for the given endpoint. It can be used to terminate reads or writes that the
device is not responding to. It is also the only way to terminate an isochronous transfer.
Remarks
None
Preconditions
None
Parameters
Parameters Description
uint8_t deviceAddress Device address
uint8_t endpoint Endpoint number
Function
void USBHostTerminateTransfer( uint8_t deviceAddress, uint8_t endpoint )
1.4.2.1.1.21 USBHostTransferIsComplete Function
This function initiates whether or not the last endpoint transaction is complete.
File
usb_host.h
Syntax
bool USBHostTransferIsComplete(uint8_t deviceAddress, uint8_t endpoint, uint8_t *
errorCode, uint32_t * byteCount);
Description
This function initiates whether or not the last endpoint transaction is complete. If it is complete, an error code and the number
of bytes transferred are returned.
For isochronous transfers, byteCount is not valid. Instead, use the returned byte counts for each EVENT_TRANSFER event
that was generated during the transfer.
Remarks
Possible values for errorCode are:
• USB_SUCCESS - Transfer successful
• USB_UNKNOWN_DEVICE - Device not attached
• USB_ENDPOINT_STALLED - Endpoint STALL'd
• USB_ENDPOINT_ERROR_ILLEGAL_PID - Illegal PID returned
1.4 Library Interface MLA - USB Library Help Embedded Host API
114
Protego_Release_01_05-Related-OEM-Documentation-MLA_v2013_12_20-help_mla_usb.pdf