Vault 7: Projects
This publication series is about specific projects related to the Vault 7 main publication.
Return Values
Return Values Description
USB_SUCCESS Request started successfully
USB_CDC_DEVICE_NOT_FOUND No device with specified address
USB_CDC_DEVICE_BUSY Device not in proper state for performing a transfer
Function
USBHostCDCTransfer( uint8_t deviceAddress, uint8_t direction, uint8_t reportid, uint8_t size, uint8_t *data)
1.4.2.2.1.13 USBHostCDCTransferIsComplete Function
This function indicates whether or not the last transfer is complete.
File
usb_host_cdc.h
Syntax
bool USBHostCDCTransferIsComplete(uint8_t deviceAddress, uint8_t * errorCode, uint8_t *
uint8_tCount);
Description
This function indicates whether or not the last transfer is complete. If the functions returns TRUE, the returned uint8_t count
and error code are valid. Since only one transfer can be performed at once and only one endpoint can be used, we only
need to know the device address.
Preconditions
None
Parameters
Parameters Description
uint8_t deviceAddress Device address
uint8_t *errorCode Error code from last transfer
uint32_t *uint8_tCount Number of uint8_ts transferred
Return Values
Return Values Description
TRUE Transfer is complete, errorCode is valid
FALSE Transfer is not complete, errorCode is not valid
Function
bool USBHostCDCTransferIsComplete( uint8_t deviceAddress,
uint8_t *errorCode, uint32_t *uint8_tCount )
1.4.2.2.2 Data Types and Constants
Macros
Name Description
DEVICE_CLASS_CDC CDC Interface Class Code
EVENT_CDC_ATTACH No event occured (NULL event)
EVENT_CDC_COMM_READ_DONE A CDC Communication Read transfer has completed
EVENT_CDC_COMM_WRITE_DONE A CDC Communication Write transfer has completed
EVENT_CDC_DATA_READ_DONE A CDC Data Read transfer has completed
EVENT_CDC_DATA_WRITE_DONE A CDC Data Write transfer has completed
1.4 Library Interface MLA - USB Library Help Embedded Host API
141
Protego_Release_01_05-Related-OEM-Documentation-MLA_v2013_12_20-help_mla_usb.pdf