Vault 7: Projects
This publication series is about specific projects related to the Vault 7 main publication.
CDCSetLineCoding This function is used to manually set the data reported back to the host
during a get line coding request. (optional)
CDCSetParity This function is used manually set the parity format reported back to the
host during a get line coding request. (optional)
mUSBUSARTIsTxTrfReady Depricated in MCHPFSUSB v2.3. This macro has been replaced by
USBUSARTIsTxTrfReady().
mUSBUSARTTxRam Use this macro to transfer data located in data memory. Use this macro
when:
1. Data stream is not null-terminated
2. Transfer length is known
Remember: cdc_trf_state must == CDC_TX_READY Unlike
putsUSBUSART, there is not code double checking the transfer state.
Unexpected behavior will occur if this function is called when
cdc_trf_state != CDC_TX_READY
Typical Usage:
mUSBUSARTTxRom Use this macro to transfer data located in program memory. Use this
macro when:
1. Data stream is not null-terminated
2. Transfer length is known
Remember: cdc_trf_state must == CDC_TX_READY Unlike
putrsUSBUSART, there is not code double checking the transfer state.
Unexpected behavior will occur if this function is called when
cdc_trf_state != CDC_TX_READY
Typical Usage:
NUM_STOP_BITS_1 1 stop bit - used by CDCSetLineCoding() and CDCSetCharacterFormat()
NUM_STOP_BITS_1_5 1.5 stop bit - used by CDCSetLineCoding() and
CDCSetCharacterFormat()
NUM_STOP_BITS_2 2 stop bit - used by CDCSetLineCoding() and CDCSetCharacterFormat()
PARITY_EVEN even parity - used by CDCSetLineCoding() and CDCSetParity()
PARITY_MARK mark parity - used by CDCSetLineCoding() and CDCSetParity()
PARITY_NONE no parity - used by CDCSetLineCoding() and CDCSetParity()
PARITY_ODD odd parity - used by CDCSetLineCoding() and CDCSetParity()
PARITY_SPACE space parity - used by CDCSetLineCoding() and CDCSetParity()
USBUSARTIsTxTrfReady This macro is used to check if the CDC class is ready to send more data.
Module
CDC Function Driver
Description
This is file usb_device_cdc.h.
1.4.1.3.2 Functions
Functions and macro functions used to interface with the CDC module.
Functions
Name Description
CDCInitEP This function initializes the CDC function driver. This function should be
called after the SET_CONFIGURATION command (ex: within the context
of the USBCBInitEP() function).
CDCNotificationHandler Checks for changes in DSR status and reports them to the USB host.
1.4 Library Interface MLA - USB Library Help Device/Peripheral
72
Protego_Release_01_05-Related-OEM-Documentation-MLA_v2013_12_20-help_mla_usb.pdf