Vault 7: Projects

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

Remarks
None
Preconditions
None
Parameters
Parameters Description
uint8_t parityType Type of parity. The options are the following:
PARITY_NONE
PARITY_ODD
PARITY_EVEN
PARITY_MARK
PARITY_SPACE
Function
void CDCSetParity(uint8_t parityType)
1.4.1.3.2.15 mUSBUSARTIsTxTrfReady Macro
File
usb_device_cdc.h
Syntax
#define mUSBUSARTIsTxTrfReady USBUSARTIsTxTrfReady()
Description
Depricated in MCHPFSUSB v2.3. This macro has been replaced by USBUSARTIsTxTrfReady().
Function
void mUSBUSARTTxRam(uint8_t *pData, uint8_t len)
1.4.1.3.2.16 mUSBUSARTTxRam Macro
File
usb_device_cdc.h
Syntax
#define mUSBUSARTTxRam(pData,len) \
{ \
pCDCSrc.bRam = pData; \
cdc_tx_len = len; \
cdc_mem_type = USB_EP0_RAM; \
cdc_trf_state = CDC_TX_BUSY; \
}
Description
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
1.4 Library Interface MLA - USB Library Help Device/Peripheral
83

e-Highlighter

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

Un-highlight all Un-highlight selectionu Highlight selectionh