pub struct W(_);
Expand description
Register CFGR
writer
Implementations
sourceimpl W
impl W
sourcepub fn cksel(&mut self) -> CKSEL_W<'_, 0>
pub fn cksel(&mut self) -> CKSEL_W<'_, 0>
Bit 0 - Clock selector The CKSEL bit selects which clock source the LPTIM will use:
sourcepub fn ckpol(&mut self) -> CKPOL_W<'_, 1>
pub fn ckpol(&mut self) -> CKPOL_W<'_, 1>
Bits 1:2 - Clock Polarity If LPTIM is clocked by an external clock source: When the LPTIM is clocked by an external clock source, CKPOL bits is used to configure the active edge or edges used by the counter: If the LPTIM is configured in Encoder mode (ENC bit is set), the encoder sub-mode 1 is active. If the LPTIM is configured in Encoder mode (ENC bit is set), the encoder sub-mode 2 is active. Refer to for more details about Encoder mode sub-modes.
sourcepub fn ckflt(&mut self) -> CKFLT_W<'_, 3>
pub fn ckflt(&mut self) -> CKFLT_W<'_, 3>
Bits 3:4 - Configurable digital filter for external clock The CKFLT value sets the number of consecutive equal samples that should be detected when a level change occurs on an external clock signal before it is considered as a valid level transition. An internal clock source must be present to use this feature
sourcepub fn trgflt(&mut self) -> TRGFLT_W<'_, 6>
pub fn trgflt(&mut self) -> TRGFLT_W<'_, 6>
Bits 6:7 - Configurable digital filter for trigger The TRGFLT value sets the number of consecutive equal samples that should be detected when a level change occurs on an internal trigger before it is considered as a valid level transition. An internal clock source must be present to use this feature
sourcepub fn presc(&mut self) -> PRESC_W<'_, 9>
pub fn presc(&mut self) -> PRESC_W<'_, 9>
Bits 9:11 - Clock prescaler The PRESC bits configure the prescaler division factor. It can be one among the following division factors:
sourcepub fn trigsel(&mut self) -> TRIGSEL_W<'_, 13>
pub fn trigsel(&mut self) -> TRIGSEL_W<'_, 13>
Bits 13:15 - Trigger selector The TRIGSEL bits select the trigger source that will serve as a trigger event for the LPTIM among the below 8 available sources: See for details.
sourcepub fn trigen(&mut self) -> TRIGEN_W<'_, 17>
pub fn trigen(&mut self) -> TRIGEN_W<'_, 17>
Bits 17:18 - Trigger enable and polarity The TRIGEN bits controls whether the LPTIM counter is started by an external trigger or not. If the external trigger option is selected, three configurations are possible for the trigger active edge:
sourcepub fn timout(&mut self) -> TIMOUT_W<'_, 19>
pub fn timout(&mut self) -> TIMOUT_W<'_, 19>
Bit 19 - Timeout enable The TIMOUT bit controls the Timeout feature
sourcepub fn wave(&mut self) -> WAVE_W<'_, 20>
pub fn wave(&mut self) -> WAVE_W<'_, 20>
Bit 20 - Waveform shape The WAVE bit controls the output shape
sourcepub fn wavpol(&mut self) -> WAVPOL_W<'_, 21>
pub fn wavpol(&mut self) -> WAVPOL_W<'_, 21>
Bit 21 - Waveform shape polarity The WAVEPOL bit controls the output polarity
sourcepub fn preload(&mut self) -> PRELOAD_W<'_, 22>
pub fn preload(&mut self) -> PRELOAD_W<'_, 22>
Bit 22 - Registers update mode The PRELOAD bit controls the LPTIM_ARR and the LPTIM_CMP registers update modality
sourcepub fn countmode(&mut self) -> COUNTMODE_W<'_, 23>
pub fn countmode(&mut self) -> COUNTMODE_W<'_, 23>
Bit 23 - counter mode enabled The COUNTMODE bit selects which clock source is used by the LPTIM to clock the counter:
Methods from Deref<Target = W<CFGR_SPEC>>
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