pub struct W(_);
Expand description
Register SMCR
writer
Implementations
sourceimpl W
impl W
sourcepub fn ts_4_3(
&mut self
) -> FieldWriterRaw<'_, u32, SMCR_SPEC, u8, u8, Unsafe, 2, 20>
pub fn ts_4_3(
&mut self
) -> FieldWriterRaw<'_, u32, SMCR_SPEC, u8, u8, Unsafe, 2, 20>
Bits 20:21 - Trigger selection
sourcepub fn sms_3(&mut self) -> BitWriterRaw<'_, u32, SMCR_SPEC, bool, BitM, 16>
pub fn sms_3(&mut self) -> BitWriterRaw<'_, u32, SMCR_SPEC, bool, BitM, 16>
Bit 16 - Slave mode selection - bit 3
sourcepub fn etp(&mut self) -> BitWriterRaw<'_, u32, SMCR_SPEC, ETP_A, BitM, 15>
pub fn etp(&mut self) -> BitWriterRaw<'_, u32, SMCR_SPEC, ETP_A, BitM, 15>
Bit 15 - External trigger polarity
sourcepub fn ece(&mut self) -> BitWriterRaw<'_, u32, SMCR_SPEC, ECE_A, BitM, 14>
pub fn ece(&mut self) -> BitWriterRaw<'_, u32, SMCR_SPEC, ECE_A, BitM, 14>
Bit 14 - External clock enable
sourcepub fn etps(
&mut self
) -> FieldWriterRaw<'_, u32, SMCR_SPEC, u8, ETPS_A, Safe, 2, 12>
pub fn etps(
&mut self
) -> FieldWriterRaw<'_, u32, SMCR_SPEC, u8, ETPS_A, Safe, 2, 12>
Bits 12:13 - External trigger prescaler
sourcepub fn etf(
&mut self
) -> FieldWriterRaw<'_, u32, SMCR_SPEC, u8, ETF_A, Safe, 4, 8>
pub fn etf(
&mut self
) -> FieldWriterRaw<'_, u32, SMCR_SPEC, u8, ETF_A, Safe, 4, 8>
Bits 8:11 - External trigger filter
sourcepub fn msm(&mut self) -> BitWriterRaw<'_, u32, SMCR_SPEC, MSM_A, BitM, 7>
pub fn msm(&mut self) -> BitWriterRaw<'_, u32, SMCR_SPEC, MSM_A, BitM, 7>
Bit 7 - Master/Slave mode
sourcepub fn ts(
&mut self
) -> FieldWriterRaw<'_, u32, SMCR_SPEC, u8, TS_A, Unsafe, 3, 4>
pub fn ts(
&mut self
) -> FieldWriterRaw<'_, u32, SMCR_SPEC, u8, TS_A, Unsafe, 3, 4>
Bits 4:6 - Trigger selection
Methods from Deref<Target = W<SMCR_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