1#[repr(C)]
2#[doc = "Register block"]
3pub struct RegisterBlock {
4 _reserved_0_mode0: [u8; 0xa0],
5}
6impl RegisterBlock {
7 #[doc = "0x00..0xa0 - Clock/Calendar with Alarm"]
8 #[inline(always)]
9 pub const fn mode2(&self) -> &Mode2 {
10 unsafe { &*(self as *const Self).cast::<u8>().add(0).cast() }
11 }
12 #[doc = "0x00..0xa0 - 16-bit Counter with Two 16-bit Compares"]
13 #[inline(always)]
14 pub const fn mode1(&self) -> &Mode1 {
15 unsafe { &*(self as *const Self).cast::<u8>().add(0).cast() }
16 }
17 #[doc = "0x00..0xa0 - 32-bit Counter with Single 32-bit Compare"]
18 #[inline(always)]
19 pub const fn mode0(&self) -> &Mode0 {
20 unsafe { &*(self as *const Self).cast::<u8>().add(0).cast() }
21 }
22}
23#[doc = "32-bit Counter with Single 32-bit Compare"]
24pub use self::mode0::Mode0;
25#[doc = r"Cluster"]
26#[doc = "32-bit Counter with Single 32-bit Compare"]
27pub mod mode0;
28#[doc = "16-bit Counter with Two 16-bit Compares"]
29pub use self::mode1::Mode1;
30#[doc = r"Cluster"]
31#[doc = "16-bit Counter with Two 16-bit Compares"]
32pub mod mode1;
33#[doc = "Clock/Calendar with Alarm"]
34pub use self::mode2::Mode2;
35#[doc = r"Cluster"]
36#[doc = "Clock/Calendar with Alarm"]
37pub mod mode2;