#[repr(C)]
pub struct RegisterBlock {
Show 21 fields pub setup0: SETUP0, pub pulse0: PULSE0, pub cycle0: CYCLE0, pub mode0: MODE0, pub setup1: SETUP1, pub pulse1: PULSE1, pub cycle1: CYCLE1, pub mode1: MODE1, pub setup2: SETUP2, pub pulse2: PULSE2, pub cycle2: CYCLE2, pub mode2: MODE2, pub setup3: SETUP3, pub pulse3: PULSE3, pub cycle3: CYCLE3, pub mode3: MODE3, pub ocms: OCMS, pub key1: KEY1, pub key2: KEY2, pub wpmr: WPMR, pub wpsr: WPSR, /* private fields */
}
Expand description

Register block

Fields§

§setup0: SETUP0

0x00 - SMC Setup Register (CS_number = 0)

§pulse0: PULSE0

0x04 - SMC Pulse Register (CS_number = 0)

§cycle0: CYCLE0

0x08 - SMC Cycle Register (CS_number = 0)

§mode0: MODE0

0x0c - SMC Mode Register (CS_number = 0)

§setup1: SETUP1

0x10 - SMC Setup Register (CS_number = 1)

§pulse1: PULSE1

0x14 - SMC Pulse Register (CS_number = 1)

§cycle1: CYCLE1

0x18 - SMC Cycle Register (CS_number = 1)

§mode1: MODE1

0x1c - SMC Mode Register (CS_number = 1)

§setup2: SETUP2

0x20 - SMC Setup Register (CS_number = 2)

§pulse2: PULSE2

0x24 - SMC Pulse Register (CS_number = 2)

§cycle2: CYCLE2

0x28 - SMC Cycle Register (CS_number = 2)

§mode2: MODE2

0x2c - SMC Mode Register (CS_number = 2)

§setup3: SETUP3

0x30 - SMC Setup Register (CS_number = 3)

§pulse3: PULSE3

0x34 - SMC Pulse Register (CS_number = 3)

§cycle3: CYCLE3

0x38 - SMC Cycle Register (CS_number = 3)

§mode3: MODE3

0x3c - SMC Mode Register (CS_number = 3)

§ocms: OCMS

0x80 - SMC OCMS MODE Register

§key1: KEY1

0x84 - SMC OCMS KEY1 Register

§key2: KEY2

0x88 - SMC OCMS KEY2 Register

§wpmr: WPMR

0xe4 - SMC Write Protect Mode Register

§wpsr: WPSR

0xe8 - SMC Write Protect Status 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.