From 0666a6ba1dbd66cf8b93c113e362ccbcd99152a0 Mon Sep 17 00:00:00 2001 From: Arne Dußin Date: Sat, 6 Nov 2021 11:50:33 +0100 Subject: Initial commit --- src/wdt.rs | 54 ++++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 54 insertions(+) create mode 100644 src/wdt.rs (limited to 'src/wdt.rs') diff --git a/src/wdt.rs b/src/wdt.rs new file mode 100644 index 0000000..22b5c2b --- /dev/null +++ b/src/wdt.rs @@ -0,0 +1,54 @@ +#[doc = r"Register block"] +#[repr(C)] +pub struct RegisterBlock { + #[doc = "0x00 - Control"] + pub ctrla: crate::Reg, + #[doc = "0x01 - Configuration"] + pub config: crate::Reg, + #[doc = "0x02 - Early Warning Interrupt Control"] + pub ewctrl: crate::Reg, + _reserved3: [u8; 0x01], + #[doc = "0x04 - Interrupt Enable Clear"] + pub intenclr: crate::Reg, + #[doc = "0x05 - Interrupt Enable Set"] + pub intenset: crate::Reg, + #[doc = "0x06 - Interrupt Flag Status and Clear"] + pub intflag: crate::Reg, + _reserved6: [u8; 0x01], + #[doc = "0x08 - Synchronization Busy"] + pub syncbusy: crate::Reg, + #[doc = "0x0c - Clear"] + pub clear: crate::Reg, +} +#[doc = "CTRLA register accessor: an alias for `Reg`"] +pub type CTRLA = crate::Reg; +#[doc = "Control"] +pub mod ctrla; +#[doc = "CONFIG register accessor: an alias for `Reg`"] +pub type CONFIG = crate::Reg; +#[doc = "Configuration"] +pub mod config; +#[doc = "EWCTRL register accessor: an alias for `Reg`"] +pub type EWCTRL = crate::Reg; +#[doc = "Early Warning Interrupt Control"] +pub mod ewctrl; +#[doc = "INTENCLR register accessor: an alias for `Reg`"] +pub type INTENCLR = crate::Reg; +#[doc = "Interrupt Enable Clear"] +pub mod intenclr; +#[doc = "INTENSET register accessor: an alias for `Reg`"] +pub type INTENSET = crate::Reg; +#[doc = "Interrupt Enable Set"] +pub mod intenset; +#[doc = "INTFLAG register accessor: an alias for `Reg`"] +pub type INTFLAG = crate::Reg; +#[doc = "Interrupt Flag Status and Clear"] +pub mod intflag; +#[doc = "SYNCBUSY register accessor: an alias for `Reg`"] +pub type SYNCBUSY = crate::Reg; +#[doc = "Synchronization Busy"] +pub mod syncbusy; +#[doc = "CLEAR register accessor: an alias for `Reg`"] +pub type CLEAR = crate::Reg; +#[doc = "Clear"] +pub mod clear; -- cgit v1.2.3-70-g09d2