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/hmatrixhs.rs | 43 +++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 43 insertions(+) create mode 100644 src/hmatrixhs.rs (limited to 'src/hmatrixhs.rs') diff --git a/src/hmatrixhs.rs b/src/hmatrixhs.rs new file mode 100644 index 0000000..c8129ac --- /dev/null +++ b/src/hmatrixhs.rs @@ -0,0 +1,43 @@ +#[doc = r"Register block"] +#[repr(C)] +pub struct RegisterBlock { + #[doc = "0x00..0x40 - Master Configuration"] + pub mcfg: [crate::Reg; 16], + #[doc = "0x40..0x80 - Slave Configuration"] + pub scfg: [crate::Reg; 16], + #[doc = "0x80..0xa0 - PRS\\[%s\\]"] + pub prs: [PRS; 4], + _reserved3: [u8; 0x60], + #[doc = "0x100 - Master Remap Control"] + pub mrcr: crate::Reg, + _reserved4: [u8; 0x0c], + #[doc = "0x110..0x150 - Special Function"] + pub sfr: [crate::Reg; 16], +} +#[doc = r"Register block"] +#[repr(C)] +pub struct PRS { + #[doc = "0x00 - Priority A for Slave"] + pub pras: crate::Reg, + #[doc = "0x04 - Priority B for Slave"] + pub prbs: crate::Reg, +} +#[doc = r"Register block"] +#[doc = "PRS\\[%s\\]"] +pub mod prs; +#[doc = "MCFG register accessor: an alias for `Reg`"] +pub type MCFG = crate::Reg; +#[doc = "Master Configuration"] +pub mod mcfg; +#[doc = "SCFG register accessor: an alias for `Reg`"] +pub type SCFG = crate::Reg; +#[doc = "Slave Configuration"] +pub mod scfg; +#[doc = "MRCR register accessor: an alias for `Reg`"] +pub type MRCR = crate::Reg; +#[doc = "Master Remap Control"] +pub mod mrcr; +#[doc = "SFR register accessor: an alias for `Reg`"] +pub type SFR = crate::Reg; +#[doc = "Special Function"] +pub mod sfr; -- cgit v1.2.3-70-g09d2