1#[repr(C)]
2#[cfg_attr(feature = "debug", derive(Debug))]
3#[doc = "Register block"]
4pub struct RegisterBlock {
5 _reserved_0_ctrl: [u8; 0x04],
6 ctrlstat: Ctrlstat,
7 min: Min,
8 max: Max,
9}
10impl RegisterBlock {
11 #[doc = "0x00 - Control (in Write mode)"]
12 #[inline(always)]
13 pub const fn ctrl_w(&self) -> &CtrlW {
14 unsafe { &*core::ptr::from_ref(self).cast::<u8>().cast() }
15 }
16 #[doc = "0x00 - Control (in Read mode)"]
17 #[inline(always)]
18 pub const fn ctrl_r(&self) -> &CtrlR {
19 unsafe { &*core::ptr::from_ref(self).cast::<u8>().cast() }
20 }
21 #[doc = "0x04 - Control Status"]
22 #[inline(always)]
23 pub const fn ctrlstat(&self) -> &Ctrlstat {
24 &self.ctrlstat
25 }
26 #[doc = "0x08 - Minimum"]
27 #[inline(always)]
28 pub const fn min(&self) -> &Min {
29 &self.min
30 }
31 #[doc = "0x0c - Maximum"]
32 #[inline(always)]
33 pub const fn max(&self) -> &Max {
34 &self.max
35 }
36}
37#[doc = "CTRL_R (r) register accessor: Control (in Read mode)\n\nYou can [`read`](crate::Reg::read) this register and get [`ctrl_r::R`]. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@ctrl_r`] module"]
38#[doc(alias = "CTRL_R")]
39pub type CtrlR = crate::Reg<ctrl_r::CtrlRSpec>;
40#[doc = "Control (in Read mode)"]
41pub mod ctrl_r;
42#[doc = "CTRL_W (w) register accessor: Control (in Write mode)\n\nYou can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`ctrl_w::W`]. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@ctrl_w`] module"]
43#[doc(alias = "CTRL_W")]
44pub type CtrlW = crate::Reg<ctrl_w::CtrlWSpec>;
45#[doc = "Control (in Write mode)"]
46pub mod ctrl_w;
47#[doc = "CTRLSTAT (rw) register accessor: Control Status\n\nYou can [`read`](crate::Reg::read) this register and get [`ctrlstat::R`]. You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`ctrlstat::W`]. You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@ctrlstat`] module"]
48#[doc(alias = "CTRLSTAT")]
49pub type Ctrlstat = crate::Reg<ctrlstat::CtrlstatSpec>;
50#[doc = "Control Status"]
51pub mod ctrlstat;
52#[doc = "MIN (rw) register accessor: Minimum\n\nYou can [`read`](crate::Reg::read) this register and get [`min::R`]. You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`min::W`]. You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@min`] module"]
53#[doc(alias = "MIN")]
54pub type Min = crate::Reg<min::MinSpec>;
55#[doc = "Minimum"]
56pub mod min;
57#[doc = "MAX (rw) register accessor: Maximum\n\nYou can [`read`](crate::Reg::read) this register and get [`max::R`]. You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`max::W`]. You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@max`] module"]
58#[doc(alias = "MAX")]
59pub type Max = crate::Reg<max::MaxSpec>;
60#[doc = "Maximum"]
61pub mod max;