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
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