Struct stm32_hal2::spi::SpiConfig
source · pub struct SpiConfig {
pub mode: Mode,
pub comm_mode: SpiCommMode,
pub slave_select: SlaveSelect,
pub data_size: DataSize,
pub fifo_reception_thresh: ReceptionThresh,
}
Expand description
Configuration data for SPI.
Fields§
§mode: Mode
SPI mode associated with Polarity and Phase. Defaults to Mode0: Idle low, capture on first transition.
comm_mode: SpiCommMode
Sets the (duplex) communication mode between the devices. Defaults to full duplex.
slave_select: SlaveSelect
Controls use of hardware vs software CS/NSS pin. Defaults to software.
data_size: DataSize
Data size. Defaults to 8 bits.
fifo_reception_thresh: ReceptionThresh
FIFO reception threshhold. Defaults to 8 bits.