Skip to main content

HS_TIMER

Struct HS_TIMER 

Source
pub struct HS_TIMER { /* private fields */ }
Expand description

High Speed Timer

Implementations§

Source§

impl HS_TIMER

Source

pub const PTR: *const RegisterBlock

Pointer to the register block

Source

pub const fn ptr() -> *const RegisterBlock

Return the pointer to the register block

Source

pub unsafe fn steal() -> Self

Steal an instance of this peripheral

§Safety

Ensure that the new instance of the peripheral cannot be used in a way that may race with any existing instances, for example by only accessing read-only or write-only registers, or by consuming the original peripheral and using critical sections to coordinate access between multiple new instances.

Additionally, other software such as HALs may rely on only one peripheral instance existing to ensure memory safety; ensure no stolen instances are passed to such software.

Methods from Deref<Target = RegisterBlock>§

Source

pub fn hs_tmr_irq_en(&self) -> &HS_TMR_IRQ_EN

0x00 - HS Timer IRQ Enable Register

Source

pub fn hs_tmr_irq_stas(&self) -> &HS_TMR_IRQ_STAS

0x04 - HS Timer Status Register

Source

pub fn hs_tmr_ctrl(&self, n: usize) -> &HS_TMR_CTRL

0x20..0x28 - HS Timer Control Register

Source

pub fn hs_tmr0_ctrl(&self) -> &HS_TMR_CTRL

0x20 - HS Timer Control Register

Source

pub fn hs_tmr1_ctrl(&self) -> &HS_TMR_CTRL

0x40 - HS Timer Control Register

Source

pub fn hs_tmr_intv_lo(&self, n: usize) -> &HS_TMR_INTV_LO

0x24..0x2c - HS Timer Interval Value Low Register

Source

pub fn hs_tmr0_intv_lo(&self) -> &HS_TMR_INTV_LO

0x24 - HS Timer Interval Value Low Register

Source

pub fn hs_tmr1_intv_lo(&self) -> &HS_TMR_INTV_LO

0x44 - HS Timer Interval Value Low Register

Source

pub fn hs_tmr_intv_hi(&self, n: usize) -> &HS_TMR_INTV_HI

0x28..0x30 - HS Timer Interval Value High Register

Source

pub fn hs_tmr0_intv_hi(&self) -> &HS_TMR_INTV_HI

0x28 - HS Timer Interval Value High Register

Source

pub fn hs_tmr1_intv_hi(&self) -> &HS_TMR_INTV_HI

0x48 - HS Timer Interval Value High Register

Source

pub fn hs_tmr_curnt_lo(&self, n: usize) -> &HS_TMR_CURNT_LO

0x2c..0x34 - HS Timer Current Value Low Register

Source

pub fn hs_tmr0_curnt_lo(&self) -> &HS_TMR_CURNT_LO

0x2c - HS Timer Current Value Low Register

Source

pub fn hs_tmr1_curnt_lo(&self) -> &HS_TMR_CURNT_LO

0x4c - HS Timer Current Value Low Register

Source

pub fn hs_tmr_curnt_hi(&self, n: usize) -> &HS_TMR_CURNT_HI

0x30..0x38 - HS Timer Current Value High Register

Source

pub fn hs_tmr0_curnt_hi(&self) -> &HS_TMR_CURNT_HI

0x30 - HS Timer Current Value High Register

Source

pub fn hs_tmr1_curnt_hi(&self) -> &HS_TMR_CURNT_HI

0x50 - HS Timer Current Value High Register

Trait Implementations§

Source§

impl Debug for HS_TIMER

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Deref for HS_TIMER

Source§

type Target = RegisterBlock

The resulting type after dereferencing.
Source§

fn deref(&self) -> &Self::Target

Dereferences the value.
Source§

impl Send for HS_TIMER

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<P, T> Receiver for P
where P: Deref<Target = T> + ?Sized, T: ?Sized,

Source§

type Target = T

🔬This is a nightly-only experimental API. (arbitrary_self_types)
The target type on which the method may be called.
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.