1#[doc = r"Register block"]
2#[repr(C)]
3pub struct RegisterBlock {
4 #[doc = "0x00 - CRC mode register."]
5 pub mode: MODE,
6 #[doc = "0x04 - CRC seed register."]
7 pub seed: SEED,
8 _reserved_2_sum: [u8; 0x04],
9}
10impl RegisterBlock {
11 #[doc = "0x08 - CRC data register."]
12 #[inline(always)]
13 pub fn wr_data(&self) -> &WR_DATA {
14 unsafe { &*(((self as *const Self) as *const u8).add(8usize) as *const WR_DATA) }
15 }
16 #[doc = "0x08 - CRC checksum register."]
17 #[inline(always)]
18 pub fn sum(&self) -> &SUM {
19 unsafe { &*(((self as *const Self) as *const u8).add(8usize) as *const SUM) }
20 }
21}
22#[doc = "MODE (rw) register accessor: an alias for `Reg<MODE_SPEC>`"]
23pub type MODE = crate::Reg<mode::MODE_SPEC>;
24#[doc = "CRC mode register."]
25pub mod mode;
26#[doc = "SEED (rw) register accessor: an alias for `Reg<SEED_SPEC>`"]
27pub type SEED = crate::Reg<seed::SEED_SPEC>;
28#[doc = "CRC seed register."]
29pub mod seed;
30#[doc = "SUM (r) register accessor: an alias for `Reg<SUM_SPEC>`"]
31pub type SUM = crate::Reg<sum::SUM_SPEC>;
32#[doc = "CRC checksum register."]
33pub mod sum;
34#[doc = "WR_DATA (w) register accessor: an alias for `Reg<WR_DATA_SPEC>`"]
35pub type WR_DATA = crate::Reg<wr_data::WR_DATA_SPEC>;
36#[doc = "CRC data register."]
37pub mod wr_data;