Init Configuration Data

Description

Example default configuration data for SPIDRV_Init

Macros

#define SPIDRV_MASTER_USART0
Configuration data for SPI master using USART0.
#define SPIDRV_MASTER_USART1
Configuration data for SPI master using USART1.
#define SPIDRV_MASTER_USART2
Configuration data for SPI master using USART2.
#define SPIDRV_MASTER_USARTRF0
Configuration data for SPI master using USARTRF0.
#define SPIDRV_MASTER_USARTRF1
Configuration data for SPI master using USARTRF1.
#define SPIDRV_SLAVE_USART0
Configuration data for SPI slave using USART0.
#define SPIDRV_SLAVE_USART1
Configuration data for SPI slave using USART1.
#define SPIDRV_SLAVE_USART2
Configuration data for SPI slave using USART2.
#define SPIDRV_SLAVE_USARTRF0
Configuration data for SPI slave using USARTRF0.

Macro Definition Documentation

SPIDRV_MASTER_USART0

#define SPIDRV_MASTER_USART0
Value:
{ \
USART0, /* USART port */ \
_USART_ROUTE_LOCATION_LOC1, /* USART pins location number */ \
1000000, /* Bitrate */ \
8, /* Frame length */ \
0, /* Dummy Tx value for Rx only funcs */ \
spidrvMaster, /* SPI mode */ \
spidrvBitOrderMsbFirst, /* Bit order on bus */ \
spidrvClockMode0, /* SPI clock/phase mode */ \
spidrvCsControlAuto, /* CS controlled by the driver */ \
spidrvSlaveStartImmediate /* Slave start transfers immediately*/ \
}

Configuration data for SPI master using USART0.

SPIDRV_MASTER_USART1

#define SPIDRV_MASTER_USART1
Value:
{ \
USART1, /* USART port */ \
_USART_ROUTE_LOCATION_LOC1, /* USART pins location number */ \
1000000, /* Bitrate */ \
8, /* Frame length */ \
0, /* Dummy Tx value for Rx only funcs */ \
spidrvMaster, /* SPI mode */ \
spidrvBitOrderMsbFirst, /* Bit order on bus */ \
spidrvClockMode0, /* SPI clock/phase mode */ \
spidrvCsControlAuto, /* CS controlled by the driver */ \
spidrvSlaveStartImmediate /* Slave start transfers immediately*/ \
}

Configuration data for SPI master using USART1.

SPIDRV_MASTER_USART2

#define SPIDRV_MASTER_USART2
Value:
{ \
USART2, /* USART port */ \
_USART_ROUTE_LOCATION_LOC0, /* USART pins location number */ \
1000000, /* Bitrate */ \
8, /* Frame length */ \
0, /* Dummy Tx value for Rx only funcs */ \
spidrvMaster, /* SPI mode */ \
spidrvBitOrderMsbFirst, /* Bit order on bus */ \
spidrvClockMode0, /* SPI clock/phase mode */ \
spidrvCsControlAuto, /* CS controlled by the driver */ \
spidrvSlaveStartImmediate /* Slave start transfers immediately*/ \
}

Configuration data for SPI master using USART2.

SPIDRV_MASTER_USARTRF0

#define SPIDRV_MASTER_USARTRF0
Value:
{ \
USARTRF0, /* USART port */ \
RF_USARTRF_LOCATION, /* USART pins location number */ \
1000000, /* Bitrate */ \
8, /* Frame length */ \
0, /* Dummy Tx value for Rx only funcs */ \
spidrvMaster, /* SPI mode */ \
spidrvBitOrderMsbFirst, /* Bit order on bus */ \
spidrvClockMode0, /* SPI clock/phase mode */ \
spidrvCsControlAuto, /* CS controlled by the driver */ \
spidrvSlaveStartImmediate /* Slave start transfers immediately*/ \
}

Configuration data for SPI master using USARTRF0.

SPIDRV_MASTER_USARTRF1

#define SPIDRV_MASTER_USARTRF1
Value:
{ \
USARTRF1, /* USART port */ \
RF_USARTRF_LOCATION, /* USART pins location number */ \
1000000, /* Bitrate */ \
8, /* Frame length */ \
0, /* Dummy Tx value for Rx only funcs */ \
spidrvMaster, /* SPI mode */ \
spidrvBitOrderMsbFirst, /* Bit order on bus */ \
spidrvClockMode0, /* SPI clock/phase mode */ \
spidrvCsControlAuto, /* CS controlled by the driver */ \
spidrvSlaveStartImmediate /* Slave start transfers immediately*/ \
}

Configuration data for SPI master using USARTRF1.

SPIDRV_SLAVE_USART0

#define SPIDRV_SLAVE_USART0
Value:
{ \
USART0, /* USART port */ \
_USART_ROUTE_LOCATION_LOC1, /* USART pins location number */ \
0, /* Bitrate */ \
8, /* Frame length */ \
0, /* Dummy Tx value for Rx only funcs */ \
spidrvSlave, /* SPI mode */ \
spidrvBitOrderMsbFirst, /* Bit order on bus */ \
spidrvClockMode0, /* SPI clock/phase mode */ \
spidrvCsControlAuto, /* CS controlled by the driver */ \
spidrvSlaveStartImmediate /* Slave start transfers immediately*/ \
}

Configuration data for SPI slave using USART0.

SPIDRV_SLAVE_USART1

#define SPIDRV_SLAVE_USART1
Value:
{ \
USART1, /* USART port */ \
_USART_ROUTE_LOCATION_LOC1, /* USART pins location number */ \
0, /* Bitrate */ \
8, /* Frame length */ \
0, /* Dummy Tx value for Rx only funcs */ \
spidrvSlave, /* SPI mode */ \
spidrvBitOrderMsbFirst, /* Bit order on bus */ \
spidrvClockMode0, /* SPI clock/phase mode */ \
spidrvCsControlAuto, /* CS controlled by the driver */ \
spidrvSlaveStartImmediate /* Slave start transfers immediately*/ \
}

Configuration data for SPI slave using USART1.

SPIDRV_SLAVE_USART2

#define SPIDRV_SLAVE_USART2
Value:
{ \
USART2, /* USART port */ \
_USART_ROUTE_LOCATION_LOC0, /* USART pins location number */ \
0, /* Bitrate */ \
8, /* Frame length */ \
0, /* Dummy Tx value for Rx only funcs */ \
spidrvSlave, /* SPI mode */ \
spidrvBitOrderMsbFirst, /* Bit order on bus */ \
spidrvClockMode0, /* SPI clock/phase mode */ \
spidrvCsControlAuto, /* CS controlled by the driver */ \
spidrvSlaveStartImmediate /* Slave start transfers immediately*/ \
}

Configuration data for SPI slave using USART2.

SPIDRV_SLAVE_USARTRF0

#define SPIDRV_SLAVE_USARTRF0
Value:
{ \
USARTRF0, /* USART port */ \
_USART_ROUTE_LOCATION_LOC1, /* USART pins location number */ \
0, /* Bitrate */ \
8, /* Frame length */ \
0, /* Dummy Tx value for Rx only funcs */ \
spidrvSlave, /* SPI mode */ \
spidrvBitOrderMsbFirst, /* Bit order on bus */ \
spidrvClockMode0, /* SPI clock/phase mode */ \
spidrvCsControlAuto, /* CS controlled by the driver */ \
spidrvSlaveStartImmediate /* Slave start transfers immediately*/ \
}

Configuration data for SPI slave using USARTRF0.