Vault 7: Projects
This publication series is about specific projects related to the Vault 7 main publication.
Parameters
Parameters Description
uint8_t charFormat number of stop bits. Available options are:
• NUM_STOP_BITS_1 - 1 Stop bit
• NUM_STOP_BITS_1_5 - 1.5 Stop bits
• NUM_STOP_BITS_2 - 2 Stop bits
Function
void CDCSetCharacterFormat(uint8_t charFormat)
1.4.1.3.2.12 CDCSetDataSize Macro
This function is used manually set the number of data bits reported back to the host during a get line coding request.
(optional)
File
usb_device_cdc.h
Syntax
#define CDCSetDataSize(dataBits) {line_coding.bDataBits=dataBits;}
Description
This function is used manually set the number of data bits reported back to the host during a get line coding request.
Typical Usage:
CDCSetDataSize(8);
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
uint8_t dataBits number of data bits. The options are 5, 6, 7, 8, or 16.
Function
void CDCSetDataSize(uint8_t dataBits)
1.4.1.3.2.13 CDCSetLineCoding Macro
This function is used to manually set the data reported back to the host during a get line coding request. (optional)
File
usb_device_cdc.h
Syntax
#define CDCSetLineCoding(baud,format,parity,dataSize) {\
CDCSetBaudRate(baud);\
CDCSetCharacterFormat(format);\
CDCSetParity(parity);\
1.4 Library Interface MLA - USB Library Help Device/Peripheral
81
Protego_Release_01_05-Related-OEM-Documentation-MLA_v2013_12_20-help_mla_usb.pdf