pub struct Settings {
enabled: bool,
master: bool,
clock: u32,
bit_order: BitOrder,
clock_phase: ClockPhase,
enable_interrupts: bool,
}
Expand description
SPI settings.
Fields§
§enabled: bool
Whether the SPI module is enabled.
master: bool
Whether to be configured as a master or slave.
clock: u32
The clock speed.
bit_order: BitOrder
The bit ordering.
clock_phase: ClockPhase
The clock phase.
enable_interrupts: bool
Whether 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