pub struct W(/* private fields */);
Expand description
Register SMCR
writer
Implementations§
Source§impl W
impl W
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§
impl Freeze for W
impl RefUnwindSafe for W
impl Send for W
impl Sync for W
impl Unpin for W
impl UnwindSafe for W
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more