RegisterBlock

Struct RegisterBlock 

#[repr(C)]
pub struct RegisterBlock {
Show 23 fields verid: Verid, param: Param, mcr: Mcr, msr: Msr, mier: Mier, setten: Setten, clrten: Clrten, _reserved7: [u8; 4], tval0: Tval0, cval0: Cval0, tctrl0: Tctrl0, _reserved10: [u8; 4], tval1: Tval1, cval1: Cval1, tctrl1: Tctrl1, _reserved13: [u8; 4], tval2: Tval2, cval2: Cval2, tctrl2: Tctrl2, _reserved16: [u8; 4], tval3: Tval3, cval3: Cval3, tctrl3: Tctrl3,
}
Expand description

Register block

Fields§

§verid: Verid§param: Param§mcr: Mcr§msr: Msr§mier: Mier§setten: Setten§clrten: Clrten§_reserved7: [u8; 4]§tval0: Tval0§cval0: Cval0§tctrl0: Tctrl0§_reserved10: [u8; 4]§tval1: Tval1§cval1: Cval1§tctrl1: Tctrl1§_reserved13: [u8; 4]§tval2: Tval2§cval2: Cval2§tctrl2: Tctrl2§_reserved16: [u8; 4]§tval3: Tval3§cval3: Cval3§tctrl3: Tctrl3

Implementations§

§

impl RegisterBlock

pub const fn verid(&self) -> &Verid

0x00 - Version ID Register

pub const fn param(&self) -> &Param

0x04 - Parameter Register

pub const fn mcr(&self) -> &Mcr

0x08 - Module Control Register

pub const fn msr(&self) -> &Msr

0x0c - Module Status Register

pub const fn mier(&self) -> &Mier

0x10 - Module Interrupt Enable Register

pub const fn setten(&self) -> &Setten

0x14 - Set Timer Enable Register

pub const fn clrten(&self) -> &Clrten

0x18 - Clear Timer Enable Register

pub const fn tval0(&self) -> &Tval0

0x20 - Timer Value Register

pub const fn cval0(&self) -> &Cval0

0x24 - Current Timer Value

pub const fn tctrl0(&self) -> &Tctrl0

0x28 - Timer Control Register

pub const fn tval1(&self) -> &Tval1

0x30 - Timer Value Register

pub const fn cval1(&self) -> &Cval1

0x34 - Current Timer Value

pub const fn tctrl1(&self) -> &Tctrl1

0x38 - Timer Control Register

pub const fn tval2(&self) -> &Tval2

0x40 - Timer Value Register

pub const fn cval2(&self) -> &Cval2

0x44 - Current Timer Value

pub const fn tctrl2(&self) -> &Tctrl2

0x48 - Timer Control Register

pub const fn tval3(&self) -> &Tval3

0x50 - Timer Value Register

pub const fn cval3(&self) -> &Cval3

0x54 - Current Timer Value

pub const fn tctrl3(&self) -> &Tctrl3

0x58 - Timer Control Register

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

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.