atsamd21j/
wdt.rs

1#[repr(C)]
2#[doc = "Register block"]
3pub struct RegisterBlock {
4    ctrl: Ctrl,
5    config: Config,
6    ewctrl: Ewctrl,
7    _reserved3: [u8; 0x01],
8    intenclr: Intenclr,
9    intenset: Intenset,
10    intflag: Intflag,
11    status: Status,
12    clear: Clear,
13}
14impl RegisterBlock {
15    #[doc = "0x00 - Control"]
16    #[inline(always)]
17    pub const fn ctrl(&self) -> &Ctrl {
18        &self.ctrl
19    }
20    #[doc = "0x01 - Configuration"]
21    #[inline(always)]
22    pub const fn config(&self) -> &Config {
23        &self.config
24    }
25    #[doc = "0x02 - Early Warning Interrupt Control"]
26    #[inline(always)]
27    pub const fn ewctrl(&self) -> &Ewctrl {
28        &self.ewctrl
29    }
30    #[doc = "0x04 - Interrupt Enable Clear"]
31    #[inline(always)]
32    pub const fn intenclr(&self) -> &Intenclr {
33        &self.intenclr
34    }
35    #[doc = "0x05 - Interrupt Enable Set"]
36    #[inline(always)]
37    pub const fn intenset(&self) -> &Intenset {
38        &self.intenset
39    }
40    #[doc = "0x06 - Interrupt Flag Status and Clear"]
41    #[inline(always)]
42    pub const fn intflag(&self) -> &Intflag {
43        &self.intflag
44    }
45    #[doc = "0x07 - Status"]
46    #[inline(always)]
47    pub const fn status(&self) -> &Status {
48        &self.status
49    }
50    #[doc = "0x08 - Clear"]
51    #[inline(always)]
52    pub const fn clear(&self) -> &Clear {
53        &self.clear
54    }
55}
56#[doc = "CTRL (rw) register accessor: Control\n\nYou can [`read`](crate::Reg::read) this register and get [`ctrl::R`]. You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`ctrl::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@ctrl`]
57module"]
58#[doc(alias = "CTRL")]
59pub type Ctrl = crate::Reg<ctrl::CtrlSpec>;
60#[doc = "Control"]
61pub mod ctrl;
62#[doc = "CONFIG (rw) register accessor: Configuration\n\nYou can [`read`](crate::Reg::read) this register and get [`config::R`]. You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`config::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@config`]
63module"]
64#[doc(alias = "CONFIG")]
65pub type Config = crate::Reg<config::ConfigSpec>;
66#[doc = "Configuration"]
67pub mod config;
68#[doc = "EWCTRL (rw) register accessor: Early Warning Interrupt Control\n\nYou can [`read`](crate::Reg::read) this register and get [`ewctrl::R`]. You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`ewctrl::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@ewctrl`]
69module"]
70#[doc(alias = "EWCTRL")]
71pub type Ewctrl = crate::Reg<ewctrl::EwctrlSpec>;
72#[doc = "Early Warning Interrupt Control"]
73pub mod ewctrl;
74#[doc = "INTENCLR (rw) register accessor: Interrupt Enable Clear\n\nYou can [`read`](crate::Reg::read) this register and get [`intenclr::R`]. You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`intenclr::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@intenclr`]
75module"]
76#[doc(alias = "INTENCLR")]
77pub type Intenclr = crate::Reg<intenclr::IntenclrSpec>;
78#[doc = "Interrupt Enable Clear"]
79pub mod intenclr;
80#[doc = "INTENSET (rw) register accessor: Interrupt Enable Set\n\nYou can [`read`](crate::Reg::read) this register and get [`intenset::R`]. You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`intenset::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@intenset`]
81module"]
82#[doc(alias = "INTENSET")]
83pub type Intenset = crate::Reg<intenset::IntensetSpec>;
84#[doc = "Interrupt Enable Set"]
85pub mod intenset;
86#[doc = "INTFLAG (rw) register accessor: Interrupt Flag Status and Clear\n\nYou can [`read`](crate::Reg::read) this register and get [`intflag::R`]. You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`intflag::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@intflag`]
87module"]
88#[doc(alias = "INTFLAG")]
89pub type Intflag = crate::Reg<intflag::IntflagSpec>;
90#[doc = "Interrupt Flag Status and Clear"]
91pub mod intflag;
92#[doc = "STATUS (r) register accessor: Status\n\nYou can [`read`](crate::Reg::read) this register and get [`status::R`]. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@status`]
93module"]
94#[doc(alias = "STATUS")]
95pub type Status = crate::Reg<status::StatusSpec>;
96#[doc = "Status"]
97pub mod status;
98#[doc = "CLEAR (w) register accessor: Clear\n\nYou can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`clear::W`]. See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [`mod@clear`]
99module"]
100#[doc(alias = "CLEAR")]
101pub type Clear = crate::Reg<clear::ClearSpec>;
102#[doc = "Clear"]
103pub mod clear;