pub struct Config {
pub mode: Mode,
pub frame_format: FrameFormat,
pub bit_order: BitOrder,
pub slave_select_mode: SlaveSelectMode,
pub bus_speed_hz: u32,
pub data_bits: u8,
}Expand description
Holds the configuration for a SPI peripheral.
Fields§
§mode: Mode§frame_format: FrameFormat§bit_order: BitOrder§slave_select_mode: SlaveSelectMode§bus_speed_hz: u32§data_bits: u8Trait Implementations§
impl Eq for Config
impl StructuralPartialEq for Config
Auto Trait Implementations§
impl Freeze for Config
impl RefUnwindSafe for Config
impl Send for Config
impl Sync for Config
impl Unpin for Config
impl UnwindSafe for Config
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more