Skip to main content

mcxa_pac/
wwdt0.rs

1#[repr(C)]
2#[cfg_attr(feature = "debug", derive(Debug))]
3#[doc = "Register block"]
4pub struct RegisterBlock {
5    mod_: Mod,
6    tc: Tc,
7    feed: Feed,
8    tv: Tv,
9    _reserved4: [u8; 0x04],
10    warnint: Warnint,
11    window: Window,
12}
13impl RegisterBlock {
14    #[doc = "0x00 - Mode"]
15    #[inline(always)]
16    pub const fn mod_(&self) -> &Mod {
17        &self.mod_
18    }
19    #[doc = "0x04 - Timer Constant"]
20    #[inline(always)]
21    pub const fn tc(&self) -> &Tc {
22        &self.tc
23    }
24    #[doc = "0x08 - Feed Sequence"]
25    #[inline(always)]
26    pub const fn feed(&self) -> &Feed {
27        &self.feed
28    }
29    #[doc = "0x0c - Timer Value"]
30    #[inline(always)]
31    pub const fn tv(&self) -> &Tv {
32        &self.tv
33    }
34    #[doc = "0x14 - Warning Interrupt Compare Value"]
35    #[inline(always)]
36    pub const fn warnint(&self) -> &Warnint {
37        &self.warnint
38    }
39    #[doc = "0x18 - Window Compare Value"]
40    #[inline(always)]
41    pub const fn window(&self) -> &Window {
42        &self.window
43    }
44}
45#[doc = "MOD (rw) register accessor: Mode\n\nYou can [`read`](crate::Reg::read) this register and get [`mod_::R`]. You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`mod_::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@mod_`] module"]
46#[doc(alias = "MOD")]
47pub type Mod = crate::Reg<mod_::ModSpec>;
48#[doc = "Mode"]
49pub mod mod_;
50#[doc = "TC (rw) register accessor: Timer Constant\n\nYou can [`read`](crate::Reg::read) this register and get [`tc::R`]. You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`tc::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@tc`] module"]
51#[doc(alias = "TC")]
52pub type Tc = crate::Reg<tc::TcSpec>;
53#[doc = "Timer Constant"]
54pub mod tc;
55#[doc = "FEED (w) register accessor: Feed Sequence\n\nYou can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`feed::W`]. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@feed`] module"]
56#[doc(alias = "FEED")]
57pub type Feed = crate::Reg<feed::FeedSpec>;
58#[doc = "Feed Sequence"]
59pub mod feed;
60#[doc = "TV (r) register accessor: Timer Value\n\nYou can [`read`](crate::Reg::read) this register and get [`tv::R`]. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@tv`] module"]
61#[doc(alias = "TV")]
62pub type Tv = crate::Reg<tv::TvSpec>;
63#[doc = "Timer Value"]
64pub mod tv;
65#[doc = "WARNINT (rw) register accessor: Warning Interrupt Compare Value\n\nYou can [`read`](crate::Reg::read) this register and get [`warnint::R`]. You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`warnint::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@warnint`] module"]
66#[doc(alias = "WARNINT")]
67pub type Warnint = crate::Reg<warnint::WarnintSpec>;
68#[doc = "Warning Interrupt Compare Value"]
69pub mod warnint;
70#[doc = "WINDOW (rw) register accessor: Window Compare Value\n\nYou can [`read`](crate::Reg::read) this register and get [`window::R`]. You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`window::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@window`] module"]
71#[doc(alias = "WINDOW")]
72pub type Window = crate::Reg<window::WindowSpec>;
73#[doc = "Window Compare Value"]
74pub mod window;