pub struct W(_);
Expand description
Register CFG2
writer
Implementations
sourceimpl W
impl W
sourcepub fn afcntr(&mut self) -> BitWriterRaw<'_, u32, CFG2_SPEC, AFCNTR_A, BitM, 31>
pub fn afcntr(&mut self) -> BitWriterRaw<'_, u32, CFG2_SPEC, AFCNTR_A, BitM, 31>
Bit 31 - Alternate function GPIOs control
sourcepub fn ssom(&mut self) -> BitWriterRaw<'_, u32, CFG2_SPEC, SSOM_A, BitM, 30>
pub fn ssom(&mut self) -> BitWriterRaw<'_, u32, CFG2_SPEC, SSOM_A, BitM, 30>
Bit 30 - SS output management in master mode
sourcepub fn ssoe(&mut self) -> BitWriterRaw<'_, u32, CFG2_SPEC, SSOE_A, BitM, 29>
pub fn ssoe(&mut self) -> BitWriterRaw<'_, u32, CFG2_SPEC, SSOE_A, BitM, 29>
Bit 29 - SS output enable
sourcepub fn ssiop(&mut self) -> BitWriterRaw<'_, u32, CFG2_SPEC, SSIOP_A, BitM, 28>
pub fn ssiop(&mut self) -> BitWriterRaw<'_, u32, CFG2_SPEC, SSIOP_A, BitM, 28>
Bit 28 - SS input/output polarity
sourcepub fn ssm(&mut self) -> BitWriterRaw<'_, u32, CFG2_SPEC, SSM_A, BitM, 26>
pub fn ssm(&mut self) -> BitWriterRaw<'_, u32, CFG2_SPEC, SSM_A, BitM, 26>
Bit 26 - Software management of SS signal input
sourcepub fn cpol(&mut self) -> BitWriterRaw<'_, u32, CFG2_SPEC, CPOL_A, BitM, 25>
pub fn cpol(&mut self) -> BitWriterRaw<'_, u32, CFG2_SPEC, CPOL_A, BitM, 25>
Bit 25 - Clock polarity
sourcepub fn cpha(&mut self) -> BitWriterRaw<'_, u32, CFG2_SPEC, CPHA_A, BitM, 24>
pub fn cpha(&mut self) -> BitWriterRaw<'_, u32, CFG2_SPEC, CPHA_A, BitM, 24>
Bit 24 - Clock phase
sourcepub fn lsbfrst(
&mut self
) -> BitWriterRaw<'_, u32, CFG2_SPEC, LSBFRST_A, BitM, 23>
pub fn lsbfrst(
&mut self
) -> BitWriterRaw<'_, u32, CFG2_SPEC, LSBFRST_A, BitM, 23>
Bit 23 - Data frame format
sourcepub fn master(&mut self) -> BitWriterRaw<'_, u32, CFG2_SPEC, MASTER_A, BitM, 22>
pub fn master(&mut self) -> BitWriterRaw<'_, u32, CFG2_SPEC, MASTER_A, BitM, 22>
Bit 22 - SPI Master
sourcepub fn sp(
&mut self
) -> FieldWriterRaw<'_, u32, CFG2_SPEC, u8, SP_A, Unsafe, 3, 19>
pub fn sp(
&mut self
) -> FieldWriterRaw<'_, u32, CFG2_SPEC, u8, SP_A, Unsafe, 3, 19>
Bits 19:21 - Serial Protocol
sourcepub fn comm(
&mut self
) -> FieldWriterRaw<'_, u32, CFG2_SPEC, u8, COMM_A, Safe, 2, 17>
pub fn comm(
&mut self
) -> FieldWriterRaw<'_, u32, CFG2_SPEC, u8, COMM_A, Safe, 2, 17>
Bits 17:18 - SPI Communication Mode
sourcepub fn ioswp(&mut self) -> BitWriterRaw<'_, u32, CFG2_SPEC, IOSWP_A, BitM, 15>
pub fn ioswp(&mut self) -> BitWriterRaw<'_, u32, CFG2_SPEC, IOSWP_A, BitM, 15>
Bit 15 - Swap functionality of MISO and MOSI pins
sourcepub fn midi(&mut self) -> FieldWriterRaw<'_, u32, CFG2_SPEC, u8, u8, Safe, 4, 4>
pub fn midi(&mut self) -> FieldWriterRaw<'_, u32, CFG2_SPEC, u8, u8, Safe, 4, 4>
Bits 4:7 - Master Inter-Data Idleness
Methods from Deref<Target = W<CFG2_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 Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
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