Struct attiny_hal::spi::Settings
source · pub struct Settings {
pub data_order: DataOrder,
pub clock: SerialClockRate,
pub mode: Mode,
}
Expand description
Settings to pass to Spi.
Easiest way to initialize is with
Settings::default()
. Otherwise can be instantiated with alternate
settings directly.
Fields§
§data_order: DataOrder
§clock: SerialClockRate
§mode: Mode
Trait Implementations§
source§impl PartialEq for Settings
impl PartialEq for Settings
impl Eq for Settings
impl StructuralPartialEq for Settings
Auto Trait Implementations§
impl Freeze for Settings
impl RefUnwindSafe for Settings
impl Send for Settings
impl Sync for Settings
impl Unpin for Settings
impl UnwindSafe for Settings
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