Struct stm32_hal2::spi::SpiConfig
source · [−]pub struct SpiConfig {
pub mode: SpiMode,
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: SpiMode
SPI mode associated with Polarity and Phase. Defaults to Mode0: Idle low, capture on first transition.
comm_mode: SpiCommMode
slave_select: SlaveSelect
data_size: DataSize
Data size. Defaults to 8 bits.
fifo_reception_thresh: ReceptionThresh
FIFO reception threshhold. Defaults to 8 bits.
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for SpiConfig
impl Send for SpiConfig
impl Sync for SpiConfig
impl Unpin for SpiConfig
impl UnwindSafe for SpiConfig
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more