Struct stm32wlxx_hal::pac::tim1::smcr::W
pub struct W(/* private fields */);
Available on crate feature
stm32wl5x_cm4
only.Expand description
Register SMCR
writer
Implementations§
§impl W
impl W
pub fn ts3_4(
&mut self
) -> FieldWriterRaw<'_, u32, SMCR_SPEC, u8, u8, Unsafe, 2, 20>
pub fn ts3_4( &mut self ) -> FieldWriterRaw<'_, u32, SMCR_SPEC, u8, u8, Unsafe, 2, 20>
Bits 20:21 - Trigger selection
pub fn sms_3(&mut self) -> BitWriterRaw<'_, u32, SMCR_SPEC, SMS_3_A, BitM, 16>
pub fn sms_3(&mut self) -> BitWriterRaw<'_, u32, SMCR_SPEC, SMS_3_A, BitM, 16>
Bit 16 - Slave mode selection
pub 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
pub 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
pub 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
pub 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
pub 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
pub fn occs(&mut self) -> BitWriterRaw<'_, u32, SMCR_SPEC, bool, BitM, 3>
pub fn occs(&mut self) -> BitWriterRaw<'_, u32, SMCR_SPEC, bool, BitM, 3>
Bit 3 - OCREF clear selection
Methods from Deref<Target = W<SMCR_SPEC>>§
pub 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§
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