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/dac.rs | 73 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 73 insertions(+) create mode 100644 src/dac.rs (limited to 'src/dac.rs') diff --git a/src/dac.rs b/src/dac.rs new file mode 100644 index 0000000..255af92 --- /dev/null +++ b/src/dac.rs @@ -0,0 +1,73 @@ +#[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, + _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, + #[doc = "0x07 - Status"] + pub status: crate::Reg, + #[doc = "0x08 - Data"] + pub data: crate::Reg, + _reserved8: [u8; 0x02], + #[doc = "0x0c - Data Buffer"] + pub databuf: crate::Reg, + _reserved9: [u8; 0x02], + #[doc = "0x10 - Synchronization Busy"] + pub syncbusy: crate::Reg, + #[doc = "0x14 - Debug Control"] + pub dbgctrl: 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 = "STATUS register accessor: an alias for `Reg`"] +pub type STATUS = crate::Reg; +#[doc = "Status"] +pub mod status; +#[doc = "DATA register accessor: an alias for `Reg`"] +pub type DATA = crate::Reg; +#[doc = "Data"] +pub mod data; +#[doc = "DATABUF register accessor: an alias for `Reg`"] +pub type DATABUF = crate::Reg; +#[doc = "Data Buffer"] +pub mod databuf; +#[doc = "SYNCBUSY register accessor: an alias for `Reg`"] +pub type SYNCBUSY = crate::Reg; +#[doc = "Synchronization Busy"] +pub mod syncbusy; +#[doc = "DBGCTRL register accessor: an alias for `Reg`"] +pub type DBGCTRL = crate::Reg; +#[doc = "Debug Control"] +pub mod dbgctrl; -- cgit v1.2.3-70-g09d2