pub struct W(_);
Expand description
Register CTL2
writer
Implementations
sourceimpl W
impl W
sourcepub fn wuie(&mut self) -> BitWriterRaw<'_, u32, CTL2_SPEC, WUIE_A, BitM, 22_u8>
pub fn wuie(&mut self) -> BitWriterRaw<'_, u32, CTL2_SPEC, WUIE_A, BitM, 22_u8>
Bit 22 - Wakeup from Deep-sleep mode interrupt enable
sourcepub fn wum(
&mut self
) -> FieldWriterRaw<'_, u32, CTL2_SPEC, u8, WUM_A, Unsafe, 2_u8, 20_u8>
pub fn wum(
&mut self
) -> FieldWriterRaw<'_, u32, CTL2_SPEC, u8, WUM_A, Unsafe, 2_u8, 20_u8>
Bits 20:21 - Wakeup mode from Deep-sleep mode
sourcepub fn scrtnum(
&mut self
) -> FieldWriterRaw<'_, u32, CTL2_SPEC, u8, u8, Safe, 3_u8, 17_u8>
pub fn scrtnum(
&mut self
) -> FieldWriterRaw<'_, u32, CTL2_SPEC, u8, u8, Safe, 3_u8, 17_u8>
Bits 17:19 - Smartcard auto-retry number
sourcepub fn dep(&mut self) -> BitWriterRaw<'_, u32, CTL2_SPEC, DEP_A, BitM, 15_u8>
pub fn dep(&mut self) -> BitWriterRaw<'_, u32, CTL2_SPEC, DEP_A, BitM, 15_u8>
Bit 15 - Driver enable polarity mode
sourcepub fn dem(&mut self) -> BitWriterRaw<'_, u32, CTL2_SPEC, DEM_A, BitM, 14_u8>
pub fn dem(&mut self) -> BitWriterRaw<'_, u32, CTL2_SPEC, DEM_A, BitM, 14_u8>
Bit 14 - Driver enable mode
sourcepub fn ddre(&mut self) -> BitWriterRaw<'_, u32, CTL2_SPEC, DDRE_A, BitM, 13_u8>
pub fn ddre(&mut self) -> BitWriterRaw<'_, u32, CTL2_SPEC, DDRE_A, BitM, 13_u8>
Bit 13 - Disable DMA on reception error
sourcepub fn ovrd(&mut self) -> BitWriterRaw<'_, u32, CTL2_SPEC, OVRD_A, BitM, 12_u8>
pub fn ovrd(&mut self) -> BitWriterRaw<'_, u32, CTL2_SPEC, OVRD_A, BitM, 12_u8>
Bit 12 - Overrun Disable
sourcepub fn osb(&mut self) -> BitWriterRaw<'_, u32, CTL2_SPEC, OSB_A, BitM, 11_u8>
pub fn osb(&mut self) -> BitWriterRaw<'_, u32, CTL2_SPEC, OSB_A, BitM, 11_u8>
Bit 11 - One sample bit method
sourcepub fn ctsie(
&mut self
) -> BitWriterRaw<'_, u32, CTL2_SPEC, CTSIE_A, BitM, 10_u8>
pub fn ctsie(
&mut self
) -> BitWriterRaw<'_, u32, CTL2_SPEC, CTSIE_A, BitM, 10_u8>
Bit 10 - CTS interrupt enable
sourcepub fn ctsen(&mut self) -> BitWriterRaw<'_, u32, CTL2_SPEC, CTSEN_A, BitM, 9_u8>
pub fn ctsen(&mut self) -> BitWriterRaw<'_, u32, CTL2_SPEC, CTSEN_A, BitM, 9_u8>
Bit 9 - CTS enable
sourcepub fn rtsen(&mut self) -> BitWriterRaw<'_, u32, CTL2_SPEC, RTSEN_A, BitM, 8_u8>
pub fn rtsen(&mut self) -> BitWriterRaw<'_, u32, CTL2_SPEC, RTSEN_A, BitM, 8_u8>
Bit 8 - RTS enable
sourcepub fn dent(&mut self) -> BitWriterRaw<'_, u32, CTL2_SPEC, DENT_A, BitM, 7_u8>
pub fn dent(&mut self) -> BitWriterRaw<'_, u32, CTL2_SPEC, DENT_A, BitM, 7_u8>
Bit 7 - DMA enable transmitter
sourcepub fn denr(&mut self) -> BitWriterRaw<'_, u32, CTL2_SPEC, DENR_A, BitM, 6_u8>
pub fn denr(&mut self) -> BitWriterRaw<'_, u32, CTL2_SPEC, DENR_A, BitM, 6_u8>
Bit 6 - DMA enable for reception
sourcepub fn scen(&mut self) -> BitWriterRaw<'_, u32, CTL2_SPEC, SCEN_A, BitM, 5_u8>
pub fn scen(&mut self) -> BitWriterRaw<'_, u32, CTL2_SPEC, SCEN_A, BitM, 5_u8>
Bit 5 - Smartcard mode enable
sourcepub fn nken(&mut self) -> BitWriterRaw<'_, u32, CTL2_SPEC, NKEN_A, BitM, 4_u8>
pub fn nken(&mut self) -> BitWriterRaw<'_, u32, CTL2_SPEC, NKEN_A, BitM, 4_u8>
Bit 4 - NKEN enable in Smartcard mode
sourcepub fn hden(&mut self) -> BitWriterRaw<'_, u32, CTL2_SPEC, HDEN_A, BitM, 3_u8>
pub fn hden(&mut self) -> BitWriterRaw<'_, u32, CTL2_SPEC, HDEN_A, BitM, 3_u8>
Bit 3 - Half-duplex selection
sourcepub fn irlp(&mut self) -> BitWriterRaw<'_, u32, CTL2_SPEC, IRLP_A, BitM, 2_u8>
pub fn irlp(&mut self) -> BitWriterRaw<'_, u32, CTL2_SPEC, IRLP_A, BitM, 2_u8>
Bit 2 - IrDA low-power
sourcepub fn iren(&mut self) -> BitWriterRaw<'_, u32, CTL2_SPEC, IREN_A, BitM, 1_u8>
pub fn iren(&mut self) -> BitWriterRaw<'_, u32, CTL2_SPEC, IREN_A, BitM, 1_u8>
Bit 1 - IrDA mode enable
Methods from Deref<Target = W<CTL2_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