atsamd51g/
wdt.rs

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