SPI controller configuration structure.
More...
#include <spi.h>
SPI controller configuration structure.
- Parameters
-
frequency | is the bus frequency in Hertz |
operation | is a bit field with the following parts: operational mode [ 0 ] - master or slave.
mode [ 1 : 3 ] - Polarity, phase and loop mode.
transfer [ 4 ] - LSB or MSB first.
word_size [ 5 : 10 ] - Size of a data frame in bits.
duplex [ 11 ] - full/half duplex.
cs_hold [ 12 ] - Hold on the CS line if possible.
lock_on [ 13 ] - Keep resource locked for the caller.
cs_active_high [ 14 ] - Active high CS logic.
format [ 15 ] - Motorola or TI frame format (optional).
if CONFIG_SPI_EXTENDED_MODES is defined: lines [ 16 : 17 ] - MISO lines: Single/Dual/Quad/Octal. reserved [ 18 : 31 ] - reserved for future use. |
slave | is the slave number from 0 to host controller slave limit. |
cs | is a valid pointer on a struct spi_cs_control is CS line is emulated through a gpio line, or NULL otherwise. |
- Warning
- Most drivers use pointer comparison to determine whether a passed configuration is different from one used in a previous transaction. Changes to fields in the structure may not be detected.
◆ cs
◆ frequency
◆ operation
◆ slave
The documentation for this struct was generated from the following file: