Struct stabilizer::hardware::timers::PounderTimestampTimer
source · pub struct PounderTimestampTimer { /* private fields */ }
Expand description
The timer used for managing ADC sampling.
Implementations§
source§impl PounderTimestampTimer
impl PounderTimestampTimer
sourcepub fn update_event(&mut self) -> UpdateEvent
pub fn update_event(&mut self) -> UpdateEvent
Get the timer update event.
sourcepub fn get_period(&self) -> u16
pub fn get_period(&self) -> u16
Get the period of the timer.
sourcepub fn set_period_ticks(&mut self, period: u16)
pub fn set_period_ticks(&mut self, period: u16)
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 PounderTimestampTimer
impl RefUnwindSafe for PounderTimestampTimer
impl Send for PounderTimestampTimer
impl !Sync for PounderTimestampTimer
impl Unpin for PounderTimestampTimer
impl UnwindSafe for PounderTimestampTimer
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