pub struct SamplingTimer { /* private fields */ }
Expand description
The timer used for managing ADC sampling.
Implementations§
Source§impl SamplingTimer
impl SamplingTimer
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 SamplingTimer
impl RefUnwindSafe for SamplingTimer
impl Send for SamplingTimer
impl !Sync for SamplingTimer
impl Unpin for SamplingTimer
impl UnwindSafe for SamplingTimer
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
§impl<T, M> ForwardCompat<T, M> for T
impl<T, M> ForwardCompat<T, M> for T
§impl<T> ReverseCompat<T> for T
impl<T> ReverseCompat<T> for T
§fn reverse(self) -> Reverse<T>
fn reverse(self) -> Reverse<T>
Create an e-h-c wrapper around and e-h object Available methods depend on the wrapped type
§fn reverse_cell(self) -> Reverse<RefCell<T>>
fn reverse_cell(self) -> Reverse<RefCell<T>>
Create an e-h-c reverse compatibility wrapper using a ref-cell for interior mutability (required for InputPin types)