Vault 7: Projects

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

1.3.3.3 Data Types and Constants
Enumerations
Name Description
SPI_BUS_MODES Specifies the SPI modes which can be used in the initialization structure
to initialize the SPI for operation.
Structures
Name Description
DRV_SPI_INIT_DATA Specifies the members which can be adjusted to allow the SPI to be
initialized for each instance of SPI.
Description
1.3.3.3.1 DRV_SPI_INIT_DATA Structure
Specifies the members which can be adjusted to allow the SPI to be initialized for each instance of SPI.
File
drv_spi.h
Syntax
typedef struct {
int channel;
int baudRate;
int dummy;
int primaryPrescale;
int secondaryPrescale;
uint8_t divider;
char cke;
SPI_BUS_MODES spibus_mode;
char mode;
} DRV_SPI_INIT_DATA;
Members
Members Description
int channel; Channel for the SPI communication
int baudRate; Baud rate for the SPI communication
int primaryPrescale; Primary and Secondary prescalers control the SPI frequency
char cke; Clock Edge Selection Bits
SPI_BUS_MODES spibus_mode; One of SPI Bus mode as specified SPI_BUS_MODES
char mode; Select between 8 and 16 bit communication
Description
SPI Initialization structure
1.3.3.3.2 SPI_BUS_MODES Enumeration
Specifies the SPI modes which can be used in the initialization structure to initialize the SPI for operation.
File
drv_spi.h
1.3 SPI Driver MLA - Drivers Help Driver Interface
78

e-Highlighter

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

Un-highlight all Un-highlight selectionu Highlight selectionh