#[repr(C)]
pub struct RegisterBlock {
Show 20 fields pub cr: CR, pub cv: CV, pub sr: SR, pub scr: SCR, pub ier: IER, pub idr: IDR, pub imr: IMR, pub wer: WER, pub ar0: AR0, pub ar1: AR1, pub pir0: PIR0, pub pir1: PIR1, pub clock: CLOCK, pub dtr: DTR, pub eve: EVE, pub evd: EVD, pub evm: EVM, pub calv: CALV, pub parameter: PARAMETER, pub version: VERSION, /* private fields */
}
Expand description

Register block

Fields§

§cr: CR

0x00 - Control Register

§cv: CV

0x04 - Counter Value

§sr: SR

0x08 - Status Register

§scr: SCR

0x0c - Status Clear Register

§ier: IER

0x10 - Interrupt Enable Register

§idr: IDR

0x14 - Interrupt Disable Register

§imr: IMR

0x18 - Interrupt Mask Register

§wer: WER

0x1c - Wake Enable Register

§ar0: AR0

0x20 - Alarm Register 0

§ar1: AR1

0x24 - Alarm Register 1

§pir0: PIR0

0x30 - Periodic Interval Register 0

§pir1: PIR1

0x34 - Periodic Interval Register 1

§clock: CLOCK

0x40 - Clock Control Register

§dtr: DTR

0x44 - Digital Tuner Register

§eve: EVE

0x48 - Event Enable Register

§evd: EVD

0x4c - Event Disable Register

§evm: EVM

0x50 - Event Mask Register

§calv: CALV

0x54 - Calendar Value

§parameter: PARAMETER

0xf0 - Parameter Register

§version: VERSION

0xfc - Version Register

Auto Trait Implementations§

Blanket Implementations§

source§

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

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

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

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for Twhere 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 Twhere 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 Twhere 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 Twhere 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.