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/pac.rs | 85 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 85 insertions(+) create mode 100644 src/pac.rs (limited to 'src/pac.rs') diff --git a/src/pac.rs b/src/pac.rs new file mode 100644 index 0000000..6510f73 --- /dev/null +++ b/src/pac.rs @@ -0,0 +1,85 @@ +#[doc = r"Register block"] +#[repr(C)] +pub struct RegisterBlock { + #[doc = "0x00 - Write control"] + pub wrctrl: crate::Reg, + #[doc = "0x04 - Event control"] + pub evctrl: crate::Reg, + _reserved2: [u8; 0x03], + #[doc = "0x08 - Interrupt enable clear"] + pub intenclr: crate::Reg, + #[doc = "0x09 - Interrupt enable set"] + pub intenset: crate::Reg, + _reserved4: [u8; 0x06], + #[doc = "0x10 - Bridge interrupt flag status"] + pub intflagahb: crate::Reg, + #[doc = "0x14 - Peripheral interrupt flag status - Bridge A"] + pub intflaga: crate::Reg, + #[doc = "0x18 - Peripheral interrupt flag status - Bridge B"] + pub intflagb: crate::Reg, + #[doc = "0x1c - Peripheral interrupt flag status - Bridge C"] + pub intflagc: crate::Reg, + #[doc = "0x20 - Peripheral interrupt flag status - Bridge D"] + pub intflagd: crate::Reg, + _reserved9: [u8; 0x10], + #[doc = "0x34 - Peripheral write protection status - Bridge A"] + pub statusa: crate::Reg, + #[doc = "0x38 - Peripheral write protection status - Bridge B"] + pub statusb: crate::Reg, + #[doc = "0x3c - Peripheral write protection status - Bridge C"] + pub statusc: crate::Reg, + #[doc = "0x40 - Peripheral write protection status - Bridge D"] + pub statusd: crate::Reg, +} +#[doc = "WRCTRL register accessor: an alias for `Reg`"] +pub type WRCTRL = crate::Reg; +#[doc = "Write control"] +pub mod wrctrl; +#[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 = "INTFLAGAHB register accessor: an alias for `Reg`"] +pub type INTFLAGAHB = crate::Reg; +#[doc = "Bridge interrupt flag status"] +pub mod intflagahb; +#[doc = "INTFLAGA register accessor: an alias for `Reg`"] +pub type INTFLAGA = crate::Reg; +#[doc = "Peripheral interrupt flag status - Bridge A"] +pub mod intflaga; +#[doc = "INTFLAGB register accessor: an alias for `Reg`"] +pub type INTFLAGB = crate::Reg; +#[doc = "Peripheral interrupt flag status - Bridge B"] +pub mod intflagb; +#[doc = "INTFLAGC register accessor: an alias for `Reg`"] +pub type INTFLAGC = crate::Reg; +#[doc = "Peripheral interrupt flag status - Bridge C"] +pub mod intflagc; +#[doc = "INTFLAGD register accessor: an alias for `Reg`"] +pub type INTFLAGD = crate::Reg; +#[doc = "Peripheral interrupt flag status - Bridge D"] +pub mod intflagd; +#[doc = "STATUSA register accessor: an alias for `Reg`"] +pub type STATUSA = crate::Reg; +#[doc = "Peripheral write protection status - Bridge A"] +pub mod statusa; +#[doc = "STATUSB register accessor: an alias for `Reg`"] +pub type STATUSB = crate::Reg; +#[doc = "Peripheral write protection status - Bridge B"] +pub mod statusb; +#[doc = "STATUSC register accessor: an alias for `Reg`"] +pub type STATUSC = crate::Reg; +#[doc = "Peripheral write protection status - Bridge C"] +pub mod statusc; +#[doc = "STATUSD register accessor: an alias for `Reg`"] +pub type STATUSD = crate::Reg; +#[doc = "Peripheral write protection status - Bridge D"] +pub mod statusd; -- cgit v1.2.3-70-g09d2