Synergy Software Package User's Manual

#include <r_spi_api.h>

Data Fields

uint8_t channel
 Channel number to be used.
 
uint8_t rxi_ipl
 Receive interrupt priority.
 
uint8_t txi_ipl
 Transmit interrupt priority.
 
uint8_t tei_ipl
 Transmit end interrupt priority.
 
uint8_t eri_ipl
 Error interrupt priority.
 
spi_mode_t operating_mode
 Select master or slave operating mode.
 
spi_clk_phase_t clk_phase
 Data sampling on odd or even clock edge.
 
spi_clk_polarity_t clk_polarity
 Clock level when idle.
 
spi_mode_fault_t mode_fault
 Mode fault error (master/slave conflict) flag.
 
spi_bit_order_t bit_order
 Select to transmit MSB/LSB first.
 
uint32_t bitrate
 Bits Per Second.
 
transfer_instance_t const * p_transfer_tx
 To use SPI DTC/DMA write transfer, link a DTC/DMA instance here. Set to NULL if unused.
 
transfer_instance_t const * p_transfer_rx
 To use SPI DTC/DMA read transfer, link a DTC/DMA instance here. Set to NULL if unused.
 
void(* p_callback )(spi_callback_args_t *p_args)
 Pointer to user callback function.
 
void const * p_context
 User defined context passed to callback function.
 
void const * p_extend
 Extended SPI hardware dependent configuration.
 

Detailed Description

SPI interface configuration


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