pub struct W(_);
Expand description
Register CTL0
writer
Implementations
sourceimpl W
impl W
sourcepub fn bden(&mut self) -> BitWriterRaw<'_, u16, CTL0_SPEC, BDEN_A, BitM, 15_u8>
pub fn bden(&mut self) -> BitWriterRaw<'_, u16, CTL0_SPEC, BDEN_A, BitM, 15_u8>
Bit 15 - Bidirectional enable
sourcepub fn bdoen(
&mut self
) -> BitWriterRaw<'_, u16, CTL0_SPEC, BDOEN_A, BitM, 14_u8>
pub fn bdoen(
&mut self
) -> BitWriterRaw<'_, u16, CTL0_SPEC, BDOEN_A, BitM, 14_u8>
Bit 14 - Bidirectional Transmit output enable
sourcepub fn crcen(
&mut self
) -> BitWriterRaw<'_, u16, CTL0_SPEC, CRCEN_A, BitM, 13_u8>
pub fn crcen(
&mut self
) -> BitWriterRaw<'_, u16, CTL0_SPEC, CRCEN_A, BitM, 13_u8>
Bit 13 - Hardware CRC calculation enable
sourcepub fn crcnt(
&mut self
) -> BitWriterRaw<'_, u16, CTL0_SPEC, CRCNT_A, BitM, 12_u8>
pub fn crcnt(
&mut self
) -> BitWriterRaw<'_, u16, CTL0_SPEC, CRCNT_A, BitM, 12_u8>
Bit 12 - CRC transfer next
sourcepub fn ff16(&mut self) -> BitWriterRaw<'_, u16, CTL0_SPEC, FF16_A, BitM, 11_u8>
pub fn ff16(&mut self) -> BitWriterRaw<'_, u16, CTL0_SPEC, FF16_A, BitM, 11_u8>
Bit 11 - Data frame format
sourcepub fn ro(&mut self) -> BitWriterRaw<'_, u16, CTL0_SPEC, RO_A, BitM, 10_u8>
pub fn ro(&mut self) -> BitWriterRaw<'_, u16, CTL0_SPEC, RO_A, BitM, 10_u8>
Bit 10 - Receive only
sourcepub fn swnssen(
&mut self
) -> BitWriterRaw<'_, u16, CTL0_SPEC, SWNSSEN_A, BitM, 9_u8>
pub fn swnssen(
&mut self
) -> BitWriterRaw<'_, u16, CTL0_SPEC, SWNSSEN_A, BitM, 9_u8>
Bit 9 - NSS Software Mode Selection
sourcepub fn swnss(&mut self) -> BitWriterRaw<'_, u16, CTL0_SPEC, SWNSS_A, BitM, 8_u8>
pub fn swnss(&mut self) -> BitWriterRaw<'_, u16, CTL0_SPEC, SWNSS_A, BitM, 8_u8>
Bit 8 - NSS Pin Selection In NSS Software Mode
sourcepub fn lf(&mut self) -> BitWriterRaw<'_, u16, CTL0_SPEC, LF_A, BitM, 7_u8>
pub fn lf(&mut self) -> BitWriterRaw<'_, u16, CTL0_SPEC, LF_A, BitM, 7_u8>
Bit 7 - LSB First Mode
sourcepub fn spien(&mut self) -> BitWriterRaw<'_, u16, CTL0_SPEC, SPIEN_A, BitM, 6_u8>
pub fn spien(&mut self) -> BitWriterRaw<'_, u16, CTL0_SPEC, SPIEN_A, BitM, 6_u8>
Bit 6 - SPI enable
sourcepub fn psc(
&mut self
) -> FieldWriterRaw<'_, u16, CTL0_SPEC, u8, PSC_A, Safe, 3_u8, 3_u8>
pub fn psc(
&mut self
) -> FieldWriterRaw<'_, u16, CTL0_SPEC, u8, PSC_A, Safe, 3_u8, 3_u8>
Bits 3:5 - Master Clock Prescaler Selection
sourcepub fn mstmod(
&mut self
) -> BitWriterRaw<'_, u16, CTL0_SPEC, MSTMOD_A, BitM, 2_u8>
pub fn mstmod(
&mut self
) -> BitWriterRaw<'_, u16, CTL0_SPEC, MSTMOD_A, BitM, 2_u8>
Bit 2 - Master selection
sourcepub fn ckpl(&mut self) -> BitWriterRaw<'_, u16, CTL0_SPEC, CKPL_A, BitM, 1_u8>
pub fn ckpl(&mut self) -> BitWriterRaw<'_, u16, CTL0_SPEC, CKPL_A, BitM, 1_u8>
Bit 1 - Clock Polarity Selection
Methods from Deref<Target = W<CTL0_SPEC>>
sourcepub unsafe fn bits(&mut self, bits: <REG as RegisterSpec>::Ux) -> &mut W<REG>
pub unsafe fn bits(&mut self, bits: <REG as RegisterSpec>::Ux) -> &mut W<REG>
Writes raw bits to the register.
Trait Implementations
Auto Trait Implementations
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more