1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
///Register block
#[repr(C)]
pub struct RegisterBlock {
///0x00 - desc ISR
pub isr: ISR,
///0x04 - desc IFCR
pub ifcr: IFCR,
///0x08..0x94 - Channel cluster: CCR?, CNDTR?, CPAR?, and CMAR? registers
pub ch: [CH; 7],
}
impl RegisterBlock {
///0x08..0x1c - Channel cluster: CCR?, CNDTR?, CPAR?, and CMAR? registers
#[inline(always)]
pub fn ch1(&self) -> &CH {
&self.ch[0]
}
///0x1c..0x30 - Channel cluster: CCR?, CNDTR?, CPAR?, and CMAR? registers
#[inline(always)]
pub fn ch2(&self) -> &CH {
&self.ch[1]
}
///0x30..0x44 - Channel cluster: CCR?, CNDTR?, CPAR?, and CMAR? registers
#[inline(always)]
pub fn ch3(&self) -> &CH {
&self.ch[2]
}
///0x44..0x58 - Channel cluster: CCR?, CNDTR?, CPAR?, and CMAR? registers
#[inline(always)]
pub fn ch4(&self) -> &CH {
&self.ch[3]
}
///0x58..0x6c - Channel cluster: CCR?, CNDTR?, CPAR?, and CMAR? registers
#[inline(always)]
pub fn ch5(&self) -> &CH {
&self.ch[4]
}
///0x6c..0x80 - Channel cluster: CCR?, CNDTR?, CPAR?, and CMAR? registers
#[inline(always)]
pub fn ch6(&self) -> &CH {
&self.ch[5]
}
///0x80..0x94 - Channel cluster: CCR?, CNDTR?, CPAR?, and CMAR? registers
#[inline(always)]
pub fn ch7(&self) -> &CH {
&self.ch[6]
}
}
///ISR (r) register accessor: an alias for `Reg<ISR_SPEC>`
pub type ISR = crate::Reg<isr::ISR_SPEC>;
///desc ISR
pub mod isr;
///IFCR (w) register accessor: an alias for `Reg<IFCR_SPEC>`
pub type IFCR = crate::Reg<ifcr::IFCR_SPEC>;
///desc IFCR
pub mod ifcr;
///Channel cluster: CCR?, CNDTR?, CPAR?, and CMAR? registers
pub use self::ch::CH;
///Cluster
///Channel cluster: CCR?, CNDTR?, CPAR?, and CMAR? registers
pub mod ch;