pub struct W(_);
Expand description
Register SMCFG
writer
Implementations
sourceimpl W
impl W
sourcepub fn etp(&mut self) -> BitWriterRaw<'_, u16, SMCFG_SPEC, ETP_A, BitM, 15_u8>
pub fn etp(&mut self) -> BitWriterRaw<'_, u16, SMCFG_SPEC, ETP_A, BitM, 15_u8>
Bit 15 - External trigger polarity
sourcepub fn smc1(&mut self) -> BitWriterRaw<'_, u16, SMCFG_SPEC, SMC1_A, BitM, 14_u8>
pub fn smc1(&mut self) -> BitWriterRaw<'_, u16, SMCFG_SPEC, SMC1_A, BitM, 14_u8>
Bit 14 - Part of SMC for enable External clock mode1
sourcepub fn etpsc(
&mut self
) -> FieldWriterRaw<'_, u16, SMCFG_SPEC, u8, ETPSC_A, Safe, 2_u8, 12_u8>
pub fn etpsc(
&mut self
) -> FieldWriterRaw<'_, u16, SMCFG_SPEC, u8, ETPSC_A, Safe, 2_u8, 12_u8>
Bits 12:13 - External trigger prescaler
sourcepub fn etfc(
&mut self
) -> FieldWriterRaw<'_, u16, SMCFG_SPEC, u8, ETFC_A, Safe, 4_u8, 8_u8>
pub fn etfc(
&mut self
) -> FieldWriterRaw<'_, u16, SMCFG_SPEC, u8, ETFC_A, Safe, 4_u8, 8_u8>
Bits 8:11 - External trigger filter control
sourcepub fn msm(&mut self) -> BitWriterRaw<'_, u16, SMCFG_SPEC, MSM_A, BitM, 7_u8>
pub fn msm(&mut self) -> BitWriterRaw<'_, u16, SMCFG_SPEC, MSM_A, BitM, 7_u8>
Bit 7 - Master/Slave mode
sourcepub fn trgs(
&mut self
) -> FieldWriterRaw<'_, u16, SMCFG_SPEC, u8, TRGS_A, Unsafe, 3_u8, 4_u8>
pub fn trgs(
&mut self
) -> FieldWriterRaw<'_, u16, SMCFG_SPEC, u8, TRGS_A, Unsafe, 3_u8, 4_u8>
Bits 4:6 - Trigger selection
sourcepub fn ocrc(&mut self) -> BitWriterRaw<'_, u16, SMCFG_SPEC, OCRC_A, BitM, 3_u8>
pub fn ocrc(&mut self) -> BitWriterRaw<'_, u16, SMCFG_SPEC, OCRC_A, BitM, 3_u8>
Bit 3 - OCREF clear source selection
Methods from Deref<Target = W<SMCFG_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
sourceimpl From<W<SMCFG_SPEC>> for W
impl From<W<SMCFG_SPEC>> for W
sourcefn from(writer: W<SMCFG_SPEC>) -> W
fn from(writer: W<SMCFG_SPEC>) -> W
Converts to this type from the input type.
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