Skip to main content

RegisterBlock

Struct RegisterBlock 

Source
pub struct RegisterBlock { /* private fields */ }
Expand description

Register block

Implementations§

Source§

impl RegisterBlock

Source

pub const fn cr(&self) -> &Cr

0x00 - Control Register

Source

pub const fn dr(&self) -> &Dr

0x04 - Data Register

Source

pub const fn dcr(&self) -> &Dcr

0x08 - Device Control Register

Source

pub const fn psclr(&self) -> &Psclr

0x0c - Prescaler Register

Source

pub const fn sr(&self) -> &Sr

0x10 - Status Register

Source

pub const fn scr(&self) -> &Scr

0x14 - Status Clear Register

Source

pub const fn cmdr1(&self) -> &Cmdr1

0x18 - Command Register

Source

pub const fn ar1(&self) -> &Ar1

0x1c - Address Register

Source

pub const fn abr1(&self) -> &Abr1

0x20 - Alternate Byte Register

Source

pub const fn dlr1(&self) -> &Dlr1

0x24 - Data Length Register

Source

pub const fn ccr1(&self) -> &Ccr1

0x28 - Communication Configuration Register

Source

pub const fn cmdr2(&self) -> &Cmdr2

0x2c - Command Register

Source

pub const fn ar2(&self) -> &Ar2

0x30 - Address Register

Source

pub const fn abr2(&self) -> &Abr2

0x34 - Alternate Byte Register

Source

pub const fn dlr2(&self) -> &Dlr2

0x38 - Data Length Register

Source

pub const fn ccr2(&self) -> &Ccr2

0x3c - Communication Configuration Register

Source

pub const fn hcmdr(&self) -> &Hcmdr

0x40 - AHB Command Register

Source

pub const fn hrabr(&self) -> &Hrabr

0x44 - AHB Read Alternate Byte Register

Source

pub const fn hrccr(&self) -> &Hrccr

0x48 - AHB Read Communication Configuration Register

Source

pub const fn hwabr(&self) -> &Hwabr

0x4c - AHB Write Alternate Byte Register

Source

pub const fn hwccr(&self) -> &Hwccr

0x50 - AHB Write Communication Configuration Register

Source

pub const fn fifocr(&self) -> &Fifocr

0x54 - FIFO Control Register

Source

pub const fn miscr(&self) -> &Miscr

0x58 - Miscelaneous Register

Source

pub const fn ctrsar(&self) -> &Ctrsar

0x5c -

Source

pub const fn ctrear(&self) -> &Ctrear

0x60 -

Source

pub const fn noncea(&self) -> &Noncea

0x64 -

Source

pub const fn nonceb(&self) -> &Nonceb

0x68 -

Source

pub const fn aasar(&self) -> &Aasar

0x6c -

Source

pub const fn aaear(&self) -> &Aaear

0x70 -

Source

pub const fn aaoar(&self) -> &Aaoar

0x74 -

Source

pub const fn cir(&self) -> &Cir

0x78 - Command Interval Register

Source

pub const fn smr(&self) -> &Smr

0x7c - Status Match Register

Source

pub const fn smkr(&self) -> &Smkr

0x80 - Status Mask Register

Source

pub const fn timr(&self) -> &Timr

0x84 -

Source

pub const fn wdtr(&self) -> &Wdtr

0x88 - WDT Register

Source

pub const fn prsar(&self) -> &Prsar

0x8c -

Source

pub const fn prear(&self) -> &Prear

0x90 -

Source

pub const fn calcr(&self) -> &Calcr

0x94 - Calibration Control Register

Source

pub const fn caldor(&self) -> &Caldor

0x98 -

Source

pub const fn apm32cr(&self) -> &Apm32cr

0x9c - APM32 Control Register

Source

pub const fn cr2(&self) -> &Cr2

0xa0 -

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.