stm32-metapac

Crates

git

Versions

stm32g474vb

Flavors

Struct stm32_metapac::hrtim::Hrtim

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

High Resolution Timer

Implementations§

§

impl Hrtim

pub const unsafe fn from_ptr(ptr: *mut ()) -> Self

pub const fn as_ptr(&self) -> *mut ()

pub const fn mcr(self) -> Reg<Mcr, RW>

Master Timer Control Register

pub const fn misr(self) -> Reg<Misr, R>

Master Timer Interrupt Status Register

pub const fn micr(self) -> Reg<Micr, W>

Master Timer Interrupt Clear Register

pub const fn mdier(self) -> Reg<Mdier, RW>

Master Timer DMA / Interrupt Enable Register

pub const fn mcntr(self) -> Reg<Mcntr, RW>

Master Timer Counter Register

pub const fn mper(self) -> Reg<Mper, RW>

Master Timer Period Register

pub const fn mrep(self) -> Reg<Mrep, RW>

Master Timer Repetition Register

pub const fn mcmp(self, n: usize) -> Reg<Mcmpx, RW>

Master Timer Compare X Register

pub const fn tim(self, n: usize) -> HrtimTimx

High Resolution Timer: Timing Unit

pub const fn cr1(self) -> Reg<HrtimCr1, RW>

High Resolution Timer: Control Register 1

pub const fn cr2(self) -> Reg<HrtimCr2, RW>

High Resolution Timer: Control Register 2

pub const fn isr(self) -> Reg<HrtimIsr, R>

High Resolution Timer: Interrupt Status Register

pub const fn icr(self) -> Reg<HrtimIcr, W>

High Resolution Timer: Interrupt Clear Register

pub const fn ier(self) -> Reg<HrtimIer, RW>

High Resolution Timer: Interrupt Enable Register

pub const fn oenr(self) -> Reg<HrtimOenr, RW>

High Resolution Timer: Output Enable Register

pub const fn odisr(self) -> Reg<HrtimOdisr, RW>

High Resolution Timer: Output Disable Register

pub const fn odsr(self) -> Reg<HrtimOdsr, RW>

High Resolution Timer: Output Disable Status Register

pub const fn bmcr(self) -> Reg<HrtimBmcr, RW>

High Resolution Timer: Burst Mode Control Register

pub const fn bmtrgr(self) -> Reg<HrtimBmtrgr, RW>

High Resolution Timer: Burst Mode Trigger Register

pub const fn bmcmpr(self) -> Reg<HrtimBmcmpr, RW>

High Resolution Timer: Burst Mode Compare Register

pub const fn bmper(self) -> Reg<HrtimBmper, RW>

High Resolution Timer: Burst Mode Period Register

pub const fn eecr1(self) -> Reg<HrtimEecr1, RW>

High Resolution Timer: External Event Control Register 1

pub const fn eecr2(self) -> Reg<HrtimEecr2, RW>

High Resolution Timer: External Event Control Register 2

pub const fn eecr3(self) -> Reg<HrtimEecr3, RW>

High Resolution Timer: External Event Control Register 3

pub const fn adc1r(self, n: usize) -> Reg<HrtimAdc1r, RW>

High Resolution Timer: ADC Trigger [1, 3] Register

pub const fn adc2r(self, n: usize) -> Reg<HrtimAdc2r, RW>

High Resolution Timer: ADC Trigger [2, 4] Register

pub const fn dllcr(self) -> Reg<HrtimDllcr, RW>

High Resolution Timer: DLL Control Register

pub const fn fltinr1(self) -> Reg<HrtimFltinr1, RW>

High Resolution Timer: Fault Input Register 1

pub const fn fltinr2(self) -> Reg<HrtimFltinr2, RW>

High Resolution Timer: Fault Input Register 2

pub const fn bdmupr(self) -> Reg<HrtimBdmupr, RW>

High Resolution Timer: Burst DMA Master timer update Register

pub const fn bdtupr(self, n: usize) -> Reg<HrtimBdtupr, RW>

High Resolution Timer: Burst DMA Timer X update Register

pub const fn bdmadr(self) -> Reg<HrtimBdmadr, W>

High Resolution Timer: Burst DMA Data Register

Trait Implementations§

§

impl Clone for Hrtim

§

fn clone(&self) -> Hrtim

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
§

impl PartialEq for Hrtim

§

fn eq(&self, other: &Hrtim) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
§

impl Copy for Hrtim

§

impl Eq for Hrtim

§

impl Send for Hrtim

§

impl StructuralPartialEq for Hrtim

§

impl Sync for Hrtim

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> CloneToUninit for T
where T: Clone,

source§

unsafe fn clone_to_uninit(&self, dst: *mut T)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dst. 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 = 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>,

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.