Struct stm32l4xx_hal::lptimer::LowPowerTimerConfig
source · [−]pub struct LowPowerTimerConfig { /* private fields */ }
Expand description
Configuration of a low power timer
Implementations
sourceimpl LowPowerTimerConfig
impl LowPowerTimerConfig
sourcepub fn clock_source(self, clock_source: ClockSource) -> Self
pub fn clock_source(self, clock_source: ClockSource) -> Self
Select which clock source should be used
sourcepub fn prescaler(self, prescaler: PreScaler) -> Self
pub fn prescaler(self, prescaler: PreScaler) -> Self
Select which prescaler value should be used
sourcepub fn count_mode(self, count_mode: CountMode) -> Self
pub fn count_mode(self, count_mode: CountMode) -> Self
Select the count mode that should be used
sourcepub fn compare_value(self, compare_value: u16) -> Self
pub fn compare_value(self, compare_value: u16) -> Self
Set the value of the compare register
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for LowPowerTimerConfig
impl Send for LowPowerTimerConfig
impl Sync for LowPowerTimerConfig
impl Unpin for LowPowerTimerConfig
impl UnwindSafe for LowPowerTimerConfig
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