1#[doc = r"Register block"]
2#[repr(C)]
3pub struct RegisterBlock {
4 csic_ccu: CSIC_CCU,
5 _reserved1: [u8; 0x07f0],
6 csic_top: CSIC_TOP,
7 _reserved2: [u8; 0x06f8],
8 csic_parser0: CSIC_PARSER0,
9 _reserved3: [u8; 0x7ae4],
10 csic_dma: (),
11}
12impl RegisterBlock {
13 #[doc = "0x00..0x10 - CSIC_CCU"]
14 #[inline(always)]
15 pub const fn csic_ccu(&self) -> &CSIC_CCU {
16 &self.csic_ccu
17 }
18 #[doc = "0x800..0x908 - CSIC_TOP"]
19 #[inline(always)]
20 pub const fn csic_top(&self) -> &CSIC_TOP {
21 &self.csic_top
22 }
23 #[doc = "0x1000..0x151c - CSIC_PARSER0"]
24 #[inline(always)]
25 pub const fn csic_parser0(&self) -> &CSIC_PARSER0 {
26 &self.csic_parser0
27 }
28 #[doc = "0x9000..0x93f0 - CSIC_DMA"]
29 #[inline(always)]
30 pub const fn csic_dma(&self, n: usize) -> &CSIC_DMA {
31 #[allow(clippy::no_effect)]
32 [(); 2][n];
33 unsafe {
34 &*(self as *const Self)
35 .cast::<u8>()
36 .add(36864)
37 .add(512 * n)
38 .cast()
39 }
40 }
41}
42#[doc = "CSIC_CCU"]
43pub use self::csic_ccu::CSIC_CCU;
44#[doc = r"Cluster"]
45#[doc = "CSIC_CCU"]
46pub mod csic_ccu;
47#[doc = "CSIC_TOP"]
48pub use self::csic_top::CSIC_TOP;
49#[doc = r"Cluster"]
50#[doc = "CSIC_TOP"]
51pub mod csic_top;
52#[doc = "CSIC_PARSER0"]
53pub use self::csic_parser0::CSIC_PARSER0;
54#[doc = r"Cluster"]
55#[doc = "CSIC_PARSER0"]
56pub mod csic_parser0;
57#[doc = "CSIC_DMA"]
58pub use self::csic_dma::CSIC_DMA;
59#[doc = r"Cluster"]
60#[doc = "CSIC_DMA"]
61pub mod csic_dma;