1#[doc = r"Register block"]
2#[repr(C)]
3pub struct RegisterBlock {
4 msgbox: (),
5}
6impl RegisterBlock {
7 #[doc = "0x00..0x120 - Communicate with CPU\\[N\\]"]
8 #[inline(always)]
9 pub const fn msgbox(&self, n: usize) -> &MSGBOX {
10 #[allow(clippy::no_effect)]
11 [(); 2][n];
12 unsafe {
13 &*(self as *const Self)
14 .cast::<u8>()
15 .add(0)
16 .add(256 * n)
17 .cast()
18 }
19 }
20}
21#[doc = "Communicate with CPU\\[N\\]"]
22pub use self::msgbox::MSGBOX;
23#[doc = r"Cluster"]
24#[doc = "Communicate with CPU\\[N\\]"]
25pub mod msgbox;