S32 SDK
lpspi_master_config_t Struct Reference

Data structure containing information about a device on the SPI bus. More...

#include <lpspi_master_driver.h>

Data Fields

uint32_t bitsPerSec
 
lpspi_which_pcs_t whichPcs
 
lpspi_signal_polarity_t pcsPolarity
 
bool isPcsContinuous
 
uint16_t bitcount
 
uint32_t lpspiSrcClk
 
lpspi_clock_phase_t clkPhase
 
lpspi_sck_polarity_t clkPolarity
 
bool lsbFirst
 
lpspi_transfer_type transferType
 
uint8_t rxDMAChannel
 
uint8_t txDMAChannel
 
spi_callback_t callback
 
void * callbackParam
 

Detailed Description

Data structure containing information about a device on the SPI bus.

The user must populate these members to set up the LPSPI master and properly communicate with the SPI device. Implements : lpspi_master_config_t_Class

Definition at line 52 of file lpspi_master_driver.h.

Field Documentation

uint16_t bitcount

Number of bits/frame, minimum is 8-bits

Definition at line 58 of file lpspi_master_driver.h.

uint32_t bitsPerSec

Baud rate in bits per second

Definition at line 54 of file lpspi_master_driver.h.

spi_callback_t callback

Select the callback to transfer complete

Definition at line 66 of file lpspi_master_driver.h.

void* callbackParam

Select additional callback parameters if it's necessary

Definition at line 67 of file lpspi_master_driver.h.

Selects which phase of clock to capture data

Definition at line 60 of file lpspi_master_driver.h.

lpspi_sck_polarity_t clkPolarity

Selects clock polarity

Definition at line 61 of file lpspi_master_driver.h.

bool isPcsContinuous

Keeps PCS asserted until transfer complete

Definition at line 57 of file lpspi_master_driver.h.

uint32_t lpspiSrcClk

Module source clock

Definition at line 59 of file lpspi_master_driver.h.

bool lsbFirst

Option to transmit LSB first

Definition at line 62 of file lpspi_master_driver.h.

PCS polarity

Definition at line 56 of file lpspi_master_driver.h.

uint8_t rxDMAChannel

Channel number for DMA rx channel. If DMA mode isn't used this field will be ignored.

Definition at line 64 of file lpspi_master_driver.h.

lpspi_transfer_type transferType

Type of LPSPI transfer

Definition at line 63 of file lpspi_master_driver.h.

uint8_t txDMAChannel

Channel number for DMA tx channel. If DMA mode isn't used this field will be ignored.

Definition at line 65 of file lpspi_master_driver.h.

Selects which PCS to use

Definition at line 55 of file lpspi_master_driver.h.


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