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/ac.rs | 83 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 83 insertions(+) create mode 100644 src/ac.rs (limited to 'src/ac.rs') diff --git a/src/ac.rs b/src/ac.rs new file mode 100644 index 0000000..b666204 --- /dev/null +++ b/src/ac.rs @@ -0,0 +1,83 @@ +#[doc = r"Register block"] +#[repr(C)] +pub struct RegisterBlock { + #[doc = "0x00 - Control A"] + pub ctrla: crate::Reg, + #[doc = "0x01 - Control B"] + pub ctrlb: crate::Reg, + #[doc = "0x02 - Event Control"] + pub evctrl: crate::Reg, + #[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, + #[doc = "0x07 - Status A"] + pub statusa: crate::Reg, + #[doc = "0x08 - Status B"] + pub statusb: crate::Reg, + #[doc = "0x09 - Debug Control"] + pub dbgctrl: crate::Reg, + #[doc = "0x0a - Window Control"] + pub winctrl: crate::Reg, + _reserved10: [u8; 0x01], + #[doc = "0x0c - Scaler n"] + pub scaler: [crate::Reg; 4], + #[doc = "0x10..0x20 - Comparator Control n"] + pub compctrl: [crate::Reg; 4], + #[doc = "0x20 - Synchronization Busy"] + pub syncbusy: crate::Reg, +} +#[doc = "CTRLA register accessor: an alias for `Reg`"] +pub type CTRLA = crate::Reg; +#[doc = "Control A"] +pub mod ctrla; +#[doc = "CTRLB register accessor: an alias for `Reg`"] +pub type CTRLB = crate::Reg; +#[doc = "Control B"] +pub mod ctrlb; +#[doc = "EVCTRL register accessor: an alias for `Reg`"] +pub type EVCTRL = crate::Reg; +#[doc = "Event Control"] +pub mod evctrl; +#[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 = "STATUSA register accessor: an alias for `Reg`"] +pub type STATUSA = crate::Reg; +#[doc = "Status A"] +pub mod statusa; +#[doc = "STATUSB register accessor: an alias for `Reg`"] +pub type STATUSB = crate::Reg; +#[doc = "Status B"] +pub mod statusb; +#[doc = "DBGCTRL register accessor: an alias for `Reg`"] +pub type DBGCTRL = crate::Reg; +#[doc = "Debug Control"] +pub mod dbgctrl; +#[doc = "WINCTRL register accessor: an alias for `Reg`"] +pub type WINCTRL = crate::Reg; +#[doc = "Window Control"] +pub mod winctrl; +#[doc = "SCALER register accessor: an alias for `Reg`"] +pub type SCALER = crate::Reg; +#[doc = "Scaler n"] +pub mod scaler; +#[doc = "COMPCTRL register accessor: an alias for `Reg`"] +pub type COMPCTRL = crate::Reg; +#[doc = "Comparator Control n"] +pub mod compctrl; +#[doc = "SYNCBUSY register accessor: an alias for `Reg`"] +pub type SYNCBUSY = crate::Reg; +#[doc = "Synchronization Busy"] +pub mod syncbusy; -- cgit v1.2.3-70-g09d2