Vault 7: Projects

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

CDCSetDataSize(dataSize);\
}
Description
This function is used to manually set the data reported back to the host during a get line coding request.
Typical Usage:
CDCSetLineCoding(19200, NUM_STOP_BITS_1, PARITY_NONE, 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
uint32_t baud The desired baudrate
uint8_t format 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
uint8_t parity Type of parity. The options are the following:
PARITY_NONE
PARITY_ODD
PARITY_EVEN
PARITY_MARK
PARITY_SPACE
uint8_t dataSize number of data bits. The options are 5, 6, 7, 8, or 16.
Function
void CDCSetLineCoding(uint32_t baud, uint8_t format, uint8_t parity, uint8_t dataSize)
1.4.1.3.2.14 CDCSetParity Macro
This function is used manually set the parity format reported back to the host during a get line coding request. (optional)
File
usb_device_cdc.h
Syntax
#define CDCSetParity(parityType) {line_coding.bParityType=parityType;}
Description
This macro is used manually set the parity format reported back to the host during a get line coding request.
Typical Usage:
CDCSetParity(PARITY_NONE);
This function is optional for CDC devices that do not actually convert the USB traffic to a hardware UART.
1.4 Library Interface MLA - USB Library Help Device/Peripheral
82

e-Highlighter

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

Un-highlight all Un-highlight selectionu Highlight selectionh