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..0x94 - 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..0x94 - 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