Vault 7: Projects
This publication series is about specific projects related to the Vault 7 main publication.
Return Values
Return Values Description
TRUE Event was handled
FALSE Event was not handled
Function
bool USBHostCDCEventHandler( uint8_t address, USB_EVENT event,
void *data, uint32_t size )
1.4.2.2.1.8 USBHostCDCInitAddress Function
This function intializes the address of the attached CDC device.
File
usb_host_cdc.h
Syntax
bool USBHostCDCInitAddress(uint8_t address, uint32_t flags, uint8_t clientDriverID);
Description
This function intializes the address of the attached CDC device. Once the device is enumerated without any errors, the CDC
client call this function. For all the transfer requesets this address is used to indentify the CDC device.
Remarks
None
Preconditions
The device has been enumerated without any errors.
Parameters
Parameters Description
uint8_t address Address of the new device
uint32_t flags Initialization flags
uint8_t clientDriverID Client driver identification for device requests
Return Values
Return Values Description
TRUE We can support the device.
FALSE We cannot support the device.
Function
bool USBHostCDCInitAddress( uint8_t address, uint32_t flags, uint8_t clientDriverID )
1.4.2.2.1.9 USBHostCDCInitialize Function
This function is the initialization routine for this client driver.
File
usb_host_cdc.h
Syntax
bool USBHostCDCInitialize(uint8_t address, uint32_t flags, uint8_t clientDriverID);
Description
This function is the initialization routine for this client driver. It is called by the host layer when the USB device is being
enumerated.For a CDC device we need to look into CDC descriptor, interface descriptor and endpoint descriptor.
1.4 Library Interface MLA - USB Library Help Embedded Host API
138
Protego_Release_01_05-Related-OEM-Documentation-MLA_v2013_12_20-help_mla_usb.pdf