Vault 7: Projects
This publication series is about specific projects related to the Vault 7 main publication.
Description
This function determines if a CDC device is attached and ready to use.
Remarks
Since this will often be called in a loop while waiting for a device, we'll make sure the tasks are executed.
Preconditions
None
Return Values
Return Values Description
TRUE CDC present and ready
FALSE CDC not present or not ready
Function
bool USBHostCDC_ApiDeviceDetect( void )
1.4.2.2.1.5 USBHostCDC_ApiTransferIsComplete Function
File
usb_host_cdc_interface.h
Syntax
bool USBHostCDC_ApiTransferIsComplete(uint8_t* errorCodeDriver, uint8_t* byteCount);
Description
This function is called by application to poll for transfer status. This function returns true in the transfer is over. To check
whether the transfer was successfull or not , application must check the error code returned by reference.
Remarks
None
Preconditions
None
Parameters
Parameters Description
uint8_t *errorCodeDriver returns.
uint8_t *byteCount Number of bytes transferred.
Return Values
Return Values Description
TRUE Transfer is has completed.
FALSE Transfer is pending.
Function
bool USBHostCDC_ApiTransferIsComplete(uint8_t* errorCodeDriver,uint8_t* byteCount)
1.4.2.2.1.6 USBHostCDCDeviceStatus Function
This function determines the status of a CDC device.
File
usb_host_cdc.h
1.4 Library Interface MLA - USB Library Help Embedded Host API
136
Protego_Release_01_05-Related-OEM-Documentation-MLA_v2013_12_20-help_mla_usb.pdf