Vault 7: Projects
This publication series is about specific projects related to the Vault 7 main publication.
Syntax
uint8_t USBHostCDCDeviceStatus(uint8_t deviceAddress);
Description
This function determines the status of a CDC device.
Remarks
None
Preconditions
None
Parameters
Parameters Description
uint8_t deviceAddress address of device to query
Return Values
Return Values Description
USB_CDC_DEVICE_NOT_FOUND Illegal device address, or the device is not an CDC
USB_CDC_INITIALIZING CDC is attached and in the process of initializing
USB_PROCESSING_REPORT_DESCRIPTOR CDC device is detected and report descriptor is being parsed
USB_CDC_NORMAL_RUNNING CDC Device is running normal, ready to send and receive
reports
USB_CDC_DEVICE_HOLDING Device is holding due to error
USB_CDC_DEVICE_DETACHED CDC detached.
Function
uint8_t USBHostCDCDeviceStatus( uint8_t deviceAddress )
1.4.2.2.1.7 USBHostCDCEventHandler Function
This function is the event handler for this client driver.
File
usb_host_cdc.h
Syntax
bool USBHostCDCEventHandler(uint8_t address, USB_EVENT event, void * data, uint32_t size);
Description
This function is the event handler for this client driver. It is called by the host layer when various events occur.
Remarks
None
Preconditions
The device has been initialized.
Parameters
Parameters Description
uint8_t address Address of the device
USB_EVENT event Event that has occurred
void *data Pointer to data pertinent to the event
uint32_t size Size of the data
1.4 Library Interface MLA - USB Library Help Embedded Host API
137
Protego_Release_01_05-Related-OEM-Documentation-MLA_v2013_12_20-help_mla_usb.pdf