#[repr(C)]
pub struct RegisterBlock {
Show 31 fields pub ier: IER, pub idr: IDR, pub imr: IMR, pub isr: ISR, pub icr: ICR, pub pclksr: PCLKSR, pub unlock: UNLOCK, pub cscr: CSCR, pub oscctrl32: OSCCTRL32, pub rc32kcr: RC32KCR, pub rc32ktune: RC32KTUNE, pub bod33ctrl: BOD33CTRL, pub bod33level: BOD33LEVEL, pub bod33sampling: BOD33SAMPLING, pub bod18ctrl: BOD18CTRL, pub bod18level: BOD18LEVEL, pub vregcr: VREGCR, pub vregncsr: VREGNCSR, pub vreglpcsr: VREGLPCSR, pub rc1mcr: RC1MCR, pub bgcr: BGCR, pub bgctrl: BGCTRL, pub bgsr: BGSR, pub br: [BR; 4], pub brifbversion: BRIFBVERSION, pub bgrefifbversion: BGREFIFBVERSION, pub vregifgversion: VREGIFGVERSION, pub bodifcversion: BODIFCVERSION, pub rc32kifbversion: RC32KIFBVERSION, pub osc32ifaversion: OSC32IFAVERSION, pub version: VERSION, /* private fields */
}
Expand description

Register block

Fields§

§ier: IER

0x00 - Interrupt Enable Register

§idr: IDR

0x04 - Interrupt Disable Register

§imr: IMR

0x08 - Interrupt Mask Register

§isr: ISR

0x0c - Interrupt Status Register

§icr: ICR

0x10 - Interrupt Clear Register

§pclksr: PCLKSR

0x14 - Power and Clocks Status Register

§unlock: UNLOCK

0x18 - Unlock Register

§cscr: CSCR

0x1c - Chip Specific Configuration Register

§oscctrl32: OSCCTRL32

0x20 - Oscillator 32 Control Register

§rc32kcr: RC32KCR

0x24 - 32 kHz RC Oscillator Control Register

§rc32ktune: RC32KTUNE

0x28 - 32kHz RC Oscillator Tuning Register

§bod33ctrl: BOD33CTRL

0x2c - BOD33 Control Register

§bod33level: BOD33LEVEL

0x30 - BOD33 Level Register

§bod33sampling: BOD33SAMPLING

0x34 - BOD33 Sampling Control Register

§bod18ctrl: BOD18CTRL

0x38 - BOD18 Control Register

§bod18level: BOD18LEVEL

0x3c - BOD18 Level Register

§vregcr: VREGCR

0x44 - Voltage Regulator Configuration Register

§vregncsr: VREGNCSR

0x4c - Normal Mode Control and Status Register

§vreglpcsr: VREGLPCSR

0x50 - LP Mode Control and Status Register

§rc1mcr: RC1MCR

0x58 - 1MHz RC Clock Configuration Register

§bgcr: BGCR

0x5c - Bandgap Calibration Register

§bgctrl: BGCTRL

0x60 - Bandgap Control Register

§bgsr: BGSR

0x64 - Bandgap Status Register

§br: [BR; 4]

0x78..0x88 - Backup Register

§brifbversion: BRIFBVERSION

0x3e4 - Backup Register Interface Version Register

§bgrefifbversion: BGREFIFBVERSION

0x3e8 - BGREFIFB Version Register

§vregifgversion: VREGIFGVERSION

0x3ec - VREGIFA Version Register

§bodifcversion: BODIFCVERSION

0x3f0 - BODIFC Version Register

§rc32kifbversion: RC32KIFBVERSION

0x3f4 - 32 kHz RC Oscillator Version Register

§osc32ifaversion: OSC32IFAVERSION

0x3f8 - 32 KHz Oscillator Version Register

§version: VERSION

0x3fc - BSCIF 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.