SPI_MASTER: SPI_MASTER_CONFIG Struct Reference

SPI_MASTER

SPI_MASTER_CONFIG Struct Reference

Detailed Description

Configuration parameters of SPI_MASTER APP.

Definition at line 227 of file SPI_MASTER.h.

#include <SPI_MASTER.h>

Data Fields

XMC_SPI_CH_CONFIG_t *const channel_config
 
SPI_MASTER_lInit_functionhandler fptr_spi_master_config
 
const SPI_MASTER_GPIO_t *const mosi_0_pin
 
const SPI_MASTER_GPIO_CONFIG_t
*const 
mosi_0_pin_config
 
const SPI_MASTER_GPIO_t *const mosi_1_pin
 
const SPI_MASTER_GPIO_CONFIG_t
*const 
mosi_1_pin_config
 
const SPI_MASTER_GPIO_t *const mosi_2_pin
 
const SPI_MASTER_GPIO_CONFIG_t
*const 
mosi_2_pin_config
 
const SPI_MASTER_GPIO_t *const mosi_3_pin
 
const SPI_MASTER_GPIO_CONFIG_t
*const 
mosi_3_pin_config
 
const SPI_MASTER_GPIO_t *const sclk_out_pin
 
const SPI_MASTER_GPIO_CONFIG_t
*const 
sclk_out_pin_config
 
const SPI_MASTER_GPIO_t *const slave_select_pin [8]
 
const SPI_MASTER_GPIO_CONFIG_t
*const 
slave_select_pin_config [8]
 
SPI_MASTER_functionhandler tx_cbhandler
 
SPI_MASTER_functionhandler rx_cbhandler
 
SPI_MASTER_functionhandler parity_cbhandler
 
XMC_USIC_CH_FIFO_SIZE_t tx_fifo_size
 
XMC_USIC_CH_FIFO_SIZE_t rx_fifo_size
 
XMC_SPI_CH_BRG_SHIFT_CLOCK_PASSIVE_LEVEL_t shift_clk_passive_level
 
SPI_MASTER_TRANSFER_MODE_t transmit_mode
 
SPI_MASTER_TRANSFER_MODE_t receive_mode
 
XMC_SPI_CH_MODE_t spi_master_config_mode
 
uint8_t slave_select_lines
 
uint8_t leading_trailing_delay
 
SPI_MASTER_SR_ID_t tx_sr
 
SPI_MASTER_SR_ID_t rx_sr
 
SPI_MASTER_SR_ID_t parity_sr
 

Field Documentation

XMC_SPI_CH_CONFIG_t* const SPI_MASTER_CONFIG::channel_config

Reference to SPI configuration structure

Definition at line 229 of file SPI_MASTER.h.

SPI_MASTER_lInit_functionhandler SPI_MASTER_CONFIG::fptr_spi_master_config

Function pointer to configure the MUX values

Definition at line 230 of file SPI_MASTER.h.

Referenced by SPI_MASTER_Init().

uint8_t SPI_MASTER_CONFIG::leading_trailing_delay

Delay before and after each frame in terms of SCLK cycles

Definition at line 258 of file SPI_MASTER.h.

Referenced by SPI_MASTER_SetBaudRate().

const SPI_MASTER_GPIO_t* const SPI_MASTER_CONFIG::mosi_0_pin

Reference to mosi 0 pin

Definition at line 233 of file SPI_MASTER.h.

const SPI_MASTER_GPIO_CONFIG_t* const SPI_MASTER_CONFIG::mosi_0_pin_config

Reference to mosi 0 pin configuration

Definition at line 234 of file SPI_MASTER.h.

const SPI_MASTER_GPIO_t* const SPI_MASTER_CONFIG::mosi_1_pin

Reference to mosi 1 pin

Definition at line 235 of file SPI_MASTER.h.

const SPI_MASTER_GPIO_CONFIG_t* const SPI_MASTER_CONFIG::mosi_1_pin_config

Reference to mosi 1 pin configuration

Definition at line 236 of file SPI_MASTER.h.

const SPI_MASTER_GPIO_t* const SPI_MASTER_CONFIG::mosi_2_pin

Reference to mosi 2 pin

Definition at line 237 of file SPI_MASTER.h.

const SPI_MASTER_GPIO_CONFIG_t* const SPI_MASTER_CONFIG::mosi_2_pin_config

Reference to mosi 2 pin configuration

Definition at line 238 of file SPI_MASTER.h.

const SPI_MASTER_GPIO_t* const SPI_MASTER_CONFIG::mosi_3_pin

Reference to mosi 3 pin

Definition at line 239 of file SPI_MASTER.h.

const SPI_MASTER_GPIO_CONFIG_t* const SPI_MASTER_CONFIG::mosi_3_pin_config

Reference to mosi 3 pin configuration

Definition at line 240 of file SPI_MASTER.h.

SPI_MASTER_functionhandler SPI_MASTER_CONFIG::parity_cbhandler

callback handler for end of parity error

Definition at line 247 of file SPI_MASTER.h.

SPI_MASTER_SR_ID_t SPI_MASTER_CONFIG::parity_sr

Service request number assigned to receive interrupts

Definition at line 261 of file SPI_MASTER.h.

SPI_MASTER_TRANSFER_MODE_t SPI_MASTER_CONFIG::receive_mode

Indicates how the receive mode is being handled

Definition at line 255 of file SPI_MASTER.h.

Referenced by SPI_MASTER_AbortReceive(), SPI_MASTER_Receive(), and SPI_MASTER_Transfer().

SPI_MASTER_functionhandler SPI_MASTER_CONFIG::rx_cbhandler

callback handler for end of reception

Definition at line 246 of file SPI_MASTER.h.

XMC_USIC_CH_FIFO_SIZE_t SPI_MASTER_CONFIG::rx_fifo_size

Number of FIFO entries assigned to the receive FIFO buffer

Definition at line 250 of file SPI_MASTER.h.

Referenced by SPI_MASTER_AbortReceive(), and SPI_MASTER_SetRXFIFOTriggerLimit().

SPI_MASTER_SR_ID_t SPI_MASTER_CONFIG::rx_sr

Service request number assigned to receive interrupts

Definition at line 260 of file SPI_MASTER.h.

const SPI_MASTER_GPIO_t* const SPI_MASTER_CONFIG::sclk_out_pin

Reference to sclk out pin

Definition at line 241 of file SPI_MASTER.h.

const SPI_MASTER_GPIO_CONFIG_t* const SPI_MASTER_CONFIG::sclk_out_pin_config

Reference to shift clock pin configuration

Definition at line 242 of file SPI_MASTER.h.

XMC_SPI_CH_BRG_SHIFT_CLOCK_PASSIVE_LEVEL_t SPI_MASTER_CONFIG::shift_clk_passive_level

Baudrate Generator shift clock passive level

Definition at line 253 of file SPI_MASTER.h.

Referenced by SPI_MASTER_SetBaudRate().

uint8_t SPI_MASTER_CONFIG::slave_select_lines

Number of slave select lines being used

Definition at line 257 of file SPI_MASTER.h.

const SPI_MASTER_GPIO_t* const SPI_MASTER_CONFIG::slave_select_pin[8]

Reference to slave select pin

Definition at line 243 of file SPI_MASTER.h.

const SPI_MASTER_GPIO_CONFIG_t* const SPI_MASTER_CONFIG::slave_select_pin_config[8]

Reference to slave select pin configuration

Definition at line 244 of file SPI_MASTER.h.

Referenced by SPI_MASTER_EnableSlaveSelectSignal().

XMC_SPI_CH_MODE_t SPI_MASTER_CONFIG::spi_master_config_mode

Defines the SPI transmit mode being used

Definition at line 256 of file SPI_MASTER.h.

SPI_MASTER_TRANSFER_MODE_t SPI_MASTER_CONFIG::transmit_mode

Indicates how the transmit mode is being handled

Definition at line 254 of file SPI_MASTER.h.

Referenced by SPI_MASTER_AbortTransmit(), and SPI_MASTER_Transmit().

SPI_MASTER_functionhandler SPI_MASTER_CONFIG::tx_cbhandler

callback handler for end of transmission

Definition at line 245 of file SPI_MASTER.h.

XMC_USIC_CH_FIFO_SIZE_t SPI_MASTER_CONFIG::tx_fifo_size

Number of FIFO entries assigned to the transmit FIFO buffer

Definition at line 249 of file SPI_MASTER.h.

Referenced by SPI_MASTER_AbortTransmit(), and SPI_MASTER_SetTXFIFOTriggerLimit().

SPI_MASTER_SR_ID_t SPI_MASTER_CONFIG::tx_sr

Service request number assigned to transmit interrupt

Definition at line 259 of file SPI_MASTER.h.


The documentation for this struct was generated from the following file: