pub struct Settings {
enabled: bool,
master: bool,
clock: u32,
bit_order: BitOrder,
clock_phase: ClockPhase,
enable_interrupts: bool,
}Expand description
SPI settings.
Fields§
§enabled: boolWhether the SPI module is enabled.
master: boolWhether to be configured as a master or slave.
clock: u32The clock speed.
bit_order: BitOrderThe bit ordering.
clock_phase: ClockPhaseThe clock phase.
enable_interrupts: boolWhether interrupts should be enabled.
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl RefUnwindSafe for Settings
impl Send for Settings
impl Sync for Settings
impl Unpin for Settings
impl UnwindSafe for Settings
Blanket Implementations§
§impl<T> Any for Twhere
T: 'static + ?Sized,
impl<T> Any for Twhere
T: 'static + ?Sized,
§impl<T> Borrow<T> for Twhere
T: ?Sized,
impl<T> Borrow<T> for Twhere
T: ?Sized,
§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more