Struct RegisterBlock

Source
#[repr(C)]
pub struct RegisterBlock { /* private fields */ }
Expand description

Register block

Implementations§

Source§

impl RegisterBlock

Source

pub const fn bcr1(&self) -> &BCR1

0x00 - SRAM/NOR-Flash chip-select control register 1

Source

pub const fn btr(&self, n: usize) -> &BTR

0x04..0x14 - SRAM/NOR-Flash chip-select timing register %s

`n` is the index of register in the array. `n == 0` corresponds to `BTR1` register.
Source

pub fn btr_iter(&self) -> impl Iterator<Item = &BTR>

Iterator for array of: 0x04..0x14 - SRAM/NOR-Flash chip-select timing register %s

Source

pub const fn btr1(&self) -> &BTR

0x04 - SRAM/NOR-Flash chip-select timing register 1

Source

pub const fn btr2(&self) -> &BTR

0x0c - SRAM/NOR-Flash chip-select timing register 2

Source

pub const fn btr3(&self) -> &BTR

0x14 - SRAM/NOR-Flash chip-select timing register 3

Source

pub const fn btr4(&self) -> &BTR

0x1c - SRAM/NOR-Flash chip-select timing register 4

Source

pub const fn bcr(&self, n: usize) -> &BCR

0x08..0x14 - SRAM/NOR-Flash chip-select control register %s

`n` is the index of register in the array. `n == 0` corresponds to `BCR2` register.
Source

pub fn bcr_iter(&self) -> impl Iterator<Item = &BCR>

Iterator for array of: 0x08..0x14 - SRAM/NOR-Flash chip-select control register %s

Source

pub const fn bcr2(&self) -> &BCR

0x08 - SRAM/NOR-Flash chip-select control register 2

Source

pub const fn bcr3(&self) -> &BCR

0x10 - SRAM/NOR-Flash chip-select control register 3

Source

pub const fn bcr4(&self) -> &BCR

0x18 - SRAM/NOR-Flash chip-select control register 4

Source

pub const fn pcr(&self) -> &PCR

0x80 - PC Card/NAND Flash control register

Source

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

0x84 - FIFO status and interrupt register

Source

pub const fn pmem(&self) -> &PMEM

0x88 - Common memory space timing register

Source

pub const fn patt(&self) -> &PATT

0x8c - Attribute memory space timing register

Source

pub const fn eccr(&self) -> &ECCR

0x94 - ECC result register

Source

pub const fn bwtr(&self, n: usize) -> &BWTR

0x104..0x114 - SRAM/NOR-Flash write timing registers %s

`n` is the index of register in the array. `n == 0` corresponds to `BWTR1` register.
Source

pub fn bwtr_iter(&self) -> impl Iterator<Item = &BWTR>

Iterator for array of: 0x104..0x114 - SRAM/NOR-Flash write timing registers %s

Source

pub const fn bwtr1(&self) -> &BWTR

0x104 - SRAM/NOR-Flash write timing registers 1

Source

pub const fn bwtr2(&self) -> &BWTR

0x10c - SRAM/NOR-Flash write timing registers 2

Source

pub const fn bwtr3(&self) -> &BWTR

0x114 - SRAM/NOR-Flash write timing registers 3

Source

pub const fn bwtr4(&self) -> &BWTR

0x11c - SRAM/NOR-Flash write timing registers 4

Source

pub const fn sdcr1(&self) -> &SDCR1

0x140 - SDRAM Control Register 1

Source

pub const fn sdcr2(&self) -> &SDCR2

0x144 - SDRAM Control Register 2

Source

pub const fn sdtr(&self, n: usize) -> &SDTR

0x148..0x150 - SDRAM Timing register %s

`n` is the index of register in the array. `n == 0` corresponds to `SDTR1` register.
Source

pub fn sdtr_iter(&self) -> impl Iterator<Item = &SDTR>

Iterator for array of: 0x148..0x150 - SDRAM Timing register %s

Source

pub const fn sdtr1(&self) -> &SDTR

0x148 - SDRAM Timing register 1

Source

pub const fn sdtr2(&self) -> &SDTR

0x14c - SDRAM Timing register 2

Source

pub const fn sdcmr(&self) -> &SDCMR

0x150 - SDRAM Command Mode register

Source

pub const fn sdrtr(&self) -> &SDRTR

0x154 - SDRAM Refresh Timer register

Source

pub const fn sdsr(&self) -> &SDSR

0x158 - SDRAM Status register

Trait Implementations§

Source§

impl Debug for RegisterBlock

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more

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.