pub struct PounderTimestampTimer { /* private fields */ }
Expand description

The timer used for managing ADC sampling.

Implementations§

source§

impl PounderTimestampTimer

source

pub fn new(timer: Timer<TIM8>) -> Self

Construct the sampling timer.

source

pub fn channels(&mut self) -> Channels

Get the timer capture/compare channels.

source

pub fn update_event(&mut self) -> UpdateEvent

Get the timer update event.

source

pub fn get_period(&self) -> u16

Get the period of the timer.

source

pub fn set_period_ticks(&mut self, period: u16)

Manually set the period of the timer.

source

pub fn set_external_clock(&mut self, prescaler: Prescaler)

Clock the timer from an external source.

§Note:
  • Currently, only an external source applied to ETR is supported.
§Args
  • prescaler - The prescaler to use for the external source.
source

pub fn start(&mut self)

Start the timer.

source

pub fn generate_trigger(&mut self, source: TriggerGenerator)

Configure the timer peripheral to generate a trigger based on the provided source.

source

pub fn set_trigger_source(&mut self, source: TriggerSource)

Select a trigger source for the timer peripheral.

source

pub fn set_slave_mode(&mut self, source: TriggerSource, mode: SlaveMode)

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for T
where T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for T
where T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

impl<T, U> Into<U> for T
where U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.