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