PMSIS API
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
pi_spi_conf Struct Reference

Data Fields

int max_baudrate
 
char wordsize
 
char big_endian
 
pi_spi_polarity_e polarity
 
pi_spi_phase_e phase
 
signed char cs
 
signed char itf
 
int max_rcv_chunk_size
 
int max_snd_chunk_size
 

Field Documentation

char pi_spi_conf::big_endian

If 1, the elements are stored in memory in a big-endian way, i.e. the most significant byte is stored at the lowest address. This is taken into account only if the wordsize is 32 bits.

signed char pi_spi_conf::cs

Specifies which SPI chip select is used for the device.

signed char pi_spi_conf::itf

Specifies on which SPI interface the device is connected.

int pi_spi_conf::max_baudrate

Maximum baudrate for the SPI bitstream which can be used with the opened device .

int pi_spi_conf::max_rcv_chunk_size

Specifies maximum chunk size for reception when using copies.

int pi_spi_conf::max_snd_chunk_size

Specifies maximum chunk size for sending when using copies.

pi_spi_phase_e pi_spi_conf::phase

Phase of the clock.

pi_spi_polarity_e pi_spi_conf::polarity

Polarity of the clock.

char pi_spi_conf::wordsize

Wordsize of the elements in the bitstream. Can be PI_SPI_WORDSIZE_8 for 8 bits data or PI_SPI_WORDSIZE_32 for 32 bits data. This is used to interpret the endianness.