Vault 7: Projects

This publication series is about specific projects related to the Vault 7 main publication.

File
usb_device_cdc.h
Syntax
#define CDCSetBaudRate(baudRate) {line_coding.dwDTERate.Val=baudRate;}
Description
This macro is used set the baud rate reported back to the host during a get line coding request.
Typical Usage:
CDCSetBaudRate(19200);
This function is optional for CDC devices that do not actually convert the USB traffic to a hardware UART.
Remarks
None
Preconditions
None
Parameters
Parameters Description
uint32_t baudRate The desired baudrate
Function
void CDCSetBaudRate(uint32_t baudRate)
1.4.1.3.2.11 CDCSetCharacterFormat Macro
This macro is used manually set the character format reported back to the host during a get line coding request. (optional)
File
usb_device_cdc.h
Syntax
#define CDCSetCharacterFormat(charFormat) {line_coding.bCharFormat=charFormat;}
Description
This macro is used manually set the character format reported back to the host during a get line coding request.
Typical Usage:
CDCSetCharacterFormat(NUM_STOP_BITS_1);
This function is optional for CDC devices that do not actually convert the USB traffic to a hardware UART.
Remarks
None
Preconditions
None
1.4 Library Interface MLA - USB Library Help Device/Peripheral
80

e-Highlighter

Click to send permalink to address bar, or right-click to copy permalink.

Un-highlight all Un-highlight selectionu Highlight selectionh