diff options
| author | Arne Dußin | 2021-11-06 11:50:33 +0100 |
|---|---|---|
| committer | Arne Dußin | 2021-11-06 11:50:33 +0100 |
| commit | 0666a6ba1dbd66cf8b93c113e362ccbcd99152a0 (patch) | |
| tree | a184284dbd2316f4624f092e4e7521ea8c90855b /src/dac.rs | |
| download | samc21-0666a6ba1dbd66cf8b93c113e362ccbcd99152a0.tar.gz samc21-0666a6ba1dbd66cf8b93c113e362ccbcd99152a0.zip | |
Initial commit
Diffstat (limited to 'src/dac.rs')
| -rw-r--r-- | src/dac.rs | 73 |
1 files changed, 73 insertions, 0 deletions
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<ctrla::CTRLA_SPEC>, + #[doc = "0x01 - Control B"] + pub ctrlb: crate::Reg<ctrlb::CTRLB_SPEC>, + #[doc = "0x02 - Event Control"] + pub evctrl: crate::Reg<evctrl::EVCTRL_SPEC>, + _reserved3: [u8; 0x01], + #[doc = "0x04 - Interrupt Enable Clear"] + pub intenclr: crate::Reg<intenclr::INTENCLR_SPEC>, + #[doc = "0x05 - Interrupt Enable Set"] + pub intenset: crate::Reg<intenset::INTENSET_SPEC>, + #[doc = "0x06 - Interrupt Flag Status and Clear"] + pub intflag: crate::Reg<intflag::INTFLAG_SPEC>, + #[doc = "0x07 - Status"] + pub status: crate::Reg<status::STATUS_SPEC>, + #[doc = "0x08 - Data"] + pub data: crate::Reg<data::DATA_SPEC>, + _reserved8: [u8; 0x02], + #[doc = "0x0c - Data Buffer"] + pub databuf: crate::Reg<databuf::DATABUF_SPEC>, + _reserved9: [u8; 0x02], + #[doc = "0x10 - Synchronization Busy"] + pub syncbusy: crate::Reg<syncbusy::SYNCBUSY_SPEC>, + #[doc = "0x14 - Debug Control"] + pub dbgctrl: crate::Reg<dbgctrl::DBGCTRL_SPEC>, +} +#[doc = "CTRLA register accessor: an alias for `Reg<CTRLA_SPEC>`"] +pub type CTRLA = crate::Reg<ctrla::CTRLA_SPEC>; +#[doc = "Control A"] +pub mod ctrla; +#[doc = "CTRLB register accessor: an alias for `Reg<CTRLB_SPEC>`"] +pub type CTRLB = crate::Reg<ctrlb::CTRLB_SPEC>; +#[doc = "Control B"] +pub mod ctrlb; +#[doc = "EVCTRL register accessor: an alias for `Reg<EVCTRL_SPEC>`"] +pub type EVCTRL = crate::Reg<evctrl::EVCTRL_SPEC>; +#[doc = "Event Control"] +pub mod evctrl; +#[doc = "INTENCLR register accessor: an alias for `Reg<INTENCLR_SPEC>`"] +pub type INTENCLR = crate::Reg<intenclr::INTENCLR_SPEC>; +#[doc = "Interrupt Enable Clear"] +pub mod intenclr; +#[doc = "INTENSET register accessor: an alias for `Reg<INTENSET_SPEC>`"] +pub type INTENSET = crate::Reg<intenset::INTENSET_SPEC>; +#[doc = "Interrupt Enable Set"] +pub mod intenset; +#[doc = "INTFLAG register accessor: an alias for `Reg<INTFLAG_SPEC>`"] +pub type INTFLAG = crate::Reg<intflag::INTFLAG_SPEC>; +#[doc = "Interrupt Flag Status and Clear"] +pub mod intflag; +#[doc = "STATUS register accessor: an alias for `Reg<STATUS_SPEC>`"] +pub type STATUS = crate::Reg<status::STATUS_SPEC>; +#[doc = "Status"] +pub mod status; +#[doc = "DATA register accessor: an alias for `Reg<DATA_SPEC>`"] +pub type DATA = crate::Reg<data::DATA_SPEC>; +#[doc = "Data"] +pub mod data; +#[doc = "DATABUF register accessor: an alias for `Reg<DATABUF_SPEC>`"] +pub type DATABUF = crate::Reg<databuf::DATABUF_SPEC>; +#[doc = "Data Buffer"] +pub mod databuf; +#[doc = "SYNCBUSY register accessor: an alias for `Reg<SYNCBUSY_SPEC>`"] +pub type SYNCBUSY = crate::Reg<syncbusy::SYNCBUSY_SPEC>; +#[doc = "Synchronization Busy"] +pub mod syncbusy; +#[doc = "DBGCTRL register accessor: an alias for `Reg<DBGCTRL_SPEC>`"] +pub type DBGCTRL = crate::Reg<dbgctrl::DBGCTRL_SPEC>; +#[doc = "Debug Control"] +pub mod dbgctrl; |
