Struct stabilizer::hardware::timers::TimestampTimer
source · pub struct TimestampTimer { /* private fields */ }
Expand description
The timer used for managing ADC sampling.
Implementations§
source§impl TimestampTimer
impl TimestampTimer
sourcepub fn update_event(&mut self) -> UpdateEvent
pub fn update_event(&mut self) -> UpdateEvent
Get the timer update event.
sourcepub fn get_period(&self) -> u32
pub fn get_period(&self) -> u32
Get the period of the timer.
sourcepub fn set_period_ticks(&mut self, period: u32)
pub fn set_period_ticks(&mut self, period: u32)
Manually set the period of the timer.
sourcepub fn set_external_clock(&mut self, prescaler: Prescaler)
pub fn set_external_clock(&mut self, prescaler: Prescaler)
sourcepub fn generate_trigger(&mut self, source: TriggerGenerator)
pub fn generate_trigger(&mut self, source: TriggerGenerator)
Configure the timer peripheral to generate a trigger based on the provided source.
sourcepub fn set_trigger_source(&mut self, source: TriggerSource)
pub fn set_trigger_source(&mut self, source: TriggerSource)
Select a trigger source for the timer peripheral.
pub fn set_slave_mode(&mut self, source: TriggerSource, mode: SlaveMode)
Auto Trait Implementations§
impl Freeze for TimestampTimer
impl RefUnwindSafe for TimestampTimer
impl Send for TimestampTimer
impl !Sync for TimestampTimer
impl Unpin for TimestampTimer
impl UnwindSafe for TimestampTimer
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