#[repr(C)]pub struct RegisterBlock { /* private fields */ }
Expand description
Register block
Implementations§
Source§impl RegisterBlock
impl RegisterBlock
Sourcepub const fn ch(&self, n: usize) -> &CH
pub const fn ch(&self, n: usize) -> &CH
0x08..0xa8 - Channel cluster: CCR?, CNDTR?, CPAR?, and CMAR? registers
`n` is the index of cluster in the array. `n == 0` corresponds to `CH1` cluster.
Sourcepub fn ch_iter(&self) -> impl Iterator<Item = &CH>
pub fn ch_iter(&self) -> impl Iterator<Item = &CH>
Iterator for array of: 0x08..0xa8 - Channel cluster: CCR?, CNDTR?, CPAR?, and CMAR? registers
Sourcepub const fn ch1(&self) -> &CH
pub const fn ch1(&self) -> &CH
0x08..0x1c - Channel cluster: CCR?, CNDTR?, CPAR?, and CMAR? registers
Sourcepub const fn ch2(&self) -> &CH
pub const fn ch2(&self) -> &CH
0x1c..0x30 - Channel cluster: CCR?, CNDTR?, CPAR?, and CMAR? registers
Sourcepub const fn ch3(&self) -> &CH
pub const fn ch3(&self) -> &CH
0x30..0x44 - Channel cluster: CCR?, CNDTR?, CPAR?, and CMAR? registers
Sourcepub const fn ch4(&self) -> &CH
pub const fn ch4(&self) -> &CH
0x44..0x58 - Channel cluster: CCR?, CNDTR?, CPAR?, and CMAR? registers
Sourcepub const fn ch5(&self) -> &CH
pub const fn ch5(&self) -> &CH
0x58..0x6c - Channel cluster: CCR?, CNDTR?, CPAR?, and CMAR? registers
Sourcepub const fn ch6(&self) -> &CH
pub const fn ch6(&self) -> &CH
0x6c..0x80 - Channel cluster: CCR?, CNDTR?, CPAR?, and CMAR? registers
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