summaryrefslogtreecommitdiff
path: root/src/evsys.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/evsys.rs')
-rw-r--r--src/evsys.rs54
1 files changed, 54 insertions, 0 deletions
diff --git a/src/evsys.rs b/src/evsys.rs
new file mode 100644
index 0000000..664de5f
--- /dev/null
+++ b/src/evsys.rs
@@ -0,0 +1,54 @@
+#[doc = r"Register block"]
+#[repr(C)]
+pub struct RegisterBlock {
+ #[doc = "0x00 - Control"]
+ pub ctrla: crate::Reg<ctrla::CTRLA_SPEC>,
+ _reserved1: [u8; 0x0b],
+ #[doc = "0x0c - Channel Status"]
+ pub chstatus: crate::Reg<chstatus::CHSTATUS_SPEC>,
+ #[doc = "0x10 - Interrupt Enable Clear"]
+ pub intenclr: crate::Reg<intenclr::INTENCLR_SPEC>,
+ #[doc = "0x14 - Interrupt Enable Set"]
+ pub intenset: crate::Reg<intenset::INTENSET_SPEC>,
+ #[doc = "0x18 - Interrupt Flag Status and Clear"]
+ pub intflag: crate::Reg<intflag::INTFLAG_SPEC>,
+ #[doc = "0x1c - Software Event"]
+ pub swevt: crate::Reg<swevt::SWEVT_SPEC>,
+ #[doc = "0x20..0x50 - Channel n"]
+ pub channel: [crate::Reg<channel::CHANNEL_SPEC>; 12],
+ _reserved7: [u8; 0x30],
+ #[doc = "0x80..0x148 - User Multiplexer n"]
+ pub user: [crate::Reg<user::USER_SPEC>; 50],
+}
+#[doc = "CTRLA register accessor: an alias for `Reg<CTRLA_SPEC>`"]
+pub type CTRLA = crate::Reg<ctrla::CTRLA_SPEC>;
+#[doc = "Control"]
+pub mod ctrla;
+#[doc = "CHSTATUS register accessor: an alias for `Reg<CHSTATUS_SPEC>`"]
+pub type CHSTATUS = crate::Reg<chstatus::CHSTATUS_SPEC>;
+#[doc = "Channel Status"]
+pub mod chstatus;
+#[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 = "SWEVT register accessor: an alias for `Reg<SWEVT_SPEC>`"]
+pub type SWEVT = crate::Reg<swevt::SWEVT_SPEC>;
+#[doc = "Software Event"]
+pub mod swevt;
+#[doc = "CHANNEL register accessor: an alias for `Reg<CHANNEL_SPEC>`"]
+pub type CHANNEL = crate::Reg<channel::CHANNEL_SPEC>;
+#[doc = "Channel n"]
+pub mod channel;
+#[doc = "USER register accessor: an alias for `Reg<USER_SPEC>`"]
+pub type USER = crate::Reg<user::USER_SPEC>;
+#[doc = "User Multiplexer n"]
+pub mod user;