Struct RegisterBlock

Source
#[repr(C)]
pub struct RegisterBlock {
Show 23 fields pub cr1: CR1, pub cr2: CR2, pub cr3: CR3, pub cr4: CR4, pub sr1: SR1, pub sr2: SR2, pub scr: SCR, pub cr5: CR5, pub pucra: PUCRA, pub pdcra: PDCRA, pub pucrb: PUCRB, pub pdcrb: PDCRB, pub pucrc: PUCRC, pub pdcrc: PDCRC, pub pucrd: PUCRD, pub pdcrd: PDCRD, pub pucre: PUCRE, pub pdcre: PDCRE, pub pucrh: PUCRH, pub pdcrh: PDCRH, pub c2cr1: C2CR1, pub c2cr3: C2CR3, pub extscr: EXTSCR, /* private fields */
}
Expand description

Register block

Fields§

§cr1: CR1

0x00 - Power control register 1

§cr2: CR2

0x04 - Power control register 2

§cr3: CR3

0x08 - Power control register 3

§cr4: CR4

0x0c - Power control register 4

§sr1: SR1

0x10 - Power status register 1

§sr2: SR2

0x14 - Power status register 2

§scr: SCR

0x18 - Power status clear register

§cr5: CR5

0x1c - Power control register 5

§pucra: PUCRA

0x20 - Power Port A pull-up control register

§pdcra: PDCRA

0x24 - Power Port A pull-down control register

§pucrb: PUCRB

0x28 - Power Port B pull-up control register

§pdcrb: PDCRB

0x2c - Power Port B pull-down control register

§pucrc: PUCRC

0x30 - Power Port C pull-up control register

§pdcrc: PDCRC

0x34 - Power Port C pull-down control register

§pucrd: PUCRD

0x38 - Power Port D pull-up control register

§pdcrd: PDCRD

0x3c - Power Port D pull-down control register

§pucre: PUCRE

0x40 - Power Port E pull-up control register

§pdcre: PDCRE

0x44 - Power Port E pull-down control register

§pucrh: PUCRH

0x58 - Power Port H pull-up control register

§pdcrh: PDCRH

0x5c - Power Port H pull-down control register

§c2cr1: C2CR1

0x80 - CPU2 Power control register 1

§c2cr3: C2CR3

0x84 - CPU2 Power control register 3

§extscr: EXTSCR

0x88 - Power status clear 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.