embassy-stm32

Crates

git

Versions

stm32h755zi-cm4

Flavors

Skip to main content

Hrtim

Struct Hrtim 

Source
pub struct Hrtim<'d, T: Instance> {
    pub common: Common,
    pub master: SubTimer<'d, T, Master>,
    pub tima: SubTimer<'d, T, TimA>,
    pub timb: SubTimer<'d, T, TimB>,
    pub timc: SubTimer<'d, T, TimC>,
    pub timd: SubTimer<'d, T, TimD>,
    pub time: SubTimer<'d, T, TimE>,
}
Expand description

Struct used to divide a high resolution timer into multiple timing units

Fields§

§common: Common

Common token

Needed when starting/stopping timers etc

§master: SubTimer<'d, T, Master>

Master timer

§tima: SubTimer<'d, T, TimA>

Timer A

§timb: SubTimer<'d, T, TimB>

Timer B

§timc: SubTimer<'d, T, TimC>

Timer C

§timd: SubTimer<'d, T, TimD>

Timer D

§time: SubTimer<'d, T, TimE>

Timer E

Implementations§

Source§

impl<'d, T: Instance> Hrtim<'d, T>

Source

pub fn new(tim: Peri<'d, T>) -> Self

Create a new HRTIM driver.

This splits the HRTIM into its constituent parts, which you can then use individually.

Auto Trait Implementations§

§

impl<'d, T> Forget for Hrtim<'d, T>

§

impl<'d, T> Freeze for Hrtim<'d, T>
where SubTimer<'d, T, Master>: Freeze, SubTimer<'d, T, TimA>: Freeze, SubTimer<'d, T, TimB>: Freeze, SubTimer<'d, T, TimC>: Freeze, SubTimer<'d, T, TimD>: Freeze, SubTimer<'d, T, TimE>: Freeze,

§

impl<'d, T> Move for Hrtim<'d, T>

§

impl<'d, T> RefUnwindSafe for Hrtim<'d, T>

§

impl<'d, T> Send for Hrtim<'d, T>
where SubTimer<'d, T, Master>: Send, SubTimer<'d, T, TimA>: Send, SubTimer<'d, T, TimB>: Send, SubTimer<'d, T, TimC>: Send, SubTimer<'d, T, TimD>: Send, SubTimer<'d, T, TimE>: Send,

§

impl<'d, T> Sync for Hrtim<'d, T>
where SubTimer<'d, T, Master>: Sync, SubTimer<'d, T, TimA>: Sync, SubTimer<'d, T, TimB>: Sync, SubTimer<'d, T, TimC>: Sync, SubTimer<'d, T, TimD>: Sync, SubTimer<'d, T, TimE>: Sync,

§

impl<'d, T> Unpin for Hrtim<'d, T>
where SubTimer<'d, T, Master>: Unpin, SubTimer<'d, T, TimA>: Unpin, SubTimer<'d, T, TimB>: Unpin, SubTimer<'d, T, TimC>: Unpin, SubTimer<'d, T, TimD>: Unpin, SubTimer<'d, T, TimE>: Unpin,

§

impl<'d, T> UnsafeUnpin for Hrtim<'d, T>

§

impl<'d, T> UnwindSafe for Hrtim<'d, T>

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>,

Source§

type Error = !

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

fn try_from(value: U) -> Result<T, !>

Performs the conversion.
Source§

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

Source§

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.