#[repr(C)]pub struct RegisterBlock { /* private fields */ }
Expand description
Register block
Implementations§
Source§impl RegisterBlock
impl RegisterBlock
Sourcepub const fn btr(&self, n: usize) -> &BTR
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.
Sourcepub fn btr_iter(&self) -> impl Iterator<Item = &BTR>
pub fn btr_iter(&self) -> impl Iterator<Item = &BTR>
Iterator for array of: 0x04..0x14 - SRAM/NOR-Flash chip-select timing register %s
Sourcepub const fn bcr(&self, n: usize) -> &BCR
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.
Sourcepub fn bcr_iter(&self) -> impl Iterator<Item = &BCR>
pub fn bcr_iter(&self) -> impl Iterator<Item = &BCR>
Iterator for array of: 0x08..0x14 - SRAM/NOR-Flash chip-select control register %s
Sourcepub const fn bwtr(&self, n: usize) -> &BWTR
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.
Sourcepub fn bwtr_iter(&self) -> impl Iterator<Item = &BWTR>
pub fn bwtr_iter(&self) -> impl Iterator<Item = &BWTR>
Iterator for array of: 0x104..0x114 - SRAM/NOR-Flash write timing registers %s
Sourcepub const fn sdtr(&self, n: usize) -> &SDTR
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.
Trait Implementations§
Auto Trait Implementations§
impl !Freeze for RegisterBlock
impl !RefUnwindSafe for RegisterBlock
impl Send for RegisterBlock
impl !Sync for RegisterBlock
impl Unpin for RegisterBlock
impl UnwindSafe for RegisterBlock
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more