pub struct W(/* private fields */);
Expand description
Register SPCR
writer
Implementations§
source§impl W
impl W
sourcepub fn spr(
&mut self
) -> FieldWriterRaw<'_, u8, SPCR_SPEC, u8, SPR_A, Safe, 2, 0>
pub fn spr( &mut self ) -> FieldWriterRaw<'_, u8, SPCR_SPEC, u8, SPR_A, Safe, 2, 0>
Bits 0:1 - SPI Clock Rate Selects
sourcepub fn cpol(&mut self) -> BitWriterRaw<'_, u8, SPCR_SPEC, bool, BitM, 3>
pub fn cpol(&mut self) -> BitWriterRaw<'_, u8, SPCR_SPEC, bool, BitM, 3>
Bit 3 - Clock polarity
sourcepub fn mstr(&mut self) -> BitWriterRaw<'_, u8, SPCR_SPEC, bool, BitM, 4>
pub fn mstr(&mut self) -> BitWriterRaw<'_, u8, SPCR_SPEC, bool, BitM, 4>
Bit 4 - Master/Slave Select
Methods from Deref<Target = W<SPCR_SPEC>>§
Trait Implementations§
Auto Trait Implementations§
impl Freeze for W
impl RefUnwindSafe for W
impl Send for W
impl Sync for W
impl Unpin for W
impl UnwindSafe for W
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