#[repr(C)]pub struct SPI_InitTypeDef {
pub Mode: u32,
pub Direction: u32,
pub DataSize: u32,
pub CLKPolarity: u32,
pub CLKPhase: u32,
pub NSS: u32,
pub BaudRatePrescaler: u32,
pub FirstBit: u32,
pub SlaveFastMode: u32,
}
Expand description
@brief SPI Configuration Structure definition
Fields§
§Mode: u32
< Specifies the SPI operating mode. This parameter can be a value of @ref SPI_Mode
Direction: u32
< Specifies the SPI bidirectional mode state. This parameter can be a value of @ref SPI_Direction
DataSize: u32
< Specifies the SPI data size. This parameter can be a value of @ref SPI_Data_Size
CLKPolarity: u32
< Specifies the serial clock steady state. This parameter can be a value of @ref SPI_Clock_Polarity
CLKPhase: u32
< Specifies the clock active edge for the bit capture. This parameter can be a value of @ref SPI_Clock_Phase
NSS: u32
< Specifies whether the NSS signal is managed by hardware (NSS pin) or by software using the SSI bit. This parameter can be a value of @ref SPI_Slave_Select_management
BaudRatePrescaler: u32
< Specifies the Baud Rate prescaler value which will be used to configure the transmit and receive SCK clock. This parameter can be a value of @ref SPI_BaudRate_Prescaler @note The communication clock is derived from the master clock. The slave clock does not need to be set.
FirstBit: u32
< Specifies whether data transfers start from MSB or LSB bit. This parameter can be a value of @ref SPI_MSB_LSB_transmission
SlaveFastMode: u32
< Specifies the Slave fast mode is enabled or not. This parameter can be a value of @ref SPI_Slave_Fast_mode
Trait Implementations§
Source§impl Clone for SPI_InitTypeDef
impl Clone for SPI_InitTypeDef
Source§fn clone(&self) -> SPI_InitTypeDef
fn clone(&self) -> SPI_InitTypeDef
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read more