summaryrefslogtreecommitdiff
path: root/src/evsys
diff options
context:
space:
mode:
authorArne Dußin2021-11-06 11:50:33 +0100
committerArne Dußin2021-11-06 11:50:33 +0100
commit0666a6ba1dbd66cf8b93c113e362ccbcd99152a0 (patch)
treea184284dbd2316f4624f092e4e7521ea8c90855b /src/evsys
downloadsamc21-0666a6ba1dbd66cf8b93c113e362ccbcd99152a0.tar.gz
samc21-0666a6ba1dbd66cf8b93c113e362ccbcd99152a0.zip
Initial commit
Diffstat (limited to 'src/evsys')
-rw-r--r--src/evsys/channel.rs404
-rw-r--r--src/evsys/chstatus.rs489
-rw-r--r--src/evsys/ctrla.rs112
-rw-r--r--src/evsys/intenclr.rs1170
-rw-r--r--src/evsys/intenset.rs1170
-rw-r--r--src/evsys/intflag.rs1170
-rw-r--r--src/evsys/swevt.rs369
-rw-r--r--src/evsys/user.rs103
8 files changed, 4987 insertions, 0 deletions
diff --git a/src/evsys/channel.rs b/src/evsys/channel.rs
new file mode 100644
index 0000000..3486802
--- /dev/null
+++ b/src/evsys/channel.rs
@@ -0,0 +1,404 @@
+#[doc = "Register `CHANNEL[%s]` reader"]
+pub struct R(crate::R<CHANNEL_SPEC>);
+impl core::ops::Deref for R {
+ type Target = crate::R<CHANNEL_SPEC>;
+ #[inline(always)]
+ fn deref(&self) -> &Self::Target {
+ &self.0
+ }
+}
+impl From<crate::R<CHANNEL_SPEC>> for R {
+ #[inline(always)]
+ fn from(reader: crate::R<CHANNEL_SPEC>) -> Self {
+ R(reader)
+ }
+}
+#[doc = "Register `CHANNEL[%s]` writer"]
+pub struct W(crate::W<CHANNEL_SPEC>);
+impl core::ops::Deref for W {
+ type Target = crate::W<CHANNEL_SPEC>;
+ #[inline(always)]
+ fn deref(&self) -> &Self::Target {
+ &self.0
+ }
+}
+impl core::ops::DerefMut for W {
+ #[inline(always)]
+ fn deref_mut(&mut self) -> &mut Self::Target {
+ &mut self.0
+ }
+}
+impl From<crate::W<CHANNEL_SPEC>> for W {
+ #[inline(always)]
+ fn from(writer: crate::W<CHANNEL_SPEC>) -> Self {
+ W(writer)
+ }
+}
+#[doc = "Field `EVGEN` reader - Event Generator Selection"]
+pub struct EVGEN_R(crate::FieldReader<u8, u8>);
+impl EVGEN_R {
+ pub(crate) fn new(bits: u8) -> Self {
+ EVGEN_R(crate::FieldReader::new(bits))
+ }
+}
+impl core::ops::Deref for EVGEN_R {
+ type Target = crate::FieldReader<u8, u8>;
+ #[inline(always)]
+ fn deref(&self) -> &Self::Target {
+ &self.0
+ }
+}
+#[doc = "Field `EVGEN` writer - Event Generator Selection"]
+pub struct EVGEN_W<'a> {
+ w: &'a mut W,
+}
+impl<'a> EVGEN_W<'a> {
+ #[doc = r"Writes raw bits to the field"]
+ #[inline(always)]
+ pub unsafe fn bits(self, value: u8) -> &'a mut W {
+ self.w.bits = (self.w.bits & !0x7f) | (value as u32 & 0x7f);
+ self.w
+ }
+}
+#[doc = "Path Selection\n\nValue on reset: 0"]
+#[derive(Clone, Copy, Debug, PartialEq)]
+#[repr(u8)]
+pub enum PATH_A {
+ #[doc = "0: Synchronous path"]
+ SYNCHRONOUS = 0,
+ #[doc = "1: Resynchronized path"]
+ RESYNCHRONIZED = 1,
+ #[doc = "2: Asynchronous path"]
+ ASYNCHRONOUS = 2,
+}
+impl From<PATH_A> for u8 {
+ #[inline(always)]
+ fn from(variant: PATH_A) -> Self {
+ variant as _
+ }
+}
+#[doc = "Field `PATH` reader - Path Selection"]
+pub struct PATH_R(crate::FieldReader<u8, PATH_A>);
+impl PATH_R {
+ pub(crate) fn new(bits: u8) -> Self {
+ PATH_R(crate::FieldReader::new(bits))
+ }
+ #[doc = r"Get enumerated values variant"]
+ #[inline(always)]
+ pub fn variant(&self) -> Option<PATH_A> {
+ match self.bits {
+ 0 => Some(PATH_A::SYNCHRONOUS),
+ 1 => Some(PATH_A::RESYNCHRONIZED),
+ 2 => Some(PATH_A::ASYNCHRONOUS),
+ _ => None,
+ }
+ }
+ #[doc = "Checks if the value of the field is `SYNCHRONOUS`"]
+ #[inline(always)]
+ pub fn is_synchronous(&self) -> bool {
+ **self == PATH_A::SYNCHRONOUS
+ }
+ #[doc = "Checks if the value of the field is `RESYNCHRONIZED`"]
+ #[inline(always)]
+ pub fn is_resynchronized(&self) -> bool {
+ **self == PATH_A::RESYNCHRONIZED
+ }
+ #[doc = "Checks if the value of the field is `ASYNCHRONOUS`"]
+ #[inline(always)]
+ pub fn is_asynchronous(&self) -> bool {
+ **self == PATH_A::ASYNCHRONOUS
+ }
+}
+impl core::ops::Deref for PATH_R {
+ type Target = crate::FieldReader<u8, PATH_A>;
+ #[inline(always)]
+ fn deref(&self) -> &Self::Target {
+ &self.0
+ }
+}
+#[doc = "Field `PATH` writer - Path Selection"]
+pub struct PATH_W<'a> {
+ w: &'a mut W,
+}
+impl<'a> PATH_W<'a> {
+ #[doc = r"Writes `variant` to the field"]
+ #[inline(always)]
+ pub fn variant(self, variant: PATH_A) -> &'a mut W {
+ unsafe { self.bits(variant.into()) }
+ }
+ #[doc = "Synchronous path"]
+ #[inline(always)]
+ pub fn synchronous(self) -> &'a mut W {
+ self.variant(PATH_A::SYNCHRONOUS)
+ }
+ #[doc = "Resynchronized path"]
+ #[inline(always)]
+ pub fn resynchronized(self) -> &'a mut W {
+ self.variant(PATH_A::RESYNCHRONIZED)
+ }
+ #[doc = "Asynchronous path"]
+ #[inline(always)]
+ pub fn asynchronous(self) -> &'a mut W {
+ self.variant(PATH_A::ASYNCHRONOUS)
+ }
+ #[doc = r"Writes raw bits to the field"]
+ #[inline(always)]
+ pub unsafe fn bits(self, value: u8) -> &'a mut W {
+ self.w.bits = (self.w.bits & !(0x03 << 8)) | ((value as u32 & 0x03) << 8);
+ self.w
+ }
+}
+#[doc = "Edge Detection Selection\n\nValue on reset: 0"]
+#[derive(Clone, Copy, Debug, PartialEq)]
+#[repr(u8)]
+pub enum EDGSEL_A {
+ #[doc = "0: No event output when using the resynchronized or synchronous path"]
+ NO_EVT_OUTPUT = 0,
+ #[doc = "1: Event detection only on the rising edge of the signal from the event generator when using the resynchronized or synchronous path"]
+ RISING_EDGE = 1,
+ #[doc = "2: Event detection only on the falling edge of the signal from the event generator when using the resynchronized or synchronous path"]
+ FALLING_EDGE = 2,
+ #[doc = "3: Event detection on rising and falling edges of the signal from the event generator when using the resynchronized or synchronous path"]
+ BOTH_EDGES = 3,
+}
+impl From<EDGSEL_A> for u8 {
+ #[inline(always)]
+ fn from(variant: EDGSEL_A) -> Self {
+ variant as _
+ }
+}
+#[doc = "Field `EDGSEL` reader - Edge Detection Selection"]
+pub struct EDGSEL_R(crate::FieldReader<u8, EDGSEL_A>);
+impl EDGSEL_R {
+ pub(crate) fn new(bits: u8) -> Self {
+ EDGSEL_R(crate::FieldReader::new(bits))
+ }
+ #[doc = r"Get enumerated values variant"]
+ #[inline(always)]
+ pub fn variant(&self) -> EDGSEL_A {
+ match self.bits {
+ 0 => EDGSEL_A::NO_EVT_OUTPUT,
+ 1 => EDGSEL_A::RISING_EDGE,
+ 2 => EDGSEL_A::FALLING_EDGE,
+ 3 => EDGSEL_A::BOTH_EDGES,
+ _ => unreachable!(),
+ }
+ }
+ #[doc = "Checks if the value of the field is `NO_EVT_OUTPUT`"]
+ #[inline(always)]
+ pub fn is_no_evt_output(&self) -> bool {
+ **self == EDGSEL_A::NO_EVT_OUTPUT
+ }
+ #[doc = "Checks if the value of the field is `RISING_EDGE`"]
+ #[inline(always)]
+ pub fn is_rising_edge(&self) -> bool {
+ **self == EDGSEL_A::RISING_EDGE
+ }
+ #[doc = "Checks if the value of the field is `FALLING_EDGE`"]
+ #[inline(always)]
+ pub fn is_falling_edge(&self) -> bool {
+ **self == EDGSEL_A::FALLING_EDGE
+ }
+ #[doc = "Checks if the value of the field is `BOTH_EDGES`"]
+ #[inline(always)]
+ pub fn is_both_edges(&self) -> bool {
+ **self == EDGSEL_A::BOTH_EDGES
+ }
+}
+impl core::ops::Deref for EDGSEL_R {
+ type Target = crate::FieldReader<u8, EDGSEL_A>;
+ #[inline(always)]
+ fn deref(&self) -> &Self::Target {
+ &self.0
+ }
+}
+#[doc = "Field `EDGSEL` writer - Edge Detection Selection"]
+pub struct EDGSEL_W<'a> {
+ w: &'a mut W,
+}
+impl<'a> EDGSEL_W<'a> {
+ #[doc = r"Writes `variant` to the field"]
+ #[inline(always)]
+ pub fn variant(self, variant: EDGSEL_A) -> &'a mut W {
+ self.bits(variant.into())
+ }
+ #[doc = "No event output when using the resynchronized or synchronous path"]
+ #[inline(always)]
+ pub fn no_evt_output(self) -> &'a mut W {
+ self.variant(EDGSEL_A::NO_EVT_OUTPUT)
+ }
+ #[doc = "Event detection only on the rising edge of the signal from the event generator when using the resynchronized or synchronous path"]
+ #[inline(always)]
+ pub fn rising_edge(self) -> &'a mut W {
+ self.variant(EDGSEL_A::RISING_EDGE)
+ }
+ #[doc = "Event detection only on the falling edge of the signal from the event generator when using the resynchronized or synchronous path"]
+ #[inline(always)]
+ pub fn falling_edge(self) -> &'a mut W {
+ self.variant(EDGSEL_A::FALLING_EDGE)
+ }
+ #[doc = "Event detection on rising and falling edges of the signal from the event generator when using the resynchronized or synchronous path"]
+ #[inline(always)]
+ pub fn both_edges(self) -> &'a mut W {
+ self.variant(EDGSEL_A::BOTH_EDGES)
+ }
+ #[doc = r"Writes raw bits to the field"]
+ #[inline(always)]
+ pub fn bits(self, value: u8) -> &'a mut W {
+ self.w.bits = (self.w.bits & !(0x03 << 10)) | ((value as u32 & 0x03) << 10);
+ self.w
+ }
+}
+#[doc = "Field `RUNSTDBY` reader - Run in standby"]
+pub struct RUNSTDBY_R(crate::FieldReader<bool, bool>);
+impl RUNSTDBY_R {
+ pub(crate) fn new(bits: bool) -> Self {
+ RUNSTDBY_R(crate::FieldReader::new(bits))
+ }
+}
+impl core::ops::Deref for RUNSTDBY_R {
+ type Target = crate::FieldReader<bool, bool>;
+ #[inline(always)]
+ fn deref(&self) -> &Self::Target {
+ &self.0
+ }
+}
+#[doc = "Field `RUNSTDBY` writer - Run in standby"]
+pub struct RUNSTDBY_W<'a> {
+ w: &'a mut W,
+}
+impl<'a> RUNSTDBY_W<'a> {
+ #[doc = r"Sets the field bit"]
+ #[inline(always)]
+ pub fn set_bit(self) -> &'a mut W {
+ self.bit(true)
+ }
+ #[doc = r"Clears the field bit"]
+ #[inline(always)]
+ pub fn clear_bit(self) -> &'a mut W {
+ self.bit(false)
+ }
+ #[doc = r"Writes raw bits to the field"]
+ #[inline(always)]
+ pub fn bit(self, value: bool) -> &'a mut W {
+ self.w.bits = (self.w.bits & !(0x01 << 14)) | ((value as u32 & 0x01) << 14);
+ self.w
+ }
+}
+#[doc = "Field `ONDEMAND` reader - Generic Clock On Demand"]
+pub struct ONDEMAND_R(crate::FieldReader<bool, bool>);
+impl ONDEMAND_R {
+ pub(crate) fn new(bits: bool) -> Self {
+ ONDEMAND_R(crate::FieldReader::new(bits))
+ }
+}
+impl core::ops::Deref for ONDEMAND_R {
+ type Target = crate::FieldReader<bool, bool>;
+ #[inline(always)]
+ fn deref(&self) -> &Self::Target {
+ &self.0
+ }
+}
+#[doc = "Field `ONDEMAND` writer - Generic Clock On Demand"]
+pub struct ONDEMAND_W<'a> {
+ w: &'a mut W,
+}
+impl<'a> ONDEMAND_W<'a> {
+ #[doc = r"Sets the field bit"]
+ #[inline(always)]
+ pub fn set_bit(self) -> &'a mut W {
+ self.bit(true)
+ }
+ #[doc = r"Clears the field bit"]
+ #[inline(always)]
+ pub fn clear_bit(self) -> &'a mut W {
+ self.bit(false)
+ }
+ #[doc = r"Writes raw bits to the field"]
+ #[inline(always)]
+ pub fn bit(self, value: bool) -> &'a mut W {
+ self.w.bits = (self.w.bits & !(0x01 << 15)) | ((value as u32 & 0x01) << 15);
+ self.w
+ }
+}
+impl R {
+ #[doc = "Bits 0:6 - Event Generator Selection"]
+ #[inline(always)]
+ pub fn evgen(&self) -> EVGEN_R {
+ EVGEN_R::new((self.bits & 0x7f) as u8)
+ }
+ #[doc = "Bits 8:9 - Path Selection"]
+ #[inline(always)]
+ pub fn path(&self) -> PATH_R {
+ PATH_R::new(((self.bits >> 8) & 0x03) as u8)
+ }
+ #[doc = "Bits 10:11 - Edge Detection Selection"]
+ #[inline(always)]
+ pub fn edgsel(&self) -> EDGSEL_R {
+ EDGSEL_R::new(((self.bits >> 10) & 0x03) as u8)
+ }
+ #[doc = "Bit 14 - Run in standby"]
+ #[inline(always)]
+ pub fn runstdby(&self) -> RUNSTDBY_R {
+ RUNSTDBY_R::new(((self.bits >> 14) & 0x01) != 0)
+ }
+ #[doc = "Bit 15 - Generic Clock On Demand"]
+ #[inline(always)]
+ pub fn ondemand(&self) -> ONDEMAND_R {
+ ONDEMAND_R::new(((self.bits >> 15) & 0x01) != 0)
+ }
+}
+impl W {
+ #[doc = "Bits 0:6 - Event Generator Selection"]
+ #[inline(always)]
+ pub fn evgen(&mut self) -> EVGEN_W {
+ EVGEN_W { w: self }
+ }
+ #[doc = "Bits 8:9 - Path Selection"]
+ #[inline(always)]
+ pub fn path(&mut self) -> PATH_W {
+ PATH_W { w: self }
+ }
+ #[doc = "Bits 10:11 - Edge Detection Selection"]
+ #[inline(always)]
+ pub fn edgsel(&mut self) -> EDGSEL_W {
+ EDGSEL_W { w: self }
+ }
+ #[doc = "Bit 14 - Run in standby"]
+ #[inline(always)]
+ pub fn runstdby(&mut self) -> RUNSTDBY_W {
+ RUNSTDBY_W { w: self }
+ }
+ #[doc = "Bit 15 - Generic Clock On Demand"]
+ #[inline(always)]
+ pub fn ondemand(&mut self) -> ONDEMAND_W {
+ ONDEMAND_W { w: self }
+ }
+ #[doc = "Writes raw bits to the register."]
+ #[inline(always)]
+ pub unsafe fn bits(&mut self, bits: u32) -> &mut Self {
+ self.0.bits(bits);
+ self
+ }
+}
+#[doc = "Channel n\n\nThis register you can [`read`](crate::generic::Reg::read), [`write_with_zero`](crate::generic::Reg::write_with_zero), [`reset`](crate::generic::Reg::reset), [`write`](crate::generic::Reg::write), [`modify`](crate::generic::Reg::modify). See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [channel](index.html) module"]
+pub struct CHANNEL_SPEC;
+impl crate::RegisterSpec for CHANNEL_SPEC {
+ type Ux = u32;
+}
+#[doc = "`read()` method returns [channel::R](R) reader structure"]
+impl crate::Readable for CHANNEL_SPEC {
+ type Reader = R;
+}
+#[doc = "`write(|w| ..)` method takes [channel::W](W) writer structure"]
+impl crate::Writable for CHANNEL_SPEC {
+ type Writer = W;
+}
+#[doc = "`reset()` method sets CHANNEL[%s]
+to value 0x8000"]
+impl crate::Resettable for CHANNEL_SPEC {
+ #[inline(always)]
+ fn reset_value() -> Self::Ux {
+ 0x8000
+ }
+}
diff --git a/src/evsys/chstatus.rs b/src/evsys/chstatus.rs
new file mode 100644
index 0000000..63a7c94
--- /dev/null
+++ b/src/evsys/chstatus.rs
@@ -0,0 +1,489 @@
+#[doc = "Register `CHSTATUS` reader"]
+pub struct R(crate::R<CHSTATUS_SPEC>);
+impl core::ops::Deref for R {
+ type Target = crate::R<CHSTATUS_SPEC>;
+ #[inline(always)]
+ fn deref(&self) -> &Self::Target {
+ &self.0
+ }
+}
+impl From<crate::R<CHSTATUS_SPEC>> for R {
+ #[inline(always)]
+ fn from(reader: crate::R<CHSTATUS_SPEC>) -> Self {
+ R(reader)
+ }
+}
+#[doc = "Field `USRRDY0` reader - Channel 0 User Ready"]
+pub struct USRRDY0_R(crate::FieldReader<bool, bool>);
+impl USRRDY0_R {
+ pub(crate) fn new(bits: bool) -> Self {
+ USRRDY0_R(crate::FieldReader::new(bits))
+ }
+}
+impl core::ops::Deref for USRRDY0_R {
+ type Target = crate::FieldReader<bool, bool>;
+ #[inline(always)]
+ fn deref(&self) -> &Self::Target {
+ &self.0
+ }
+}
+#[doc = "Field `USRRDY1` reader - Channel 1 User Ready"]
+pub struct USRRDY1_R(crate::FieldReader<bool, bool>);
+impl USRRDY1_R {
+ pub(crate) fn new(bits: bool) -> Self {
+ USRRDY1_R(crate::FieldReader::new(bits))
+ }
+}
+impl core::ops::Deref for USRRDY1_R {
+ type Target = crate::FieldReader<bool, bool>;
+ #[inline(always)]
+ fn deref(&self) -> &Self::Target {
+ &self.0
+ }
+}
+#[doc = "Field `USRRDY2` reader - Channel 2 User Ready"]
+pub struct USRRDY2_R(crate::FieldReader<bool, bool>);
+impl USRRDY2_R {
+ pub(crate) fn new(bits: bool) -> Self {
+ USRRDY2_R(crate::FieldReader::new(bits))
+ }
+}
+impl core::ops::Deref for USRRDY2_R {
+ type Target = crate::FieldReader<bool, bool>;
+ #[inline(always)]
+ fn deref(&self) -> &Self::Target {
+ &self.0
+ }
+}
+#[doc = "Field `USRRDY3` reader - Channel 3 User Ready"]
+pub struct USRRDY3_R(crate::FieldReader<bool, bool>);
+impl USRRDY3_R {
+ pub(crate) fn new(bits: bool) -> Self {
+ USRRDY3_R(crate::FieldReader::new(bits))
+ }
+}
+impl core::ops::Deref for USRRDY3_R {
+ type Target = crate::FieldReader<bool, bool>;
+ #[inline(always)]
+ fn deref(&self) -> &Self::Target {
+ &self.0
+ }
+}
+#[doc = "Field `USRRDY4` reader - Channel 4 User Ready"]
+pub struct USRRDY4_R(crate::FieldReader<bool, bool>);
+impl USRRDY4_R {
+ pub(crate) fn new(bits: bool) -> Self {
+ USRRDY4_R(crate::FieldReader::new(bits))
+ }
+}
+impl core::ops::Deref for USRRDY4_R {
+ type Target = crate::FieldReader<bool, bool>;
+ #[inline(always)]
+ fn deref(&self) -> &Self::Target {
+ &self.0
+ }
+}
+#[doc = "Field `USRRDY5` reader - Channel 5 User Ready"]
+pub struct USRRDY5_R(crate::FieldReader<bool, bool>);
+impl USRRDY5_R {
+ pub(crate) fn new(bits: bool) -> Self {
+ USRRDY5_R(crate::FieldReader::new(bits))
+ }
+}
+impl core::ops::Deref for USRRDY5_R {
+ type Target = crate::FieldReader<bool, bool>;
+ #[inline(always)]
+ fn deref(&self) -> &Self::Target {
+ &self.0
+ }
+}
+#[doc = "Field `USRRDY6` reader - Channel 6 User Ready"]
+pub struct USRRDY6_R(crate::FieldReader<bool, bool>);
+impl USRRDY6_R {
+ pub(crate) fn new(bits: bool) -> Self {
+ USRRDY6_R(crate::FieldReader::new(bits))
+ }
+}
+impl core::ops::Deref for USRRDY6_R {
+ type Target = crate::FieldReader<bool, bool>;
+ #[inline(always)]
+ fn deref(&self) -> &Self::Target {
+ &self.0
+ }
+}
+#[doc = "Field `USRRDY7` reader - Channel 7 User Ready"]
+pub struct USRRDY7_R(crate::FieldReader<bool, bool>);
+impl USRRDY7_R {
+ pub(crate) fn new(bits: bool) -> Self {
+ USRRDY7_R(crate::FieldReader::new(bits))
+ }
+}
+impl core::ops::Deref for USRRDY7_R {
+ type Target = crate::FieldReader<bool, bool>;
+ #[inline(always)]
+ fn deref(&self) -> &Self::Target {
+ &self.0
+ }
+}
+#[doc = "Field `USRRDY8` reader - Channel 8 User Ready"]
+pub struct USRRDY8_R(crate::FieldReader<bool, bool>);
+impl USRRDY8_R {
+ pub(crate) fn new(bits: bool) -> Self {
+ USRRDY8_R(crate::FieldReader::new(bits))
+ }
+}
+impl core::ops::Deref for USRRDY8_R {
+ type Target = crate::FieldReader<bool, bool>;
+ #[inline(always)]
+ fn deref(&self) -> &Self::Target {
+ &self.0
+ }
+}
+#[doc = "Field `USRRDY9` reader - Channel 9 User Ready"]
+pub struct USRRDY9_R(crate::FieldReader<bool, bool>);
+impl USRRDY9_R {
+ pub(crate) fn new(bits: bool) -> Self {
+ USRRDY9_R(crate::FieldReader::new(bits))
+ }
+}
+impl core::ops::Deref for USRRDY9_R {
+ type Target = crate::FieldReader<bool, bool>;
+ #[inline(always)]
+ fn deref(&self) -> &Self::Target {
+ &self.0
+ }
+}
+#[doc = "Field `USRRDY10` reader - Channel 10 User Ready"]
+pub struct USRRDY10_R(crate::FieldReader<bool, bool>);
+impl USRRDY10_R {
+ pub(crate) fn new(bits: bool) -> Self {
+ USRRDY10_R(crate::FieldReader::new(bits))
+ }
+}
+impl core::ops::Deref for USRRDY10_R {
+ type Target = crate::FieldReader<bool, bool>;
+ #[inline(always)]
+ fn deref(&self) -> &Self::Target {
+ &self.0
+ }
+}
+#[doc = "Field `USRRDY11` reader - Channel 11 User Ready"]
+pub struct USRRDY11_R(crate::FieldReader<bool, bool>);
+impl USRRDY11_R {
+ pub(crate) fn new(bits: bool) -> Self {
+ USRRDY11_R(crate::FieldReader::new(bits))
+ }
+}
+impl core::ops::Deref for USRRDY11_R {
+ type Target = crate::FieldReader<bool, bool>;
+ #[inline(always)]
+ fn deref(&self) -> &Self::Target {
+ &self.0
+ }
+}
+#[doc = "Field `CHBUSY0` reader - Channel 0 Busy"]
+pub struct CHBUSY0_R(crate::FieldReader<bool, bool>);
+impl CHBUSY0_R {
+ pub(crate) fn new(bits: bool) -> Self {
+ CHBUSY0_R(crate::FieldReader::new(bits))
+ }
+}
+impl core::ops::Deref for CHBUSY0_R {
+ type Target = crate::FieldReader<bool, bool>;
+ #[inline(always)]
+ fn deref(&self) -> &Self::Target {
+ &self.0
+ }
+}
+#[doc = "Field `CHBUSY1` reader - Channel 1 Busy"]
+pub struct CHBUSY1_R(crate::FieldReader<bool, bool>);
+impl CHBUSY1_R {
+ pub(crate) fn new(bits: bool) -> Self {
+ CHBUSY1_R(crate::FieldReader::new(bits))
+ }
+}
+impl core::ops::Deref for CHBUSY1_R {
+ type Target = crate::FieldReader<bool, bool>;
+ #[inline(always)]
+ fn deref(&self) -> &Self::Target {
+ &self.0
+ }
+}
+#[doc = "Field `CHBUSY2` reader - Channel 2 Busy"]
+pub struct CHBUSY2_R(crate::FieldReader<bool, bool>);
+impl CHBUSY2_R {
+ pub(crate) fn new(bits: bool) -> Self {
+ CHBUSY2_R(crate::FieldReader::new(bits))
+ }
+}
+impl core::ops::Deref for CHBUSY2_R {
+ type Target = crate::FieldReader<bool, bool>;
+ #[inline(always)]
+ fn deref(&self) -> &Self::Target {
+ &self.0
+ }
+}
+#[doc = "Field `CHBUSY3` reader - Channel 3 Busy"]
+pub struct CHBUSY3_R(crate::FieldReader<bool, bool>);
+impl CHBUSY3_R {
+ pub(crate) fn new(bits: bool) -> Self {
+ CHBUSY3_R(crate::FieldReader::new(bits))
+ }
+}
+impl core::ops::Deref for CHBUSY3_R {
+ type Target = crate::FieldReader<bool, bool>;
+ #[inline(always)]
+ fn deref(&self) -> &Self::Target {
+ &self.0
+ }
+}
+#[doc = "Field `CHBUSY4` reader - Channel 4 Busy"]
+pub struct CHBUSY4_R(crate::FieldReader<bool, bool>);
+impl CHBUSY4_R {
+ pub(crate) fn new(bits: bool) -> Self {
+ CHBUSY4_R(crate::FieldReader::new(bits))
+ }
+}
+impl core::ops::Deref for CHBUSY4_R {
+ type Target = crate::FieldReader<bool, bool>;
+ #[inline(always)]
+ fn deref(&self) -> &Self::Target {
+ &self.0
+ }
+}
+#[doc = "Field `CHBUSY5` reader - Channel 5 Busy"]
+pub struct CHBUSY5_R(crate::FieldReader<bool, bool>);
+impl CHBUSY5_R {
+ pub(crate) fn new(bits: bool) -> Self {
+ CHBUSY5_R(crate::FieldReader::new(bits))
+ }
+}
+impl core::ops::Deref for CHBUSY5_R {
+ type Target = crate::FieldReader<bool, bool>;
+ #[inline(always)]
+ fn deref(&self) -> &Self::Target {
+ &self.0
+ }
+}
+#[doc = "Field `CHBUSY6` reader - Channel 6 Busy"]
+pub struct CHBUSY6_R(crate::FieldReader<bool, bool>);
+impl CHBUSY6_R {
+ pub(crate) fn new(bits: bool) -> Self {
+ CHBUSY6_R(crate::FieldReader::new(bits))
+ }
+}
+impl core::ops::Deref for CHBUSY6_R {
+ type Target = crate::FieldReader<bool, bool>;
+ #[inline(always)]
+ fn deref(&self) -> &Self::Target {
+ &self.0
+ }
+}
+#[doc = "Field `CHBUSY7` reader - Channel 7 Busy"]
+pub struct CHBUSY7_R(crate::FieldReader<bool, bool>);
+impl CHBUSY7_R {
+ pub(crate) fn new(bits: bool) -> Self {
+ CHBUSY7_R(crate::FieldReader::new(bits))
+ }
+}
+impl core::ops::Deref for CHBUSY7_R {
+ type Target = crate::FieldReader<bool, bool>;
+ #[inline(always)]
+ fn deref(&self) -> &Self::Target {
+ &self.0
+ }
+}
+#[doc = "Field `CHBUSY8` reader - Channel 8 Busy"]
+pub struct CHBUSY8_R(crate::FieldReader<bool, bool>);
+impl CHBUSY8_R {
+ pub(crate) fn new(bits: bool) -> Self {
+ CHBUSY8_R(crate::FieldReader::new(bits))
+ }
+}
+impl core::ops::Deref for CHBUSY8_R {
+ type Target = crate::FieldReader<bool, bool>;
+ #[inline(always)]
+ fn deref(&self) -> &Self::Target {
+ &self.0
+ }
+}
+#[doc = "Field `CHBUSY9` reader - Channel 9 Busy"]
+pub struct CHBUSY9_R(crate::FieldReader<bool, bool>);
+impl CHBUSY9_R {
+ pub(crate) fn new(bits: bool) -> Self {
+ CHBUSY9_R(crate::FieldReader::new(bits))
+ }
+}
+impl core::ops::Deref for CHBUSY9_R {
+ type Target = crate::FieldReader<bool, bool>;
+ #[inline(always)]
+ fn deref(&self) -> &Self::Target {
+ &self.0
+ }
+}
+#[doc = "Field `CHBUSY10` reader - Channel 10 Busy"]
+pub struct CHBUSY10_R(crate::FieldReader<bool, bool>);
+impl CHBUSY10_R {
+ pub(crate) fn new(bits: bool) -> Self {
+ CHBUSY10_R(crate::FieldReader::new(bits))
+ }
+}
+impl core::ops::Deref for CHBUSY10_R {
+ type Target = crate::FieldReader<bool, bool>;
+ #[inline(always)]
+ fn deref(&self) -> &Self::Target {
+ &self.0
+ }
+}
+#[doc = "Field `CHBUSY11` reader - Channel 11 Busy"]
+pub struct CHBUSY11_R(crate::FieldReader<bool, bool>);
+impl CHBUSY11_R {
+ pub(crate) fn new(bits: bool) -> Self {
+ CHBUSY11_R(crate::FieldReader::new(bits))
+ }
+}
+impl core::ops::Deref for CHBUSY11_R {
+ type Target = crate::FieldReader<bool, bool>;
+ #[inline(always)]
+ fn deref(&self) -> &Self::Target {
+ &self.0
+ }
+}
+impl R {
+ #[doc = "Bit 0 - Channel 0 User Ready"]
+ #[inline(always)]
+ pub fn usrrdy0(&self) -> USRRDY0_R {
+ USRRDY0_R::new((self.bits & 0x01) != 0)
+ }
+ #[doc = "Bit 1 - Channel 1 User Ready"]
+ #[inline(always)]
+ pub fn usrrdy1(&self) -> USRRDY1_R {
+ USRRDY1_R::new(((self.bits >> 1) & 0x01) != 0)
+ }
+ #[doc = "Bit 2 - Channel 2 User Ready"]
+ #[inline(always)]
+ pub fn usrrdy2(&self) -> USRRDY2_R {
+ USRRDY2_R::new(((self.bits >> 2) & 0x01) != 0)
+ }
+ #[doc = "Bit 3 - Channel 3 User Ready"]
+ #[inline(always)]
+ pub fn usrrdy3(&self) -> USRRDY3_R {
+ USRRDY3_R::new(((self.bits >> 3) & 0x01) != 0)
+ }
+ #[doc = "Bit 4 - Channel 4 User Ready"]
+ #[inline(always)]
+ pub fn usrrdy4(&self) -> USRRDY4_R {
+ USRRDY4_R::new(((self.bits >> 4) & 0x01) != 0)
+ }
+ #[doc = "Bit 5 - Channel 5 User Ready"]
+ #[inline(always)]
+ pub fn usrrdy5(&self) -> USRRDY5_R {
+ USRRDY5_R::new(((self.bits >> 5) & 0x01) != 0)
+ }
+ #[doc = "Bit 6 - Channel 6 User Ready"]
+ #[inline(always)]
+ pub fn usrrdy6(&self) -> USRRDY6_R {
+ USRRDY6_R::new(((self.bits >> 6) & 0x01) != 0)
+ }
+ #[doc = "Bit 7 - Channel 7 User Ready"]
+ #[inline(always)]
+ pub fn usrrdy7(&self) -> USRRDY7_R {
+ USRRDY7_R::new(((self.bits >> 7) & 0x01) != 0)
+ }
+ #[doc = "Bit 8 - Channel 8 User Ready"]
+ #[inline(always)]
+ pub fn usrrdy8(&self) -> USRRDY8_R {
+ USRRDY8_R::new(((self.bits >> 8) & 0x01) != 0)
+ }
+ #[doc = "Bit 9 - Channel 9 User Ready"]
+ #[inline(always)]
+ pub fn usrrdy9(&self) -> USRRDY9_R {
+ USRRDY9_R::new(((self.bits >> 9) & 0x01) != 0)
+ }
+ #[doc = "Bit 10 - Channel 10 User Ready"]
+ #[inline(always)]
+ pub fn usrrdy10(&self) -> USRRDY10_R {
+ USRRDY10_R::new(((self.bits >> 10) & 0x01) != 0)
+ }
+ #[doc = "Bit 11 - Channel 11 User Ready"]
+ #[inline(always)]
+ pub fn usrrdy11(&self) -> USRRDY11_R {
+ USRRDY11_R::new(((self.bits >> 11) & 0x01) != 0)
+ }
+ #[doc = "Bit 16 - Channel 0 Busy"]
+ #[inline(always)]
+ pub fn chbusy0(&self) -> CHBUSY0_R {
+ CHBUSY0_R::new(((self.bits >> 16) & 0x01) != 0)
+ }
+ #[doc = "Bit 17 - Channel 1 Busy"]
+ #[inline(always)]
+ pub fn chbusy1(&self) -> CHBUSY1_R {
+ CHBUSY1_R::new(((self.bits >> 17) & 0x01) != 0)
+ }
+ #[doc = "Bit 18 - Channel 2 Busy"]
+ #[inline(always)]
+ pub fn chbusy2(&self) -> CHBUSY2_R {
+ CHBUSY2_R::new(((self.bits >> 18) & 0x01) != 0)
+ }
+ #[doc = "Bit 19 - Channel 3 Busy"]
+ #[inline(always)]
+ pub fn chbusy3(&self) -> CHBUSY3_R {
+ CHBUSY3_R::new(((self.bits >> 19) & 0x01) != 0)
+ }
+ #[doc = "Bit 20 - Channel 4 Busy"]
+ #[inline(always)]
+ pub fn chbusy4(&self) -> CHBUSY4_R {
+ CHBUSY4_R::new(((self.bits >> 20) & 0x01) != 0)
+ }
+ #[doc = "Bit 21 - Channel 5 Busy"]
+ #[inline(always)]
+ pub fn chbusy5(&self) -> CHBUSY5_R {
+ CHBUSY5_R::new(((self.bits >> 21) & 0x01) != 0)
+ }
+ #[doc = "Bit 22 - Channel 6 Busy"]
+ #[inline(always)]
+ pub fn chbusy6(&self) -> CHBUSY6_R {
+ CHBUSY6_R::new(((self.bits >> 22) & 0x01) != 0)
+ }
+ #[doc = "Bit 23 - Channel 7 Busy"]
+ #[inline(always)]
+ pub fn chbusy7(&self) -> CHBUSY7_R {
+ CHBUSY7_R::new(((self.bits >> 23) & 0x01) != 0)
+ }
+ #[doc = "Bit 24 - Channel 8 Busy"]
+ #[inline(always)]
+ pub fn chbusy8(&self) -> CHBUSY8_R {
+ CHBUSY8_R::new(((self.bits >> 24) & 0x01) != 0)
+ }
+ #[doc = "Bit 25 - Channel 9 Busy"]
+ #[inline(always)]
+ pub fn chbusy9(&self) -> CHBUSY9_R {
+ CHBUSY9_R::new(((self.bits >> 25) & 0x01) != 0)
+ }
+ #[doc = "Bit 26 - Channel 10 Busy"]
+ #[inline(always)]
+ pub fn chbusy10(&self) -> CHBUSY10_R {
+ CHBUSY10_R::new(((self.bits >> 26) & 0x01) != 0)
+ }
+ #[doc = "Bit 27 - Channel 11 Busy"]
+ #[inline(always)]
+ pub fn chbusy11(&self) -> CHBUSY11_R {
+ CHBUSY11_R::new(((self.bits >> 27) & 0x01) != 0)
+ }
+}
+#[doc = "Channel Status\n\nThis register you can [`read`](crate::generic::Reg::read). See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [chstatus](index.html) module"]
+pub struct CHSTATUS_SPEC;
+impl crate::RegisterSpec for CHSTATUS_SPEC {
+ type Ux = u32;
+}
+#[doc = "`read()` method returns [chstatus::R](R) reader structure"]
+impl crate::Readable for CHSTATUS_SPEC {
+ type Reader = R;
+}
+#[doc = "`reset()` method sets CHSTATUS to value 0"]
+impl crate::Resettable for CHSTATUS_SPEC {
+ #[inline(always)]
+ fn reset_value() -> Self::Ux {
+ 0
+ }
+}
diff --git a/src/evsys/ctrla.rs b/src/evsys/ctrla.rs
new file mode 100644
index 0000000..c3a893a
--- /dev/null
+++ b/src/evsys/ctrla.rs
@@ -0,0 +1,112 @@
+#[doc = "Register `CTRLA` reader"]
+pub struct R(crate::R<CTRLA_SPEC>);
+impl core::ops::Deref for R {
+ type Target = crate::R<CTRLA_SPEC>;
+ #[inline(always)]
+ fn deref(&self) -> &Self::Target {
+ &self.0
+ }
+}
+impl From<crate::R<CTRLA_SPEC>> for R {
+ #[inline(always)]
+ fn from(reader: crate::R<CTRLA_SPEC>) -> Self {
+ R(reader)
+ }
+}
+#[doc = "Register `CTRLA` writer"]
+pub struct W(crate::W<CTRLA_SPEC>);
+impl core::ops::Deref for W {
+ type Target = crate::W<CTRLA_SPEC>;
+ #[inline(always)]
+ fn deref(&self) -> &Self::Target {
+ &self.0
+ }
+}
+impl core::ops::DerefMut for W {
+ #[inline(always)]
+ fn deref_mut(&mut self) -> &mut Self::Target {
+ &mut self.0
+ }
+}
+impl From<crate::W<CTRLA_SPEC>> for W {
+ #[inline(always)]
+ fn from(writer: crate::W<CTRLA_SPEC>) -> Self {
+ W(writer)
+ }
+}
+#[doc = "Field `SWRST` reader - Software Reset"]
+pub struct SWRST_R(crate::FieldReader<bool, bool>);
+impl SWRST_R {
+ pub(crate) fn new(bits: bool) -> Self {
+ SWRST_R(crate::FieldReader::new(bits))
+ }
+}
+impl core::ops::Deref for SWRST_R {
+ type Target = crate::FieldReader<bool, bool>;
+ #[inline(always)]
+ fn deref(&self) -> &Self::Target {
+ &self.0
+ }
+}
+#[doc = "Field `SWRST` writer - Software Reset"]
+pub struct SWRST_W<'a> {
+ w: &'a mut W,
+}
+impl<'a> SWRST_W<'a> {
+ #[doc = r"Sets the field bit"]
+ #[inline(always)]
+ pub fn set_bit(self) -> &'a mut W {
+ self.bit(true)
+ }
+ #[doc = r"Clears the field bit"]
+ #[inline(always)]
+ pub fn clear_bit(self) -> &'a mut W {
+ self.bit(false)
+ }
+ #[doc = r"Writes raw bits to the field"]
+ #[inline(always)]
+ pub fn bit(self, value: bool) -> &'a mut W {
+ self.w.bits = (self.w.bits & !0x01) | (value as u8 & 0x01);
+ self.w
+ }
+}
+impl R {
+ #[doc = "Bit 0 - Software Reset"]
+ #[inline(always)]
+ pub fn swrst(&self) -> SWRST_R {
+ SWRST_R::new((self.bits & 0x01) != 0)
+ }
+}
+impl W {
+ #[doc = "Bit 0 - Software Reset"]
+ #[inline(always)]
+ pub fn swrst(&mut self) -> SWRST_W {
+ SWRST_W { w: self }
+ }
+ #[doc = "Writes raw bits to the register."]
+ #[inline(always)]
+ pub unsafe fn bits(&mut self, bits: u8) -> &mut Self {
+ self.0.bits(bits);
+ self
+ }
+}
+#[doc = "Control\n\nThis register you can [`read`](crate::generic::Reg::read), [`write_with_zero`](crate::generic::Reg::write_with_zero), [`reset`](crate::generic::Reg::reset), [`write`](crate::generic::Reg::write), [`modify`](crate::generic::Reg::modify). See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [ctrla](index.html) module"]
+pub struct CTRLA_SPEC;
+impl crate::RegisterSpec for CTRLA_SPEC {
+ type Ux = u8;
+}
+#[doc = "`read()` method returns [ctrla::R](R) reader structure"]
+impl crate::Readable for CTRLA_SPEC {
+ type Reader = R;
+}
+#[doc = "`write(|w| ..)` method takes [ctrla::W](W) writer structure"]
+impl crate::Writable for CTRLA_SPEC {
+ type Writer = W;
+}
+#[doc = "`reset()` method sets CTRLA to value 0"]
+impl crate::Resettable for CTRLA_SPEC {
+ #[inline(always)]
+ fn reset_value() -> Self::Ux {
+ 0
+ }
+}
diff --git a/src/evsys/intenclr.rs b/src/evsys/intenclr.rs
new file mode 100644
index 0000000..7504078
--- /dev/null
+++ b/src/evsys/intenclr.rs
@@ -0,0 +1,1170 @@
+#[doc = "Register `INTENCLR` reader"]
+pub struct R(crate::R<INTENCLR_SPEC>);
+impl core::ops::Deref for R {
+ type Target = crate::R<INTENCLR_SPEC>;
+ #[inline(always)]
+ fn deref(&self) -> &Self::Target {
+ &self.0
+ }
+}
+impl From<crate::R<INTENCLR_SPEC>> for R {
+ #[inline(always)]
+ fn from(reader: crate::R<INTENCLR_SPEC>) -> Self {
+ R(reader)
+ }
+}
+#[doc = "Register `INTENCLR` writer"]
+pub struct W(crate::W<INTENCLR_SPEC>);
+impl core::ops::Deref for W {
+ type Target = crate::W<INTENCLR_SPEC>;
+ #[inline(always)]
+ fn deref(&self) -> &Self::Target {
+ &self.0
+ }
+}
+impl core::ops::DerefMut for W {
+ #[inline(always)]
+ fn deref_mut(&mut self) -> &mut Self::Target {
+ &mut self.0
+ }
+}
+impl From<crate::W<INTENCLR_SPEC>> for W {
+ #[inline(always)]
+ fn from(writer: crate::W<INTENCLR_SPEC>) -> Self {
+ W(writer)
+ }
+}
+#[doc = "Field `OVR0` reader - Channel 0 Overrun Interrupt Enable"]
+pub struct OVR0_R(crate::FieldReader<bool, bool>);
+impl OVR0_R {
+ pub(crate) fn new(bits: bool) -> Self {
+ OVR0_R(crate::FieldReader::new(bits))
+ }
+}
+impl core::ops::Deref for OVR0_R {
+ type Target = crate::FieldReader<bool, bool>;
+ #[inline(always)]
+ fn deref(&self) -> &Self::Target {
+ &self.0
+ }
+}
+#[doc = "Field `OVR0` writer - Channel 0 Overrun Interrupt Enable"]
+pub struct OVR0_W<'a> {
+ w: &'a mut W,
+}
+impl<'a> OVR0_W<'a> {
+ #[doc = r"Sets the field bit"]
+ #[inline(always)]
+ pub fn set_bit(self) -> &'a mut W {
+ self.bit(true)
+ }
+ #[doc = r"Clears the field bit"]
+ #[inline(always)]
+ pub fn clear_bit(self) -> &'a mut W {
+ self.bit(false)
+ }
+ #[doc = r"Writes raw bits to the field"]
+ #[inline(always)]
+ pub fn bit(self, value: bool) -> &'a mut W {
+ self.w.bits = (self.w.bits & !0x01) | (value as u32 & 0x01);
+ self.w
+ }
+}
+#[doc = "Field `OVR1` reader - Channel 1 Overrun Interrupt Enable"]
+pub struct OVR1_R(crate::FieldReader<bool, bool>);
+impl OVR1_R {
+ pub(crate) fn new(bits: bool) -> Self {
+ OVR1_R(crate::FieldReader::new(bits))
+ }
+}
+impl core::ops::Deref for OVR1_R {
+ type Target = crate::FieldReader<bool, bool>;
+ #[inline(always)]
+ fn deref(&self) -> &Self::Target {
+ &self.0
+ }
+}
+#[doc = "Field `OVR1` writer - Channel 1 Overrun Interrupt Enable"]
+pub struct OVR1_W<'a> {
+ w: &'a mut W,
+}
+impl<'a> OVR1_W<'a> {
+ #[doc = r"Sets the field bit"]
+ #[inline(always)]
+ pub fn set_bit(self) -> &'a mut W {
+ self.bit(true)
+ }
+ #[doc = r"Clears the field bit"]
+ #[inline(always)]
+ pub fn clear_bit(self) -> &'a mut W {
+ self.bit(false)
+ }
+ #[doc = r"Writes raw bits to the field"]
+ #[inline(always)]
+ pub fn bit(self, value: bool) -> &'a mut W {
+ self.w.bits = (self.w.bits & !(0x01 << 1)) | ((value as u32 & 0x01) << 1);
+ self.w
+ }
+}
+#[doc = "Field `OVR2` reader - Channel 2 Overrun Interrupt Enable"]
+pub struct OVR2_R(crate::FieldReader<bool, bool>);
+impl OVR2_R {
+ pub(crate) fn new(bits: bool) -> Self {
+ OVR2_R(crate::FieldReader::new(bits))
+ }
+}
+impl core::ops::Deref for OVR2_R {
+ type Target = crate::FieldReader<bool, bool>;
+ #[inline(always)]
+ fn deref(&self) -> &Self::Target {
+ &self.0
+ }
+}
+#[doc = "Field `OVR2` writer - Channel 2 Overrun Interrupt Enable"]
+pub struct OVR2_W<'a> {
+ w: &'a mut W,
+}
+impl<'a> OVR2_W<'a> {
+ #[doc = r"Sets the field bit"]
+ #[inline(always)]
+ pub fn set_bit(self) -> &'a mut W {
+ self.bit(true)
+ }
+ #[doc = r"Clears the field bit"]
+ #[inline(always)]
+ pub fn clear_bit(self) -> &'a mut W {
+ self.bit(false)
+ }
+ #[doc = r"Writes raw bits to the field"]
+ #[inline(always)]
+ pub fn bit(self, value: bool) -> &'a mut W {
+ self.w.bits = (self.w.bits & !(0x01 << 2)) | ((value as u32 & 0x01) << 2);
+ self.w
+ }
+}
+#[doc = "Field `OVR3` reader - Channel 3 Overrun Interrupt Enable"]
+pub struct OVR3_R(crate::FieldReader<bool, bool>);
+impl OVR3_R {
+ pub(crate) fn new(bits: bool) -> Self {
+ OVR3_R(crate::FieldReader::new(bits))
+ }
+}
+impl core::ops::Deref for OVR3_R {
+ type Target = crate::FieldReader<bool, bool>;
+ #[inline(always)]
+ fn deref(&self) -> &Self::Target {
+ &self.0
+ }
+}
+#[doc = "Field `OVR3` writer - Channel 3 Overrun Interrupt Enable"]
+pub struct OVR3_W<'a> {
+ w: &'a mut W,
+}
+impl<'a> OVR3_W<'a> {
+ #[doc = r"Sets the field bit"]
+ #[inline(always)]
+ pub fn set_bit(self) -> &'a mut W {
+ self.bit(true)
+ }
+ #[doc = r"Clears the field bit"]
+ #[inline(always)]
+ pub fn clear_bit(self) -> &'a mut W {
+ self.bit(false)
+ }
+ #[doc = r"Writes raw bits to the field"]
+ #[inline(always)]
+ pub fn bit(self, value: bool) -> &'a mut W {
+ self.w.bits = (self.w.bits & !(0x01 << 3)) | ((value as u32 & 0x01) << 3);
+ self.w
+ }
+}
+#[doc = "Field `OVR4` reader - Channel 4 Overrun Interrupt Enable"]
+pub struct OVR4_R(crate::FieldReader<bool, bool>);
+impl OVR4_R {
+ pub(crate) fn new(bits: bool) -> Self {
+ OVR4_R(crate::FieldReader::new(bits))
+ }
+}
+impl core::ops::Deref for OVR4_R {
+ type Target = crate::FieldReader<bool, bool>;
+ #[inline(always)]
+ fn deref(&self) -> &Self::Target {
+ &self.0
+ }
+}
+#[doc = "Field `OVR4` writer - Channel 4 Overrun Interrupt Enable"]
+pub struct OVR4_W<'a> {
+ w: &'a mut W,
+}
+impl<'a> OVR4_W<'a> {
+ #[doc = r"Sets the field bit"]
+ #[inline(always)]
+ pub fn set_bit(self) -> &'a mut W {
+ self.bit(true)
+ }
+ #[doc = r"Clears the field bit"]
+ #[inline(always)]
+ pub fn clear_bit(self) -> &'a mut W {
+ self.bit(false)
+ }
+ #[doc = r"Writes raw bits to the field"]
+ #[inline(always)]
+ pub fn bit(self, value: bool) -> &'a mut W {
+ self.w.bits = (self.w.bits & !(0x01 << 4)) | ((value as u32 & 0x01) << 4);
+ self.w
+ }
+}
+#[doc = "Field `OVR5` reader - Channel 5 Overrun Interrupt Enable"]
+pub struct OVR5_R(crate::FieldReader<bool, bool>);
+impl OVR5_R {
+ pub(crate) fn new(bits: bool) -> Self {
+ OVR5_R(crate::FieldReader::new(bits))
+ }
+}
+impl core::ops::Deref for OVR5_R {
+ type Target = crate::FieldReader<bool, bool>;
+ #[inline(always)]
+ fn deref(&self) -> &Self::Target {
+ &self.0
+ }
+}
+#[doc = "Field `OVR5` writer - Channel 5 Overrun Interrupt Enable"]
+pub struct OVR5_W<'a> {
+ w: &'a mut W,
+}
+impl<'a> OVR5_W<'a> {
+ #[doc = r"Sets the field bit"]
+ #[inline(always)]
+ pub fn set_bit(self) -> &'a mut W {
+ self.bit(true)
+ }
+ #[doc = r"Clears the field bit"]
+ #[inline(always)]
+ pub fn clear_bit(self) -> &'a mut W {
+ self.bit(false)
+ }
+ #[doc = r"Writes raw bits to the field"]
+ #[inline(always)]
+ pub fn bit(self, value: bool) -> &'a mut W {
+ self.w.bits = (self.w.bits & !(0x01 << 5)) | ((value as u32 & 0x01) << 5);
+ self.w
+ }
+}
+#[doc = "Field `OVR6` reader - Channel 6 Overrun Interrupt Enable"]
+pub struct OVR6_R(crate::FieldReader<bool, bool>);
+impl OVR6_R {
+ pub(crate) fn new(bits: bool) -> Self {
+ OVR6_R(crate::FieldReader::new(bits))
+ }
+}
+impl core::ops::Deref for OVR6_R {
+ type Target = crate::FieldReader<bool, bool>;
+ #[inline(always)]
+ fn deref(&self) -> &Self::Target {
+ &self.0
+ }
+}
+#[doc = "Field `OVR6` writer - Channel 6 Overrun Interrupt Enable"]
+pub struct OVR6_W<'a> {
+ w: &'a mut W,
+}
+impl<'a> OVR6_W<'a> {
+ #[doc = r"Sets the field bit"]
+ #[inline(always)]
+ pub fn set_bit(self) -> &'a mut W {
+ self.bit(true)
+ }
+ #[doc = r"Clears the field bit"]
+ #[inline(always)]
+ pub fn clear_bit(self) -> &'a mut W {
+ self.bit(false)
+ }
+ #[doc = r"Writes raw bits to the field"]
+ #[inline(always)]
+ pub fn bit(self, value: bool) -> &'a mut W {
+ self.w.bits = (self.w.bits & !(0x01 << 6)) | ((value as u32 & 0x01) << 6);
+ self.w
+ }
+}
+#[doc = "Field `OVR7` reader - Channel 7 Overrun Interrupt Enable"]
+pub struct OVR7_R(crate::FieldReader<bool, bool>);
+impl OVR7_R {
+ pub(crate) fn new(bits: bool) -> Self {
+ OVR7_R(crate::FieldReader::new(bits))
+ }
+}
+impl core::ops::Deref for OVR7_R {
+ type Target = crate::FieldReader<bool, bool>;
+ #[inline(always)]
+ fn deref(&self) -> &Self::Target {
+ &self.0
+ }
+}
+#[doc = "Field `OVR7` writer - Channel 7 Overrun Interrupt Enable"]
+pub struct OVR7_W<'a> {
+ w: &'a mut W,
+}
+impl<'a> OVR7_W<'a> {
+ #[doc = r"Sets the field bit"]
+ #[inline(always)]
+ pub fn set_bit(self) -> &'a mut W {
+ self.bit(true)
+ }
+ #[doc = r"Clears the field bit"]
+ #[inline(always)]
+ pub fn clear_bit(self) -> &'a mut W {
+ self.bit(false)
+ }
+ #[doc = r"Writes raw bits to the field"]
+ #[inline(always)]
+ pub fn bit(self, value: bool) -> &'a mut W {
+ self.w.bits = (self.w.bits & !(0x01 << 7)) | ((value as u32 & 0x01) << 7);
+ self.w
+ }
+}
+#[doc = "Field `OVR8` reader - Channel 8 Overrun Interrupt Enable"]
+pub struct OVR8_R(crate::FieldReader<bool, bool>);
+impl OVR8_R {
+ pub(crate) fn new(bits: bool) -> Self {
+ OVR8_R(crate::FieldReader::new(bits))
+ }
+}
+impl core::ops::Deref for OVR8_R {
+ type Target = crate::FieldReader<bool, bool>;
+ #[inline(always)]
+ fn deref(&self) -> &Self::Target {
+ &self.0
+ }
+}
+#[doc = "Field `OVR8` writer - Channel 8 Overrun Interrupt Enable"]
+pub struct OVR8_W<'a> {
+ w: &'a mut W,
+}
+impl<'a> OVR8_W<'a> {
+ #[doc = r"Sets the field bit"]
+ #[inline(always)]
+ pub fn set_bit(self) -> &'a mut W {
+ self.bit(true)
+ }
+ #[doc = r"Clears the field bit"]
+ #[inline(always)]
+ pub fn clear_bit(self) -> &'a mut W {
+ self.bit(false)
+ }
+ #[doc = r"Writes raw bits to the field"]
+ #[inline(always)]
+ pub fn bit(self, value: bool) -> &'a mut W {
+ self.w.bits = (self.w.bits & !(0x01 << 8)) | ((value as u32 & 0x01) << 8);
+ self.w
+ }
+}
+#[doc = "Field `OVR9` reader - Channel 9 Overrun Interrupt Enable"]
+pub struct OVR9_R(crate::FieldReader<bool, bool>);
+impl OVR9_R {
+ pub(crate) fn new(bits: bool) -> Self {
+ OVR9_R(crate::FieldReader::new(bits))
+ }
+}
+impl core::ops::Deref for OVR9_R {
+ type Target = crate::FieldReader<bool, bool>;
+ #[inline(always)]
+ fn deref(&self) -> &Self::Target {
+ &self.0
+ }
+}
+#[doc = "Field `OVR9` writer - Channel 9 Overrun Interrupt Enable"]
+pub struct OVR9_W<'a> {
+ w: &'a mut W,
+}
+impl<'a> OVR9_W<'a> {
+ #[doc = r"Sets the field bit"]
+ #[inline(always)]
+ pub fn set_bit(self) -> &'a mut W {
+ self.bit(true)
+ }
+ #[doc = r"Clears the field bit"]
+ #[inline(always)]
+ pub fn clear_bit(self) -> &'a mut W {
+ self.bit(false)
+ }
+ #[doc = r"Writes raw bits to the field"]
+ #[inline(always)]
+ pub fn bit(self, value: bool) -> &'a mut W {
+ self.w.bits = (self.w.bits & !(0x01 << 9)) | ((value as u32 & 0x01) << 9);
+ self.w
+ }
+}
+#[doc = "Field `OVR10` reader - Channel 10 Overrun Interrupt Enable"]
+pub struct OVR10_R(crate::FieldReader<bool, bool>);
+impl OVR10_R {
+ pub(crate) fn new(bits: bool) -> Self {
+ OVR10_R(crate::FieldReader::new(bits))
+ }
+}
+impl core::ops::Deref for OVR10_R {
+ type Target = crate::FieldReader<bool, bool>;
+ #[inline(always)]
+ fn deref(&self) -> &Self::Target {
+ &self.0
+ }
+}
+#[doc = "Field `OVR10` writer - Channel 10 Overrun Interrupt Enable"]
+pub struct OVR10_W<'a> {
+ w: &'a mut W,
+}
+impl<'a> OVR10_W<'a> {
+ #[doc = r"Sets the field bit"]
+ #[inline(always)]
+ pub fn set_bit(self) -> &'a mut W {
+ self.bit(true)
+ }
+ #[doc = r"Clears the field bit"]
+ #[inline(always)]
+ pub fn clear_bit(self) -> &'a mut W {
+ self.bit(false)
+ }
+ #[doc = r"Writes raw bits to the field"]
+ #[inline(always)]
+ pub fn bit(self, value: bool) -> &'a mut W {
+ self.w.bits = (self.w.bits & !(0x01 << 10)) | ((value as u32 & 0x01) << 10);
+ self.w
+ }
+}
+#[doc = "Field `OVR11` reader - Channel 11 Overrun Interrupt Enable"]
+pub struct OVR11_R(crate::FieldReader<bool, bool>);
+impl OVR11_R {
+ pub(crate) fn new(bits: bool) -> Self {
+ OVR11_R(crate::FieldReader::new(bits))
+ }
+}
+impl core::ops::Deref for OVR11_R {
+ type Target = crate::FieldReader<bool, bool>;
+ #[inline(always)]
+ fn deref(&self) -> &Self::Target {
+ &self.0
+ }
+}
+#[doc = "Field `OVR11` writer - Channel 11 Overrun Interrupt Enable"]
+pub struct OVR11_W<'a> {
+ w: &'a mut W,
+}
+impl<'a> OVR11_W<'a> {
+ #[doc = r"Sets the field bit"]
+ #[inline(always)]
+ pub fn set_bit(self) -> &'a mut W {
+ self.bit(true)
+ }
+ #[doc = r"Clears the field bit"]
+ #[inline(always)]
+ pub fn clear_bit(self) -> &'a mut W {
+ self.bit(false)
+ }
+ #[doc = r"Writes raw bits to the field"]
+ #[inline(always)]
+ pub fn bit(self, value: bool) -> &'a mut W {
+ self.w.bits = (self.w.bits & !(0x01 << 11)) | ((value as u32 & 0x01) << 11);
+ self.w
+ }
+}
+#[doc = "Field `EVD0` reader - Channel 0 Event Detection Interrupt Enable"]
+pub struct EVD0_R(crate::FieldReader<bool, bool>);
+impl EVD0_R {
+ pub(crate) fn new(bits: bool) -> Self {
+ EVD0_R(crate::FieldReader::new(bits))
+ }
+}
+impl core::ops::Deref for EVD0_R {
+ type Target = crate::FieldReader<bool, bool>;
+ #[inline(always)]
+ fn deref(&self) -> &Self::Target {
+ &self.0
+ }
+}
+#[doc = "Field `EVD0` writer - Channel 0 Event Detection Interrupt Enable"]
+pub struct EVD0_W<'a> {
+ w: &'a mut W,
+}
+impl<'a> EVD0_W<'a> {
+ #[doc = r"Sets the field bit"]
+ #[inline(always)]
+ pub fn set_bit(self) -> &'a mut W {
+ self.bit(true)
+ }
+ #[doc = r"Clears the field bit"]
+ #[inline(always)]
+ pub fn clear_bit(self) -> &'a mut W {
+ self.bit(false)
+ }
+ #[doc = r"Writes raw bits to the field"]
+ #[inline(always)]
+ pub fn bit(self, value: bool) -> &'a mut W {
+ self.w.bits = (self.w.bits & !(0x01 << 16)) | ((value as u32 & 0x01) << 16);
+ self.w
+ }
+}
+#[doc = "Field `EVD1` reader - Channel 1 Event Detection Interrupt Enable"]
+pub struct EVD1_R(crate::FieldReader<bool, bool>);
+impl EVD1_R {
+ pub(crate) fn new(bits: bool) -> Self {
+ EVD1_R(crate::FieldReader::new(bits))
+ }
+}
+impl core::ops::Deref for EVD1_R {
+ type Target = crate::FieldReader<bool, bool>;
+ #[inline(always)]
+ fn deref(&self) -> &Self::Target {
+ &self.0
+ }
+}
+#[doc = "Field `EVD1` writer - Channel 1 Event Detection Interrupt Enable"]
+pub struct EVD1_W<'a> {
+ w: &'a mut W,
+}
+impl<'a> EVD1_W<'a> {
+ #[doc = r"Sets the field bit"]
+ #[inline(always)]
+ pub fn set_bit(self) -> &'a mut W {
+ self.bit(true)
+ }
+ #[doc = r"Clears the field bit"]
+ #[inline(always)]
+ pub fn clear_bit(self) -> &'a mut W {
+ self.bit(false)
+ }
+ #[doc = r"Writes raw bits to the field"]
+ #[inline(always)]
+ pub fn bit(self, value: bool) -> &'a mut W {
+ self.w.bits = (self.w.bits & !(0x01 << 17)) | ((value as u32 & 0x01) << 17);
+ self.w
+ }
+}
+#[doc = "Field `EVD2` reader - Channel 2 Event Detection Interrupt Enable"]
+pub struct EVD2_R(crate::FieldReader<bool, bool>);
+impl EVD2_R {
+ pub(crate) fn new(bits: bool) -> Self {
+ EVD2_R(crate::FieldReader::new(bits))
+ }
+}
+impl core::ops::Deref for EVD2_R {
+ type Target = crate::FieldReader<bool, bool>;
+ #[inline(always)]
+ fn deref(&self) -> &Self::Target {
+ &self.0
+ }
+}
+#[doc = "Field `EVD2` writer - Channel 2 Event Detection Interrupt Enable"]
+pub struct EVD2_W<'a> {
+ w: &'a mut W,
+}
+impl<'a> EVD2_W<'a> {
+ #[doc = r"Sets the field bit"]
+ #[inline(always)]
+ pub fn set_bit(self) -> &'a mut W {
+ self.bit(true)
+ }
+ #[doc = r"Clears the field bit"]
+ #[inline(always)]
+ pub fn clear_bit(self) -> &'a mut W {
+ self.bit(false)
+ }
+ #[doc = r"Writes raw bits to the field"]
+ #[inline(always)]
+ pub fn bit(self, value: bool) -> &'a mut W {
+ self.w.bits = (self.w.bits & !(0x01 << 18)) | ((value as u32 & 0x01) << 18);
+ self.w
+ }
+}
+#[doc = "Field `EVD3` reader - Channel 3 Event Detection Interrupt Enable"]
+pub struct EVD3_R(crate::FieldReader<bool, bool>);
+impl EVD3_R {
+ pub(crate) fn new(bits: bool) -> Self {
+ EVD3_R(crate::FieldReader::new(bits))
+ }
+}
+impl core::ops::Deref for EVD3_R {
+ type Target = crate::FieldReader<bool, bool>;
+ #[inline(always)]
+ fn deref(&self) -> &Self::Target {
+ &self.0
+ }
+}
+#[doc = "Field `EVD3` writer - Channel 3 Event Detection Interrupt Enable"]
+pub struct EVD3_W<'a> {
+ w: &'a mut W,
+}
+impl<'a> EVD3_W<'a> {
+ #[doc = r"Sets the field bit"]
+ #[inline(always)]
+ pub fn set_bit(self) -> &'a mut W {
+ self.bit(true)
+ }
+ #[doc = r"Clears the field bit"]
+ #[inline(always)]
+ pub fn clear_bit(self) -> &'a mut W {
+ self.bit(false)
+ }
+ #[doc = r"Writes raw bits to the field"]
+ #[inline(always)]
+ pub fn bit(self, value: bool) -> &'a mut W {
+ self.w.bits = (self.w.bits & !(0x01 << 19)) | ((value as u32 & 0x01) << 19);
+ self.w
+ }
+}
+#[doc = "Field `EVD4` reader - Channel 4 Event Detection Interrupt Enable"]
+pub struct EVD4_R(crate::FieldReader<bool, bool>);
+impl EVD4_R {
+ pub(crate) fn new(bits: bool) -> Self {
+ EVD4_R(crate::FieldReader::new(bits))
+ }
+}
+impl core::ops::Deref for EVD4_R {
+ type Target = crate::FieldReader<bool, bool>;
+ #[inline(always)]
+ fn deref(&self) -> &Self::Target {
+ &self.0
+ }
+}
+#[doc = "Field `EVD4` writer - Channel 4 Event Detection Interrupt Enable"]
+pub struct EVD4_W<'a> {
+ w: &'a mut W,
+}
+impl<'a> EVD4_W<'a> {
+ #[doc = r"Sets the field bit"]
+ #[inline(always)]
+ pub fn set_bit(self) -> &'a mut W {
+ self.bit(true)
+ }
+ #[doc = r"Clears the field bit"]
+ #[inline(always)]
+ pub fn clear_bit(self) -> &'a mut W {
+ self.bit(false)
+ }
+ #[doc = r"Writes raw bits to the field"]
+ #[inline(always)]
+ pub fn bit(self, value: bool) -> &'a mut W {
+ self.w.bits = (self.w.bits & !(0x01 << 20)) | ((value as u32 & 0x01) << 20);
+ self.w
+ }
+}
+#[doc = "Field `EVD5` reader - Channel 5 Event Detection Interrupt Enable"]
+pub struct EVD5_R(crate::FieldReader<bool, bool>);
+impl EVD5_R {
+ pub(crate) fn new(bits: bool) -> Self {
+ EVD5_R(crate::FieldReader::new(bits))
+ }
+}
+impl core::ops::Deref for EVD5_R {
+ type Target = crate::FieldReader<bool, bool>;
+ #[inline(always)]
+ fn deref(&self) -> &Self::Target {
+ &self.0
+ }
+}
+#[doc = "Field `EVD5` writer - Channel 5 Event Detection Interrupt Enable"]
+pub struct EVD5_W<'a> {
+ w: &'a mut W,
+}
+impl<'a> EVD5_W<'a> {
+ #[doc = r"Sets the field bit"]
+ #[inline(always)]
+ pub fn set_bit(self) -> &'a mut W {
+ self.bit(true)
+ }
+ #[doc = r"Clears the field bit"]
+ #[inline(always)]
+ pub fn clear_bit(self) -> &'a mut W {
+ self.bit(false)
+ }
+ #[doc = r"Writes raw bits to the field"]
+ #[inline(always)]
+ pub fn bit(self, value: bool) -> &'a mut W {
+ self.w.bits = (self.w.bits & !(0x01 << 21)) | ((value as u32 & 0x01) << 21);
+ self.w
+ }
+}
+#[doc = "Field `EVD6` reader - Channel 6 Event Detection Interrupt Enable"]
+pub struct EVD6_R(crate::FieldReader<bool, bool>);
+impl EVD6_R {
+ pub(crate) fn new(bits: bool) -> Self {
+ EVD6_R(crate::FieldReader::new(bits))
+ }
+}
+impl core::ops::Deref for EVD6_R {
+ type Target = crate::FieldReader<bool, bool>;
+ #[inline(always)]
+ fn deref(&self) -> &Self::Target {
+ &self.0
+ }
+}
+#[doc = "Field `EVD6` writer - Channel 6 Event Detection Interrupt Enable"]
+pub struct EVD6_W<'a> {
+ w: &'a mut W,
+}
+impl<'a> EVD6_W<'a> {
+ #[doc = r"Sets the field bit"]
+ #[inline(always)]
+ pub fn set_bit(self) -> &'a mut W {
+ self.bit(true)
+ }
+ #[doc = r"Clears the field bit"]
+ #[inline(always)]
+ pub fn clear_bit(self) -> &'a mut W {
+ self.bit(false)
+ }
+ #[doc = r"Writes raw bits to the field"]
+ #[inline(always)]
+ pub fn bit(self, value: bool) -> &'a mut W {
+ self.w.bits = (self.w.bits & !(0x01 << 22)) | ((value as u32 & 0x01) << 22);
+ self.w
+ }
+}
+#[doc = "Field `EVD7` reader - Channel 7 Event Detection Interrupt Enable"]
+pub struct EVD7_R(crate::FieldReader<bool, bool>);
+impl EVD7_R {
+ pub(crate) fn new(bits: bool) -> Self {
+ EVD7_R(crate::FieldReader::new(bits))
+ }
+}
+impl core::ops::Deref for EVD7_R {
+ type Target = crate::FieldReader<bool, bool>;
+ #[inline(always)]
+ fn deref(&self) -> &Self::Target {
+ &self.0
+ }
+}
+#[doc = "Field `EVD7` writer - Channel 7 Event Detection Interrupt Enable"]
+pub struct EVD7_W<'a> {
+ w: &'a mut W,
+}
+impl<'a> EVD7_W<'a> {
+ #[doc = r"Sets the field bit"]
+ #[inline(always)]
+ pub fn set_bit(self) -> &'a mut W {
+ self.bit(true)
+ }
+ #[doc = r"Clears the field bit"]
+ #[inline(always)]
+ pub fn clear_bit(self) -> &'a mut W {
+ self.bit(false)
+ }
+ #[doc = r"Writes raw bits to the field"]
+ #[inline(always)]
+ pub fn bit(self, value: bool) -> &'a mut W {
+ self.w.bits = (self.w.bits & !(0x01 << 23)) | ((value as u32 & 0x01) << 23);
+ self.w
+ }
+}
+#[doc = "Field `EVD8` reader - Channel 8 Event Detection Interrupt Enable"]
+pub struct EVD8_R(crate::FieldReader<bool, bool>);
+impl EVD8_R {
+ pub(crate) fn new(bits: bool) -> Self {
+ EVD8_R(crate::FieldReader::new(bits))
+ }
+}
+impl core::ops::Deref for EVD8_R {
+ type Target = crate::FieldReader<bool, bool>;
+ #[inline(always)]
+ fn deref(&self) -> &Self::Target {
+ &self.0
+ }
+}
+#[doc = "Field `EVD8` writer - Channel 8 Event Detection Interrupt Enable"]
+pub struct EVD8_W<'a> {
+ w: &'a mut W,
+}
+impl<'a> EVD8_W<'a> {
+ #[doc = r"Sets the field bit"]
+ #[inline(always)]
+ pub fn set_bit(self) -> &'a mut W {
+ self.bit(true)
+ }
+ #[doc = r"Clears the field bit"]
+ #[inline(always)]
+ pub fn clear_bit(self) -> &'a mut W {
+ self.bit(false)
+ }
+ #[doc = r"Writes raw bits to the field"]
+ #[inline(always)]
+ pub fn bit(self, value: bool) -> &'a mut W {
+ self.w.bits = (self.w.bits & !(0x01 << 24)) | ((value as u32 & 0x01) << 24);
+ self.w
+ }
+}
+#[doc = "Field `EVD9` reader - Channel 9 Event Detection Interrupt Enable"]
+pub struct EVD9_R(crate::FieldReader<bool, bool>);
+impl EVD9_R {
+ pub(crate) fn new(bits: bool) -> Self {
+ EVD9_R(crate::FieldReader::new(bits))
+ }
+}
+impl core::ops::Deref for EVD9_R {
+ type Target = crate::FieldReader<bool, bool>;
+ #[inline(always)]
+ fn deref(&self) -> &Self::Target {
+ &self.0
+ }
+}
+#[doc = "Field `EVD9` writer - Channel 9 Event Detection Interrupt Enable"]
+pub struct EVD9_W<'a> {
+ w: &'a mut W,
+}
+impl<'a> EVD9_W<'a> {
+ #[doc = r"Sets the field bit"]
+ #[inline(always)]
+ pub fn set_bit(self) -> &'a mut W {
+ self.bit(true)
+ }
+ #[doc = r"Clears the field bit"]
+ #[inline(always)]
+ pub fn clear_bit(self) -> &'a mut W {
+ self.bit(false)
+ }
+ #[doc = r"Writes raw bits to the field"]
+ #[inline(always)]
+ pub fn bit(self, value: bool) -> &'a mut W {
+ self.w.bits = (self.w.bits & !(0x01 << 25)) | ((value as u32 & 0x01) << 25);
+ self.w
+ }
+}
+#[doc = "Field `EVD10` reader - Channel 10 Event Detection Interrupt Enable"]
+pub struct EVD10_R(crate::FieldReader<bool, bool>);
+impl EVD10_R {
+ pub(crate) fn new(bits: bool) -> Self {
+ EVD10_R(crate::FieldReader::new(bits))
+ }
+}
+impl core::ops::Deref for EVD10_R {
+ type Target = crate::FieldReader<bool, bool>;
+ #[inline(always)]
+ fn deref(&self) -> &Self::Target {
+ &self.0
+ }
+}
+#[doc = "Field `EVD10` writer - Channel 10 Event Detection Interrupt Enable"]
+pub struct EVD10_W<'a> {
+ w: &'a mut W,
+}
+impl<'a> EVD10_W<'a> {
+ #[doc = r"Sets the field bit"]
+ #[inline(always)]
+ pub fn set_bit(self) -> &'a mut W {
+ self.bit(true)
+ }
+ #[doc = r"Clears the field bit"]
+ #[inline(always)]
+ pub fn clear_bit(self) -> &'a mut W {
+ self.bit(false)
+ }
+ #[doc = r"Writes raw bits to the field"]
+ #[inline(always)]
+ pub fn bit(self, value: bool) -> &'a mut W {
+ self.w.bits = (self.w.bits & !(0x01 << 26)) | ((value as u32 & 0x01) << 26);
+ self.w
+ }
+}
+#[doc = "Field `EVD11` reader - Channel 11 Event Detection Interrupt Enable"]
+pub struct EVD11_R(crate::FieldReader<bool, bool>);
+impl EVD11_R {
+ pub(crate) fn new(bits: bool) -> Self {
+ EVD11_R(crate::FieldReader::new(bits))
+ }
+}
+impl core::ops::Deref for EVD11_R {
+ type Target = crate::FieldReader<bool, bool>;
+ #[inline(always)]
+ fn deref(&self) -> &Self::Target {
+ &self.0
+ }
+}
+#[doc = "Field `EVD11` writer - Channel 11 Event Detection Interrupt Enable"]
+pub struct EVD11_W<'a> {
+ w: &'a mut W,
+}
+impl<'a> EVD11_W<'a> {
+ #[doc = r"Sets the field bit"]
+ #[inline(always)]
+ pub fn set_bit(self) -> &'a mut W {
+ self.bit(true)
+ }
+ #[doc = r"Clears the field bit"]
+ #[inline(always)]
+ pub fn clear_bit(self) -> &'a mut W {
+ self.bit(false)
+ }
+ #[doc = r"Writes raw bits to the field"]
+ #[inline(always)]
+ pub fn bit(self, value: bool) -> &'a mut W {
+ self.w.bits = (self.w.bits & !(0x01 << 27)) | ((value as u32 & 0x01) << 27);
+ self.w
+ }
+}
+impl R {
+ #[doc = "Bit 0 - Channel 0 Overrun Interrupt Enable"]
+ #[inline(always)]
+ pub fn ovr0(&self) -> OVR0_R {
+ OVR0_R::new((self.bits & 0x01) != 0)
+ }
+ #[doc = "Bit 1 - Channel 1 Overrun Interrupt Enable"]
+ #[inline(always)]
+ pub fn ovr1(&self) -> OVR1_R {
+ OVR1_R::new(((self.bits >> 1) & 0x01) != 0)
+ }
+ #[doc = "Bit 2 - Channel 2 Overrun Interrupt Enable"]
+ #[inline(always)]
+ pub fn ovr2(&self) -> OVR2_R {
+ OVR2_R::new(((self.bits >> 2) & 0x01) != 0)
+ }
+ #[doc = "Bit 3 - Channel 3 Overrun Interrupt Enable"]
+ #[inline(always)]
+ pub fn ovr3(&self) -> OVR3_R {
+ OVR3_R::new(((self.bits >> 3) & 0x01) != 0)
+ }
+ #[doc = "Bit 4 - Channel 4 Overrun Interrupt Enable"]
+ #[inline(always)]
+ pub fn ovr4(&self) -> OVR4_R {
+ OVR4_R::new(((self.bits >> 4) & 0x01) != 0)
+ }
+ #[doc = "Bit 5 - Channel 5 Overrun Interrupt Enable"]
+ #[inline(always)]
+ pub fn ovr5(&self) -> OVR5_R {
+ OVR5_R::new(((self.bits >> 5) & 0x01) != 0)
+ }
+ #[doc = "Bit 6 - Channel 6 Overrun Interrupt Enable"]
+ #[inline(always)]
+ pub fn ovr6(&self) -> OVR6_R {
+ OVR6_R::new(((self.bits >> 6) & 0x01) != 0)
+ }
+ #[doc = "Bit 7 - Channel 7 Overrun Interrupt Enable"]
+ #[inline(always)]
+ pub fn ovr7(&self) -> OVR7_R {
+ OVR7_R::new(((self.bits >> 7) & 0x01) != 0)
+ }
+ #[doc = "Bit 8 - Channel 8 Overrun Interrupt Enable"]
+ #[inline(always)]
+ pub fn ovr8(&self) -> OVR8_R {
+ OVR8_R::new(((self.bits >> 8) & 0x01) != 0)
+ }
+ #[doc = "Bit 9 - Channel 9 Overrun Interrupt Enable"]
+ #[inline(always)]
+ pub fn ovr9(&self) -> OVR9_R {
+ OVR9_R::new(((self.bits >> 9) & 0x01) != 0)
+ }
+ #[doc = "Bit 10 - Channel 10 Overrun Interrupt Enable"]
+ #[inline(always)]
+ pub fn ovr10(&self) -> OVR10_R {
+ OVR10_R::new(((self.bits >> 10) & 0x01) != 0)
+ }
+ #[doc = "Bit 11 - Channel 11 Overrun Interrupt Enable"]
+ #[inline(always)]
+ pub fn ovr11(&self) -> OVR11_R {
+ OVR11_R::new(((self.bits >> 11) & 0x01) != 0)
+ }
+ #[doc = "Bit 16 - Channel 0 Event Detection Interrupt Enable"]
+ #[inline(always)]
+ pub fn evd0(&self) -> EVD0_R {
+ EVD0_R::new(((self.bits >> 16) & 0x01) != 0)
+ }
+ #[doc = "Bit 17 - Channel 1 Event Detection Interrupt Enable"]
+ #[inline(always)]
+ pub fn evd1(&self) -> EVD1_R {
+ EVD1_R::new(((self.bits >> 17) & 0x01) != 0)
+ }
+ #[doc = "Bit 18 - Channel 2 Event Detection Interrupt Enable"]
+ #[inline(always)]
+ pub fn evd2(&self) -> EVD2_R {
+ EVD2_R::new(((self.bits >> 18) & 0x01) != 0)
+ }
+ #[doc = "Bit 19 - Channel 3 Event Detection Interrupt Enable"]
+ #[inline(always)]
+ pub fn evd3(&self) -> EVD3_R {
+ EVD3_R::new(((self.bits >> 19) & 0x01) != 0)
+ }
+ #[doc = "Bit 20 - Channel 4 Event Detection Interrupt Enable"]
+ #[inline(always)]
+ pub fn evd4(&self) -> EVD4_R {
+ EVD4_R::new(((self.bits >> 20) & 0x01) != 0)
+ }
+ #[doc = "Bit 21 - Channel 5 Event Detection Interrupt Enable"]
+ #[inline(always)]
+ pub fn evd5(&self) -> EVD5_R {
+ EVD5_R::new(((self.bits >> 21) & 0x01) != 0)
+ }
+ #[doc = "Bit 22 - Channel 6 Event Detection Interrupt Enable"]
+ #[inline(always)]
+ pub fn evd6(&self) -> EVD6_R {
+ EVD6_R::new(((self.bits >> 22) & 0x01) != 0)
+ }
+ #[doc = "Bit 23 - Channel 7 Event Detection Interrupt Enable"]
+ #[inline(always)]
+ pub fn evd7(&self) -> EVD7_R {
+ EVD7_R::new(((self.bits >> 23) & 0x01) != 0)
+ }
+ #[doc = "Bit 24 - Channel 8 Event Detection Interrupt Enable"]
+ #[inline(always)]
+ pub fn evd8(&self) -> EVD8_R {
+ EVD8_R::new(((self.bits >> 24) & 0x01) != 0)
+ }
+ #[doc = "Bit 25 - Channel 9 Event Detection Interrupt Enable"]
+ #[inline(always)]
+ pub fn evd9(&self) -> EVD9_R {
+ EVD9_R::new(((self.bits >> 25) & 0x01) != 0)
+ }
+ #[doc = "Bit 26 - Channel 10 Event Detection Interrupt Enable"]
+ #[inline(always)]
+ pub fn evd10(&self) -> EVD10_R {
+ EVD10_R::new(((self.bits >> 26) & 0x01) != 0)
+ }
+ #[doc = "Bit 27 - Channel 11 Event Detection Interrupt Enable"]
+ #[inline(always)]
+ pub fn evd11(&self) -> EVD11_R {
+ EVD11_R::new(((self.bits >> 27) & 0x01) != 0)
+ }
+}
+impl W {
+ #[doc = "Bit 0 - Channel 0 Overrun Interrupt Enable"]
+ #[inline(always)]
+ pub fn ovr0(&mut self) -> OVR0_W {
+ OVR0_W { w: self }
+ }
+ #[doc = "Bit 1 - Channel 1 Overrun Interrupt Enable"]
+ #[inline(always)]
+ pub fn ovr1(&mut self) -> OVR1_W {
+ OVR1_W { w: self }
+ }
+ #[doc = "Bit 2 - Channel 2 Overrun Interrupt Enable"]
+ #[inline(always)]
+ pub fn ovr2(&mut self) -> OVR2_W {
+ OVR2_W { w: self }
+ }
+ #[doc = "Bit 3 - Channel 3 Overrun Interrupt Enable"]
+ #[inline(always)]
+ pub fn ovr3(&mut self) -> OVR3_W {
+ OVR3_W { w: self }
+ }
+ #[doc = "Bit 4 - Channel 4 Overrun Interrupt Enable"]
+ #[inline(always)]
+ pub fn ovr4(&mut self) -> OVR4_W {
+ OVR4_W { w: self }
+ }
+ #[doc = "Bit 5 - Channel 5 Overrun Interrupt Enable"]
+ #[inline(always)]
+ pub fn ovr5(&mut self) -> OVR5_W {
+ OVR5_W { w: self }
+ }
+ #[doc = "Bit 6 - Channel 6 Overrun Interrupt Enable"]
+ #[inline(always)]
+ pub fn ovr6(&mut self) -> OVR6_W {
+ OVR6_W { w: self }
+ }
+ #[doc = "Bit 7 - Channel 7 Overrun Interrupt Enable"]
+ #[inline(always)]
+ pub fn ovr7(&mut self) -> OVR7_W {
+ OVR7_W { w: self }
+ }
+ #[doc = "Bit 8 - Channel 8 Overrun Interrupt Enable"]
+ #[inline(always)]
+ pub fn ovr8(&mut self) -> OVR8_W {
+ OVR8_W { w: self }
+ }
+ #[doc = "Bit 9 - Channel 9 Overrun Interrupt Enable"]
+ #[inline(always)]
+ pub fn ovr9(&mut self) -> OVR9_W {
+ OVR9_W { w: self }
+ }
+ #[doc = "Bit 10 - Channel 10 Overrun Interrupt Enable"]
+ #[inline(always)]
+ pub fn ovr10(&mut self) -> OVR10_W {
+ OVR10_W { w: self }
+ }
+ #[doc = "Bit 11 - Channel 11 Overrun Interrupt Enable"]
+ #[inline(always)]
+ pub fn ovr11(&mut self) -> OVR11_W {
+ OVR11_W { w: self }
+ }
+ #[doc = "Bit 16 - Channel 0 Event Detection Interrupt Enable"]
+ #[inline(always)]
+ pub fn evd0(&mut self) -> EVD0_W {
+ EVD0_W { w: self }
+ }
+ #[doc = "Bit 17 - Channel 1 Event Detection Interrupt Enable"]
+ #[inline(always)]
+ pub fn evd1(&mut self) -> EVD1_W {
+ EVD1_W { w: self }
+ }
+ #[doc = "Bit 18 - Channel 2 Event Detection Interrupt Enable"]
+ #[inline(always)]
+ pub fn evd2(&mut self) -> EVD2_W {
+ EVD2_W { w: self }
+ }
+ #[doc = "Bit 19 - Channel 3 Event Detection Interrupt Enable"]
+ #[inline(always)]
+ pub fn evd3(&mut self) -> EVD3_W {
+ EVD3_W { w: self }
+ }
+ #[doc = "Bit 20 - Channel 4 Event Detection Interrupt Enable"]
+ #[inline(always)]
+ pub fn evd4(&mut self) -> EVD4_W {
+ EVD4_W { w: self }
+ }
+ #[doc = "Bit 21 - Channel 5 Event Detection Interrupt Enable"]
+ #[inline(always)]
+ pub fn evd5(&mut self) -> EVD5_W {
+ EVD5_W { w: self }
+ }
+ #[doc = "Bit 22 - Channel 6 Event Detection Interrupt Enable"]
+ #[inline(always)]
+ pub fn evd6(&mut self) -> EVD6_W {
+ EVD6_W { w: self }
+ }
+ #[doc = "Bit 23 - Channel 7 Event Detection Interrupt Enable"]
+ #[inline(always)]
+ pub fn evd7(&mut self) -> EVD7_W {
+ EVD7_W { w: self }
+ }
+ #[doc = "Bit 24 - Channel 8 Event Detection Interrupt Enable"]
+ #[inline(always)]
+ pub fn evd8(&mut self) -> EVD8_W {
+ EVD8_W { w: self }
+ }
+ #[doc = "Bit 25 - Channel 9 Event Detection Interrupt Enable"]
+ #[inline(always)]
+ pub fn evd9(&mut self) -> EVD9_W {
+ EVD9_W { w: self }
+ }
+ #[doc = "Bit 26 - Channel 10 Event Detection Interrupt Enable"]
+ #[inline(always)]
+ pub fn evd10(&mut self) -> EVD10_W {
+ EVD10_W { w: self }
+ }
+ #[doc = "Bit 27 - Channel 11 Event Detection Interrupt Enable"]
+ #[inline(always)]
+ pub fn evd11(&mut self) -> EVD11_W {
+ EVD11_W { w: self }
+ }
+ #[doc = "Writes raw bits to the register."]
+ #[inline(always)]
+ pub unsafe fn bits(&mut self, bits: u32) -> &mut Self {
+ self.0.bits(bits);
+ self
+ }
+}
+#[doc = "Interrupt Enable Clear\n\nThis register you can [`read`](crate::generic::Reg::read), [`write_with_zero`](crate::generic::Reg::write_with_zero), [`reset`](crate::generic::Reg::reset), [`write`](crate::generic::Reg::write), [`modify`](crate::generic::Reg::modify). See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [intenclr](index.html) module"]
+pub struct INTENCLR_SPEC;
+impl crate::RegisterSpec for INTENCLR_SPEC {
+ type Ux = u32;
+}
+#[doc = "`read()` method returns [intenclr::R](R) reader structure"]
+impl crate::Readable for INTENCLR_SPEC {
+ type Reader = R;
+}
+#[doc = "`write(|w| ..)` method takes [intenclr::W](W) writer structure"]
+impl crate::Writable for INTENCLR_SPEC {
+ type Writer = W;
+}
+#[doc = "`reset()` method sets INTENCLR to value 0"]
+impl crate::Resettable for INTENCLR_SPEC {
+ #[inline(always)]
+ fn reset_value() -> Self::Ux {
+ 0
+ }
+}
diff --git a/src/evsys/intenset.rs b/src/evsys/intenset.rs
new file mode 100644
index 0000000..deb4b34
--- /dev/null
+++ b/src/evsys/intenset.rs
@@ -0,0 +1,1170 @@
+#[doc = "Register `INTENSET` reader"]
+pub struct R(crate::R<INTENSET_SPEC>);
+impl core::ops::Deref for R {
+ type Target = crate::R<INTENSET_SPEC>;
+ #[inline(always)]
+ fn deref(&self) -> &Self::Target {
+ &self.0
+ }
+}
+impl From<crate::R<INTENSET_SPEC>> for R {
+ #[inline(always)]
+ fn from(reader: crate::R<INTENSET_SPEC>) -> Self {
+ R(reader)
+ }
+}
+#[doc = "Register `INTENSET` writer"]
+pub struct W(crate::W<INTENSET_SPEC>);
+impl core::ops::Deref for W {
+ type Target = crate::W<INTENSET_SPEC>;
+ #[inline(always)]
+ fn deref(&self) -> &Self::Target {
+ &self.0
+ }
+}
+impl core::ops::DerefMut for W {
+ #[inline(always)]
+ fn deref_mut(&mut self) -> &mut Self::Target {
+ &mut self.0
+ }
+}
+impl From<crate::W<INTENSET_SPEC>> for W {
+ #[inline(always)]
+ fn from(writer: crate::W<INTENSET_SPEC>) -> Self {
+ W(writer)
+ }
+}
+#[doc = "Field `OVR0` reader - Channel 0 Overrun Interrupt Enable"]
+pub struct OVR0_R(crate::FieldReader<bool, bool>);
+impl OVR0_R {
+ pub(crate) fn new(bits: bool) -> Self {
+ OVR0_R(crate::FieldReader::new(bits))
+ }
+}
+impl core::ops::Deref for OVR0_R {
+ type Target = crate::FieldReader<bool, bool>;
+ #[inline(always)]
+ fn deref(&self) -> &Self::Target {
+ &self.0
+ }
+}
+#[doc = "Field `OVR0` writer - Channel 0 Overrun Interrupt Enable"]
+pub struct OVR0_W<'a> {
+ w: &'a mut W,
+}
+impl<'a> OVR0_W<'a> {
+ #[doc = r"Sets the field bit"]
+ #[inline(always)]
+ pub fn set_bit(self) -> &'a mut W {
+ self.bit(true)
+ }
+ #[doc = r"Clears the field bit"]
+ #[inline(always)]
+ pub fn clear_bit(self) -> &'a mut W {
+ self.bit(false)
+ }
+ #[doc = r"Writes raw bits to the field"]
+ #[inline(always)]
+ pub fn bit(self, value: bool) -> &'a mut W {
+ self.w.bits = (self.w.bits & !0x01) | (value as u32 & 0x01);
+ self.w
+ }
+}
+#[doc = "Field `OVR1` reader - Channel 1 Overrun Interrupt Enable"]
+pub struct OVR1_R(crate::FieldReader<bool, bool>);
+impl OVR1_R {
+ pub(crate) fn new(bits: bool) -> Self {
+ OVR1_R(crate::FieldReader::new(bits))
+ }
+}
+impl core::ops::Deref for OVR1_R {
+ type Target = crate::FieldReader<bool, bool>;
+ #[inline(always)]
+ fn deref(&self) -> &Self::Target {
+ &self.0
+ }
+}
+#[doc = "Field `OVR1` writer - Channel 1 Overrun Interrupt Enable"]
+pub struct OVR1_W<'a> {
+ w: &'a mut W,
+}
+impl<'a> OVR1_W<'a> {
+ #[doc = r"Sets the field bit"]
+ #[inline(always)]
+ pub fn set_bit(self) -> &'a mut W {
+ self.bit(true)
+ }
+ #[doc = r"Clears the field bit"]
+ #[inline(always)]
+ pub fn clear_bit(self) -> &'a mut W {
+ self.bit(false)
+ }
+ #[doc = r"Writes raw bits to the field"]
+ #[inline(always)]
+ pub fn bit(self, value: bool) -> &'a mut W {
+ self.w.bits = (self.w.bits & !(0x01 << 1)) | ((value as u32 & 0x01) << 1);
+ self.w
+ }
+}
+#[doc = "Field `OVR2` reader - Channel 2 Overrun Interrupt Enable"]
+pub struct OVR2_R(crate::FieldReader<bool, bool>);
+impl OVR2_R {
+ pub(crate) fn new(bits: bool) -> Self {
+ OVR2_R(crate::FieldReader::new(bits))
+ }
+}
+impl core::ops::Deref for OVR2_R {
+ type Target = crate::FieldReader<bool, bool>;
+ #[inline(always)]
+ fn deref(&self) -> &Self::Target {
+ &self.0
+ }
+}
+#[doc = "Field `OVR2` writer - Channel 2 Overrun Interrupt Enable"]
+pub struct OVR2_W<'a> {
+ w: &'a mut W,
+}
+impl<'a> OVR2_W<'a> {
+ #[doc = r"Sets the field bit"]
+ #[inline(always)]
+ pub fn set_bit(self) -> &'a mut W {
+ self.bit(true)
+ }
+ #[doc = r"Clears the field bit"]
+ #[inline(always)]
+ pub fn clear_bit(self) -> &'a mut W {
+ self.bit(false)
+ }
+ #[doc = r"Writes raw bits to the field"]
+ #[inline(always)]
+ pub fn bit(self, value: bool) -> &'a mut W {
+ self.w.bits = (self.w.bits & !(0x01 << 2)) | ((value as u32 & 0x01) << 2);
+ self.w
+ }
+}
+#[doc = "Field `OVR3` reader - Channel 3 Overrun Interrupt Enable"]
+pub struct OVR3_R(crate::FieldReader<bool, bool>);
+impl OVR3_R {
+ pub(crate) fn new(bits: bool) -> Self {
+ OVR3_R(crate::FieldReader::new(bits))
+ }
+}
+impl core::ops::Deref for OVR3_R {
+ type Target = crate::FieldReader<bool, bool>;
+ #[inline(always)]
+ fn deref(&self) -> &Self::Target {
+ &self.0
+ }
+}
+#[doc = "Field `OVR3` writer - Channel 3 Overrun Interrupt Enable"]
+pub struct OVR3_W<'a> {
+ w: &'a mut W,
+}
+impl<'a> OVR3_W<'a> {
+ #[doc = r"Sets the field bit"]
+ #[inline(always)]
+ pub fn set_bit(self) -> &'a mut W {
+ self.bit(true)
+ }
+ #[doc = r"Clears the field bit"]
+ #[inline(always)]
+ pub fn clear_bit(self) -> &'a mut W {
+ self.bit(false)
+ }
+ #[doc = r"Writes raw bits to the field"]
+ #[inline(always)]
+ pub fn bit(self, value: bool) -> &'a mut W {
+ self.w.bits = (self.w.bits & !(0x01 << 3)) | ((value as u32 & 0x01) << 3);
+ self.w
+ }
+}
+#[doc = "Field `OVR4` reader - Channel 4 Overrun Interrupt Enable"]
+pub struct OVR4_R(crate::FieldReader<bool, bool>);
+impl OVR4_R {
+ pub(crate) fn new(bits: bool) -> Self {
+ OVR4_R(crate::FieldReader::new(bits))
+ }
+}
+impl core::ops::Deref for OVR4_R {
+ type Target = crate::FieldReader<bool, bool>;
+ #[inline(always)]
+ fn deref(&self) -> &Self::Target {
+ &self.0
+ }
+}
+#[doc = "Field `OVR4` writer - Channel 4 Overrun Interrupt Enable"]
+pub struct OVR4_W<'a> {
+ w: &'a mut W,
+}
+impl<'a> OVR4_W<'a> {
+ #[doc = r"Sets the field bit"]
+ #[inline(always)]
+ pub fn set_bit(self) -> &'a mut W {
+ self.bit(true)
+ }
+ #[doc = r"Clears the field bit"]
+ #[inline(always)]
+ pub fn clear_bit(self) -> &'a mut W {
+ self.bit(false)
+ }
+ #[doc = r"Writes raw bits to the field"]
+ #[inline(always)]
+ pub fn bit(self, value: bool) -> &'a mut W {
+ self.w.bits = (self.w.bits & !(0x01 << 4)) | ((value as u32 & 0x01) << 4);
+ self.w
+ }
+}
+#[doc = "Field `OVR5` reader - Channel 5 Overrun Interrupt Enable"]
+pub struct OVR5_R(crate::FieldReader<bool, bool>);
+impl OVR5_R {
+ pub(crate) fn new(bits: bool) -> Self {
+ OVR5_R(crate::FieldReader::new(bits))
+ }
+}
+impl core::ops::Deref for OVR5_R {
+ type Target = crate::FieldReader<bool, bool>;
+ #[inline(always)]
+ fn deref(&self) -> &Self::Target {
+ &self.0
+ }
+}
+#[doc = "Field `OVR5` writer - Channel 5 Overrun Interrupt Enable"]
+pub struct OVR5_W<'a> {
+ w: &'a mut W,
+}
+impl<'a> OVR5_W<'a> {
+ #[doc = r"Sets the field bit"]
+ #[inline(always)]
+ pub fn set_bit(self) -> &'a mut W {
+ self.bit(true)
+ }
+ #[doc = r"Clears the field bit"]
+ #[inline(always)]
+ pub fn clear_bit(self) -> &'a mut W {
+ self.bit(false)
+ }
+ #[doc = r"Writes raw bits to the field"]
+ #[inline(always)]
+ pub fn bit(self, value: bool) -> &'a mut W {
+ self.w.bits = (self.w.bits & !(0x01 << 5)) | ((value as u32 & 0x01) << 5);
+ self.w
+ }
+}
+#[doc = "Field `OVR6` reader - Channel 6 Overrun Interrupt Enable"]
+pub struct OVR6_R(crate::FieldReader<bool, bool>);
+impl OVR6_R {
+ pub(crate) fn new(bits: bool) -> Self {
+ OVR6_R(crate::FieldReader::new(bits))
+ }
+}
+impl core::ops::Deref for OVR6_R {
+ type Target = crate::FieldReader<bool, bool>;
+ #[inline(always)]
+ fn deref(&self) -> &Self::Target {
+ &self.0
+ }
+}
+#[doc = "Field `OVR6` writer - Channel 6 Overrun Interrupt Enable"]
+pub struct OVR6_W<'a> {
+ w: &'a mut W,
+}
+impl<'a> OVR6_W<'a> {
+ #[doc = r"Sets the field bit"]
+ #[inline(always)]
+ pub fn set_bit(self) -> &'a mut W {
+ self.bit(true)
+ }
+ #[doc = r"Clears the field bit"]
+ #[inline(always)]
+ pub fn clear_bit(self) -> &'a mut W {
+ self.bit(false)
+ }
+ #[doc = r"Writes raw bits to the field"]
+ #[inline(always)]
+ pub fn bit(self, value: bool) -> &'a mut W {
+ self.w.bits = (self.w.bits & !(0x01 << 6)) | ((value as u32 & 0x01) << 6);
+ self.w
+ }
+}
+#[doc = "Field `OVR7` reader - Channel 7 Overrun Interrupt Enable"]
+pub struct OVR7_R(crate::FieldReader<bool, bool>);
+impl OVR7_R {
+ pub(crate) fn new(bits: bool) -> Self {
+ OVR7_R(crate::FieldReader::new(bits))
+ }
+}
+impl core::ops::Deref for OVR7_R {
+ type Target = crate::FieldReader<bool, bool>;
+ #[inline(always)]
+ fn deref(&self) -> &Self::Target {
+ &self.0
+ }
+}
+#[doc = "Field `OVR7` writer - Channel 7 Overrun Interrupt Enable"]
+pub struct OVR7_W<'a> {
+ w: &'a mut W,
+}
+impl<'a> OVR7_W<'a> {
+ #[doc = r"Sets the field bit"]
+ #[inline(always)]
+ pub fn set_bit(self) -> &'a mut W {
+ self.bit(true)
+ }
+ #[doc = r"Clears the field bit"]
+ #[inline(always)]
+ pub fn clear_bit(self) -> &'a mut W {
+ self.bit(false)
+ }
+ #[doc = r"Writes raw bits to the field"]
+ #[inline(always)]
+ pub fn bit(self, value: bool) -> &'a mut W {
+ self.w.bits = (self.w.bits & !(0x01 << 7)) | ((value as u32 & 0x01) << 7);
+ self.w
+ }
+}
+#[doc = "Field `OVR8` reader - Channel 8 Overrun Interrupt Enable"]
+pub struct OVR8_R(crate::FieldReader<bool, bool>);
+impl OVR8_R {
+ pub(crate) fn new(bits: bool) -> Self {
+ OVR8_R(crate::FieldReader::new(bits))
+ }
+}
+impl core::ops::Deref for OVR8_R {
+ type Target = crate::FieldReader<bool, bool>;
+ #[inline(always)]
+ fn deref(&self) -> &Self::Target {
+ &self.0
+ }
+}
+#[doc = "Field `OVR8` writer - Channel 8 Overrun Interrupt Enable"]
+pub struct OVR8_W<'a> {
+ w: &'a mut W,
+}
+impl<'a> OVR8_W<'a> {
+ #[doc = r"Sets the field bit"]
+ #[inline(always)]
+ pub fn set_bit(self) -> &'a mut W {
+ self.bit(true)
+ }
+ #[doc = r"Clears the field bit"]
+ #[inline(always)]
+ pub fn clear_bit(self) -> &'a mut W {
+ self.bit(false)
+ }
+ #[doc = r"Writes raw bits to the field"]
+ #[inline(always)]
+ pub fn bit(self, value: bool) -> &'a mut W {
+ self.w.bits = (self.w.bits & !(0x01 << 8)) | ((value as u32 & 0x01) << 8);
+ self.w
+ }
+}
+#[doc = "Field `OVR9` reader - Channel 9 Overrun Interrupt Enable"]
+pub struct OVR9_R(crate::FieldReader<bool, bool>);
+impl OVR9_R {
+ pub(crate) fn new(bits: bool) -> Self {
+ OVR9_R(crate::FieldReader::new(bits))
+ }
+}
+impl core::ops::Deref for OVR9_R {
+ type Target = crate::FieldReader<bool, bool>;
+ #[inline(always)]
+ fn deref(&self) -> &Self::Target {
+ &self.0
+ }
+}
+#[doc = "Field `OVR9` writer - Channel 9 Overrun Interrupt Enable"]
+pub struct OVR9_W<'a> {
+ w: &'a mut W,
+}
+impl<'a> OVR9_W<'a> {
+ #[doc = r"Sets the field bit"]
+ #[inline(always)]
+ pub fn set_bit(self) -> &'a mut W {
+ self.bit(true)
+ }
+ #[doc = r"Clears the field bit"]
+ #[inline(always)]
+ pub fn clear_bit(self) -> &'a mut W {
+ self.bit(false)
+ }
+ #[doc = r"Writes raw bits to the field"]
+ #[inline(always)]
+ pub fn bit(self, value: bool) -> &'a mut W {
+ self.w.bits = (self.w.bits & !(0x01 << 9)) | ((value as u32 & 0x01) << 9);
+ self.w
+ }
+}
+#[doc = "Field `OVR10` reader - Channel 10 Overrun Interrupt Enable"]
+pub struct OVR10_R(crate::FieldReader<bool, bool>);
+impl OVR10_R {
+ pub(crate) fn new(bits: bool) -> Self {
+ OVR10_R(crate::FieldReader::new(bits))
+ }
+}
+impl core::ops::Deref for OVR10_R {
+ type Target = crate::FieldReader<bool, bool>;
+ #[inline(always)]
+ fn deref(&self) -> &Self::Target {
+ &self.0
+ }
+}
+#[doc = "Field `OVR10` writer - Channel 10 Overrun Interrupt Enable"]
+pub struct OVR10_W<'a> {
+ w: &'a mut W,
+}
+impl<'a> OVR10_W<'a> {
+ #[doc = r"Sets the field bit"]
+ #[inline(always)]
+ pub fn set_bit(self) -> &'a mut W {
+ self.bit(true)
+ }
+ #[doc = r"Clears the field bit"]
+ #[inline(always)]
+ pub fn clear_bit(self) -> &'a mut W {
+ self.bit(false)
+ }
+ #[doc = r"Writes raw bits to the field"]
+ #[inline(always)]
+ pub fn bit(self, value: bool) -> &'a mut W {
+ self.w.bits = (self.w.bits & !(0x01 << 10)) | ((value as u32 & 0x01) << 10);
+ self.w
+ }
+}
+#[doc = "Field `OVR11` reader - Channel 11 Overrun Interrupt Enable"]
+pub struct OVR11_R(crate::FieldReader<bool, bool>);
+impl OVR11_R {
+ pub(crate) fn new(bits: bool) -> Self {
+ OVR11_R(crate::FieldReader::new(bits))
+ }
+}
+impl core::ops::Deref for OVR11_R {
+ type Target = crate::FieldReader<bool, bool>;
+ #[inline(always)]
+ fn deref(&self) -> &Self::Target {
+ &self.0
+ }
+}
+#[doc = "Field `OVR11` writer - Channel 11 Overrun Interrupt Enable"]
+pub struct OVR11_W<'a> {
+ w: &'a mut W,
+}
+impl<'a> OVR11_W<'a> {
+ #[doc = r"Sets the field bit"]
+ #[inline(always)]
+ pub fn set_bit(self) -> &'a mut W {
+ self.bit(true)
+ }
+ #[doc = r"Clears the field bit"]
+ #[inline(always)]
+ pub fn clear_bit(self) -> &'a mut W {
+ self.bit(false)
+ }
+ #[doc = r"Writes raw bits to the field"]
+ #[inline(always)]
+ pub fn bit(self, value: bool) -> &'a mut W {
+ self.w.bits = (self.w.bits & !(0x01 << 11)) | ((value as u32 & 0x01) << 11);
+ self.w
+ }
+}
+#[doc = "Field `EVD0` reader - Channel 0 Event Detection Interrupt Enable"]
+pub struct EVD0_R(crate::FieldReader<bool, bool>);
+impl EVD0_R {
+ pub(crate) fn new(bits: bool) -> Self {
+ EVD0_R(crate::FieldReader::new(bits))
+ }
+}
+impl core::ops::Deref for EVD0_R {
+ type Target = crate::FieldReader<bool, bool>;
+ #[inline(always)]
+ fn deref(&self) -> &Self::Target {
+ &self.0
+ }
+}
+#[doc = "Field `EVD0` writer - Channel 0 Event Detection Interrupt Enable"]
+pub struct EVD0_W<'a> {
+ w: &'a mut W,
+}
+impl<'a> EVD0_W<'a> {
+ #[doc = r"Sets the field bit"]
+ #[inline(always)]
+ pub fn set_bit(self) -> &'a mut W {
+ self.bit(true)
+ }
+ #[doc = r"Clears the field bit"]
+ #[inline(always)]
+ pub fn clear_bit(self) -> &'a mut W {
+ self.bit(false)
+ }
+ #[doc = r"Writes raw bits to the field"]
+ #[inline(always)]
+ pub fn bit(self, value: bool) -> &'a mut W {
+ self.w.bits = (self.w.bits & !(0x01 << 16)) | ((value as u32 & 0x01) << 16);
+ self.w
+ }
+}
+#[doc = "Field `EVD1` reader - Channel 1 Event Detection Interrupt Enable"]
+pub struct EVD1_R(crate::FieldReader<bool, bool>);
+impl EVD1_R {
+ pub(crate) fn new(bits: bool) -> Self {
+ EVD1_R(crate::FieldReader::new(bits))
+ }
+}
+impl core::ops::Deref for EVD1_R {
+ type Target = crate::FieldReader<bool, bool>;
+ #[inline(always)]
+ fn deref(&self) -> &Self::Target {
+ &self.0
+ }
+}
+#[doc = "Field `EVD1` writer - Channel 1 Event Detection Interrupt Enable"]
+pub struct EVD1_W<'a> {
+ w: &'a mut W,
+}
+impl<'a> EVD1_W<'a> {
+ #[doc = r"Sets the field bit"]
+ #[inline(always)]
+ pub fn set_bit(self) -> &'a mut W {
+ self.bit(true)
+ }
+ #[doc = r"Clears the field bit"]
+ #[inline(always)]
+ pub fn clear_bit(self) -> &'a mut W {
+ self.bit(false)
+ }
+ #[doc = r"Writes raw bits to the field"]
+ #[inline(always)]
+ pub fn bit(self, value: bool) -> &'a mut W {
+ self.w.bits = (self.w.bits & !(0x01 << 17)) | ((value as u32 & 0x01) << 17);
+ self.w
+ }
+}
+#[doc = "Field `EVD2` reader - Channel 2 Event Detection Interrupt Enable"]
+pub struct EVD2_R(crate::FieldReader<bool, bool>);
+impl EVD2_R {
+ pub(crate) fn new(bits: bool) -> Self {
+ EVD2_R(crate::FieldReader::new(bits))
+ }
+}
+impl core::ops::Deref for EVD2_R {
+ type Target = crate::FieldReader<bool, bool>;
+ #[inline(always)]
+ fn deref(&self) -> &Self::Target {
+ &self.0
+ }
+}
+#[doc = "Field `EVD2` writer - Channel 2 Event Detection Interrupt Enable"]
+pub struct EVD2_W<'a> {
+ w: &'a mut W,
+}
+impl<'a> EVD2_W<'a> {
+ #[doc = r"Sets the field bit"]
+ #[inline(always)]
+ pub fn set_bit(self) -> &'a mut W {
+ self.bit(true)
+ }
+ #[doc = r"Clears the field bit"]
+ #[inline(always)]
+ pub fn clear_bit(self) -> &'a mut W {
+ self.bit(false)
+ }
+ #[doc = r"Writes raw bits to the field"]
+ #[inline(always)]
+ pub fn bit(self, value: bool) -> &'a mut W {
+ self.w.bits = (self.w.bits & !(0x01 << 18)) | ((value as u32 & 0x01) << 18);
+ self.w
+ }
+}
+#[doc = "Field `EVD3` reader - Channel 3 Event Detection Interrupt Enable"]
+pub struct EVD3_R(crate::FieldReader<bool, bool>);
+impl EVD3_R {
+ pub(crate) fn new(bits: bool) -> Self {
+ EVD3_R(crate::FieldReader::new(bits))
+ }
+}
+impl core::ops::Deref for EVD3_R {
+ type Target = crate::FieldReader<bool, bool>;
+ #[inline(always)]
+ fn deref(&self) -> &Self::Target {
+ &self.0
+ }
+}
+#[doc = "Field `EVD3` writer - Channel 3 Event Detection Interrupt Enable"]
+pub struct EVD3_W<'a> {
+ w: &'a mut W,
+}
+impl<'a> EVD3_W<'a> {
+ #[doc = r"Sets the field bit"]
+ #[inline(always)]
+ pub fn set_bit(self) -> &'a mut W {
+ self.bit(true)
+ }
+ #[doc = r"Clears the field bit"]
+ #[inline(always)]
+ pub fn clear_bit(self) -> &'a mut W {
+ self.bit(false)
+ }
+ #[doc = r"Writes raw bits to the field"]
+ #[inline(always)]
+ pub fn bit(self, value: bool) -> &'a mut W {
+ self.w.bits = (self.w.bits & !(0x01 << 19)) | ((value as u32 & 0x01) << 19);
+ self.w
+ }
+}
+#[doc = "Field `EVD4` reader - Channel 4 Event Detection Interrupt Enable"]
+pub struct EVD4_R(crate::FieldReader<bool, bool>);
+impl EVD4_R {
+ pub(crate) fn new(bits: bool) -> Self {
+ EVD4_R(crate::FieldReader::new(bits))
+ }
+}
+impl core::ops::Deref for EVD4_R {
+ type Target = crate::FieldReader<bool, bool>;
+ #[inline(always)]
+ fn deref(&self) -> &Self::Target {
+ &self.0
+ }
+}
+#[doc = "Field `EVD4` writer - Channel 4 Event Detection Interrupt Enable"]
+pub struct EVD4_W<'a> {
+ w: &'a mut W,
+}
+impl<'a> EVD4_W<'a> {
+ #[doc = r"Sets the field bit"]
+ #[inline(always)]
+ pub fn set_bit(self) -> &'a mut W {
+ self.bit(true)
+ }
+ #[doc = r"Clears the field bit"]
+ #[inline(always)]
+ pub fn clear_bit(self) -> &'a mut W {
+ self.bit(false)
+ }
+ #[doc = r"Writes raw bits to the field"]
+ #[inline(always)]
+ pub fn bit(self, value: bool) -> &'a mut W {
+ self.w.bits = (self.w.bits & !(0x01 << 20)) | ((value as u32 & 0x01) << 20);
+ self.w
+ }
+}
+#[doc = "Field `EVD5` reader - Channel 5 Event Detection Interrupt Enable"]
+pub struct EVD5_R(crate::FieldReader<bool, bool>);
+impl EVD5_R {
+ pub(crate) fn new(bits: bool) -> Self {
+ EVD5_R(crate::FieldReader::new(bits))
+ }
+}
+impl core::ops::Deref for EVD5_R {
+ type Target = crate::FieldReader<bool, bool>;
+ #[inline(always)]
+ fn deref(&self) -> &Self::Target {
+ &self.0
+ }
+}
+#[doc = "Field `EVD5` writer - Channel 5 Event Detection Interrupt Enable"]
+pub struct EVD5_W<'a> {
+ w: &'a mut W,
+}
+impl<'a> EVD5_W<'a> {
+ #[doc = r"Sets the field bit"]
+ #[inline(always)]
+ pub fn set_bit(self) -> &'a mut W {
+ self.bit(true)
+ }
+ #[doc = r"Clears the field bit"]
+ #[inline(always)]
+ pub fn clear_bit(self) -> &'a mut W {
+ self.bit(false)
+ }
+ #[doc = r"Writes raw bits to the field"]
+ #[inline(always)]
+ pub fn bit(self, value: bool) -> &'a mut W {
+ self.w.bits = (self.w.bits & !(0x01 << 21)) | ((value as u32 & 0x01) << 21);
+ self.w
+ }
+}
+#[doc = "Field `EVD6` reader - Channel 6 Event Detection Interrupt Enable"]
+pub struct EVD6_R(crate::FieldReader<bool, bool>);
+impl EVD6_R {
+ pub(crate) fn new(bits: bool) -> Self {
+ EVD6_R(crate::FieldReader::new(bits))
+ }
+}
+impl core::ops::Deref for EVD6_R {
+ type Target = crate::FieldReader<bool, bool>;
+ #[inline(always)]
+ fn deref(&self) -> &Self::Target {
+ &self.0
+ }
+}
+#[doc = "Field `EVD6` writer - Channel 6 Event Detection Interrupt Enable"]
+pub struct EVD6_W<'a> {
+ w: &'a mut W,
+}
+impl<'a> EVD6_W<'a> {
+ #[doc = r"Sets the field bit"]
+ #[inline(always)]
+ pub fn set_bit(self) -> &'a mut W {
+ self.bit(true)
+ }
+ #[doc = r"Clears the field bit"]
+ #[inline(always)]
+ pub fn clear_bit(self) -> &'a mut W {
+ self.bit(false)
+ }
+ #[doc = r"Writes raw bits to the field"]
+ #[inline(always)]
+ pub fn bit(self, value: bool) -> &'a mut W {
+ self.w.bits = (self.w.bits & !(0x01 << 22)) | ((value as u32 & 0x01) << 22);
+ self.w
+ }
+}
+#[doc = "Field `EVD7` reader - Channel 7 Event Detection Interrupt Enable"]
+pub struct EVD7_R(crate::FieldReader<bool, bool>);
+impl EVD7_R {
+ pub(crate) fn new(bits: bool) -> Self {
+ EVD7_R(crate::FieldReader::new(bits))
+ }
+}
+impl core::ops::Deref for EVD7_R {
+ type Target = crate::FieldReader<bool, bool>;
+ #[inline(always)]
+ fn deref(&self) -> &Self::Target {
+ &self.0
+ }
+}
+#[doc = "Field `EVD7` writer - Channel 7 Event Detection Interrupt Enable"]
+pub struct EVD7_W<'a> {
+ w: &'a mut W,
+}
+impl<'a> EVD7_W<'a> {
+ #[doc = r"Sets the field bit"]
+ #[inline(always)]
+ pub fn set_bit(self) -> &'a mut W {
+ self.bit(true)
+ }
+ #[doc = r"Clears the field bit"]
+ #[inline(always)]
+ pub fn clear_bit(self) -> &'a mut W {
+ self.bit(false)
+ }
+ #[doc = r"Writes raw bits to the field"]
+ #[inline(always)]
+ pub fn bit(self, value: bool) -> &'a mut W {
+ self.w.bits = (self.w.bits & !(0x01 << 23)) | ((value as u32 & 0x01) << 23);
+ self.w
+ }
+}
+#[doc = "Field `EVD8` reader - Channel 8 Event Detection Interrupt Enable"]
+pub struct EVD8_R(crate::FieldReader<bool, bool>);
+impl EVD8_R {
+ pub(crate) fn new(bits: bool) -> Self {
+ EVD8_R(crate::FieldReader::new(bits))
+ }
+}
+impl core::ops::Deref for EVD8_R {
+ type Target = crate::FieldReader<bool, bool>;
+ #[inline(always)]
+ fn deref(&self) -> &Self::Target {
+ &self.0
+ }
+}
+#[doc = "Field `EVD8` writer - Channel 8 Event Detection Interrupt Enable"]
+pub struct EVD8_W<'a> {
+ w: &'a mut W,
+}
+impl<'a> EVD8_W<'a> {
+ #[doc = r"Sets the field bit"]
+ #[inline(always)]
+ pub fn set_bit(self) -> &'a mut W {
+ self.bit(true)
+ }
+ #[doc = r"Clears the field bit"]
+ #[inline(always)]
+ pub fn clear_bit(self) -> &'a mut W {
+ self.bit(false)
+ }
+ #[doc = r"Writes raw bits to the field"]
+ #[inline(always)]
+ pub fn bit(self, value: bool) -> &'a mut W {
+ self.w.bits = (self.w.bits & !(0x01 << 24)) | ((value as u32 & 0x01) << 24);
+ self.w
+ }
+}
+#[doc = "Field `EVD9` reader - Channel 9 Event Detection Interrupt Enable"]
+pub struct EVD9_R(crate::FieldReader<bool, bool>);
+impl EVD9_R {
+ pub(crate) fn new(bits: bool) -> Self {
+ EVD9_R(crate::FieldReader::new(bits))
+ }
+}
+impl core::ops::Deref for EVD9_R {
+ type Target = crate::FieldReader<bool, bool>;
+ #[inline(always)]
+ fn deref(&self) -> &Self::Target {
+ &self.0
+ }
+}
+#[doc = "Field `EVD9` writer - Channel 9 Event Detection Interrupt Enable"]
+pub struct EVD9_W<'a> {
+ w: &'a mut W,
+}
+impl<'a> EVD9_W<'a> {
+ #[doc = r"Sets the field bit"]
+ #[inline(always)]
+ pub fn set_bit(self) -> &'a mut W {
+ self.bit(true)
+ }
+ #[doc = r"Clears the field bit"]
+ #[inline(always)]
+ pub fn clear_bit(self) -> &'a mut W {
+ self.bit(false)
+ }
+ #[doc = r"Writes raw bits to the field"]
+ #[inline(always)]
+ pub fn bit(self, value: bool) -> &'a mut W {
+ self.w.bits = (self.w.bits & !(0x01 << 25)) | ((value as u32 & 0x01) << 25);
+ self.w
+ }
+}
+#[doc = "Field `EVD10` reader - Channel 10 Event Detection Interrupt Enable"]
+pub struct EVD10_R(crate::FieldReader<bool, bool>);
+impl EVD10_R {
+ pub(crate) fn new(bits: bool) -> Self {
+ EVD10_R(crate::FieldReader::new(bits))
+ }
+}
+impl core::ops::Deref for EVD10_R {
+ type Target = crate::FieldReader<bool, bool>;
+ #[inline(always)]
+ fn deref(&self) -> &Self::Target {
+ &self.0
+ }
+}
+#[doc = "Field `EVD10` writer - Channel 10 Event Detection Interrupt Enable"]
+pub struct EVD10_W<'a> {
+ w: &'a mut W,
+}
+impl<'a> EVD10_W<'a> {
+ #[doc = r"Sets the field bit"]
+ #[inline(always)]
+ pub fn set_bit(self) -> &'a mut W {
+ self.bit(true)
+ }
+ #[doc = r"Clears the field bit"]
+ #[inline(always)]
+ pub fn clear_bit(self) -> &'a mut W {
+ self.bit(false)
+ }
+ #[doc = r"Writes raw bits to the field"]
+ #[inline(always)]
+ pub fn bit(self, value: bool) -> &'a mut W {
+ self.w.bits = (self.w.bits & !(0x01 << 26)) | ((value as u32 & 0x01) << 26);
+ self.w
+ }
+}
+#[doc = "Field `EVD11` reader - Channel 11 Event Detection Interrupt Enable"]
+pub struct EVD11_R(crate::FieldReader<bool, bool>);
+impl EVD11_R {
+ pub(crate) fn new(bits: bool) -> Self {
+ EVD11_R(crate::FieldReader::new(bits))
+ }
+}
+impl core::ops::Deref for EVD11_R {
+ type Target = crate::FieldReader<bool, bool>;
+ #[inline(always)]
+ fn deref(&self) -> &Self::Target {
+ &self.0
+ }
+}
+#[doc = "Field `EVD11` writer - Channel 11 Event Detection Interrupt Enable"]
+pub struct EVD11_W<'a> {
+ w: &'a mut W,
+}
+impl<'a> EVD11_W<'a> {
+ #[doc = r"Sets the field bit"]
+ #[inline(always)]
+ pub fn set_bit(self) -> &'a mut W {
+ self.bit(true)
+ }
+ #[doc = r"Clears the field bit"]
+ #[inline(always)]
+ pub fn clear_bit(self) -> &'a mut W {
+ self.bit(false)
+ }
+ #[doc = r"Writes raw bits to the field"]
+ #[inline(always)]
+ pub fn bit(self, value: bool) -> &'a mut W {
+ self.w.bits = (self.w.bits & !(0x01 << 27)) | ((value as u32 & 0x01) << 27);
+ self.w
+ }
+}
+impl R {
+ #[doc = "Bit 0 - Channel 0 Overrun Interrupt Enable"]
+ #[inline(always)]
+ pub fn ovr0(&self) -> OVR0_R {
+ OVR0_R::new((self.bits & 0x01) != 0)
+ }
+ #[doc = "Bit 1 - Channel 1 Overrun Interrupt Enable"]
+ #[inline(always)]
+ pub fn ovr1(&self) -> OVR1_R {
+ OVR1_R::new(((self.bits >> 1) & 0x01) != 0)
+ }
+ #[doc = "Bit 2 - Channel 2 Overrun Interrupt Enable"]
+ #[inline(always)]
+ pub fn ovr2(&self) -> OVR2_R {
+ OVR2_R::new(((self.bits >> 2) & 0x01) != 0)
+ }
+ #[doc = "Bit 3 - Channel 3 Overrun Interrupt Enable"]
+ #[inline(always)]
+ pub fn ovr3(&self) -> OVR3_R {
+ OVR3_R::new(((self.bits >> 3) & 0x01) != 0)
+ }
+ #[doc = "Bit 4 - Channel 4 Overrun Interrupt Enable"]
+ #[inline(always)]
+ pub fn ovr4(&self) -> OVR4_R {
+ OVR4_R::new(((self.bits >> 4) & 0x01) != 0)
+ }
+ #[doc = "Bit 5 - Channel 5 Overrun Interrupt Enable"]
+ #[inline(always)]
+ pub fn ovr5(&self) -> OVR5_R {
+ OVR5_R::new(((self.bits >> 5) & 0x01) != 0)
+ }
+ #[doc = "Bit 6 - Channel 6 Overrun Interrupt Enable"]
+ #[inline(always)]
+ pub fn ovr6(&self) -> OVR6_R {
+ OVR6_R::new(((self.bits >> 6) & 0x01) != 0)
+ }
+ #[doc = "Bit 7 - Channel 7 Overrun Interrupt Enable"]
+ #[inline(always)]
+ pub fn ovr7(&self) -> OVR7_R {
+ OVR7_R::new(((self.bits >> 7) & 0x01) != 0)
+ }
+ #[doc = "Bit 8 - Channel 8 Overrun Interrupt Enable"]
+ #[inline(always)]
+ pub fn ovr8(&self) -> OVR8_R {
+ OVR8_R::new(((self.bits >> 8) & 0x01) != 0)
+ }
+ #[doc = "Bit 9 - Channel 9 Overrun Interrupt Enable"]
+ #[inline(always)]
+ pub fn ovr9(&self) -> OVR9_R {
+ OVR9_R::new(((self.bits >> 9) & 0x01) != 0)
+ }
+ #[doc = "Bit 10 - Channel 10 Overrun Interrupt Enable"]
+ #[inline(always)]
+ pub fn ovr10(&self) -> OVR10_R {
+ OVR10_R::new(((self.bits >> 10) & 0x01) != 0)
+ }
+ #[doc = "Bit 11 - Channel 11 Overrun Interrupt Enable"]
+ #[inline(always)]
+ pub fn ovr11(&self) -> OVR11_R {
+ OVR11_R::new(((self.bits >> 11) & 0x01) != 0)
+ }
+ #[doc = "Bit 16 - Channel 0 Event Detection Interrupt Enable"]
+ #[inline(always)]
+ pub fn evd0(&self) -> EVD0_R {
+ EVD0_R::new(((self.bits >> 16) & 0x01) != 0)
+ }
+ #[doc = "Bit 17 - Channel 1 Event Detection Interrupt Enable"]
+ #[inline(always)]
+ pub fn evd1(&self) -> EVD1_R {
+ EVD1_R::new(((self.bits >> 17) & 0x01) != 0)
+ }
+ #[doc = "Bit 18 - Channel 2 Event Detection Interrupt Enable"]
+ #[inline(always)]
+ pub fn evd2(&self) -> EVD2_R {
+ EVD2_R::new(((self.bits >> 18) & 0x01) != 0)
+ }
+ #[doc = "Bit 19 - Channel 3 Event Detection Interrupt Enable"]
+ #[inline(always)]
+ pub fn evd3(&self) -> EVD3_R {
+ EVD3_R::new(((self.bits >> 19) & 0x01) != 0)
+ }
+ #[doc = "Bit 20 - Channel 4 Event Detection Interrupt Enable"]
+ #[inline(always)]
+ pub fn evd4(&self) -> EVD4_R {
+ EVD4_R::new(((self.bits >> 20) & 0x01) != 0)
+ }
+ #[doc = "Bit 21 - Channel 5 Event Detection Interrupt Enable"]
+ #[inline(always)]
+ pub fn evd5(&self) -> EVD5_R {
+ EVD5_R::new(((self.bits >> 21) & 0x01) != 0)
+ }
+ #[doc = "Bit 22 - Channel 6 Event Detection Interrupt Enable"]
+ #[inline(always)]
+ pub fn evd6(&self) -> EVD6_R {
+ EVD6_R::new(((self.bits >> 22) & 0x01) != 0)
+ }
+ #[doc = "Bit 23 - Channel 7 Event Detection Interrupt Enable"]
+ #[inline(always)]
+ pub fn evd7(&self) -> EVD7_R {
+ EVD7_R::new(((self.bits >> 23) & 0x01) != 0)
+ }
+ #[doc = "Bit 24 - Channel 8 Event Detection Interrupt Enable"]
+ #[inline(always)]
+ pub fn evd8(&self) -> EVD8_R {
+ EVD8_R::new(((self.bits >> 24) & 0x01) != 0)
+ }
+ #[doc = "Bit 25 - Channel 9 Event Detection Interrupt Enable"]
+ #[inline(always)]
+ pub fn evd9(&self) -> EVD9_R {
+ EVD9_R::new(((self.bits >> 25) & 0x01) != 0)
+ }
+ #[doc = "Bit 26 - Channel 10 Event Detection Interrupt Enable"]
+ #[inline(always)]
+ pub fn evd10(&self) -> EVD10_R {
+ EVD10_R::new(((self.bits >> 26) & 0x01) != 0)
+ }
+ #[doc = "Bit 27 - Channel 11 Event Detection Interrupt Enable"]
+ #[inline(always)]
+ pub fn evd11(&self) -> EVD11_R {
+ EVD11_R::new(((self.bits >> 27) & 0x01) != 0)
+ }
+}
+impl W {
+ #[doc = "Bit 0 - Channel 0 Overrun Interrupt Enable"]
+ #[inline(always)]
+ pub fn ovr0(&mut self) -> OVR0_W {
+ OVR0_W { w: self }
+ }
+ #[doc = "Bit 1 - Channel 1 Overrun Interrupt Enable"]
+ #[inline(always)]
+ pub fn ovr1(&mut self) -> OVR1_W {
+ OVR1_W { w: self }
+ }
+ #[doc = "Bit 2 - Channel 2 Overrun Interrupt Enable"]
+ #[inline(always)]
+ pub fn ovr2(&mut self) -> OVR2_W {
+ OVR2_W { w: self }
+ }
+ #[doc = "Bit 3 - Channel 3 Overrun Interrupt Enable"]
+ #[inline(always)]
+ pub fn ovr3(&mut self) -> OVR3_W {
+ OVR3_W { w: self }
+ }
+ #[doc = "Bit 4 - Channel 4 Overrun Interrupt Enable"]
+ #[inline(always)]
+ pub fn ovr4(&mut self) -> OVR4_W {
+ OVR4_W { w: self }
+ }
+ #[doc = "Bit 5 - Channel 5 Overrun Interrupt Enable"]
+ #[inline(always)]
+ pub fn ovr5(&mut self) -> OVR5_W {
+ OVR5_W { w: self }
+ }
+ #[doc = "Bit 6 - Channel 6 Overrun Interrupt Enable"]
+ #[inline(always)]
+ pub fn ovr6(&mut self) -> OVR6_W {
+ OVR6_W { w: self }
+ }
+ #[doc = "Bit 7 - Channel 7 Overrun Interrupt Enable"]
+ #[inline(always)]
+ pub fn ovr7(&mut self) -> OVR7_W {
+ OVR7_W { w: self }
+ }
+ #[doc = "Bit 8 - Channel 8 Overrun Interrupt Enable"]
+ #[inline(always)]
+ pub fn ovr8(&mut self) -> OVR8_W {
+ OVR8_W { w: self }
+ }
+ #[doc = "Bit 9 - Channel 9 Overrun Interrupt Enable"]
+ #[inline(always)]
+ pub fn ovr9(&mut self) -> OVR9_W {
+ OVR9_W { w: self }
+ }
+ #[doc = "Bit 10 - Channel 10 Overrun Interrupt Enable"]
+ #[inline(always)]
+ pub fn ovr10(&mut self) -> OVR10_W {
+ OVR10_W { w: self }
+ }
+ #[doc = "Bit 11 - Channel 11 Overrun Interrupt Enable"]
+ #[inline(always)]
+ pub fn ovr11(&mut self) -> OVR11_W {
+ OVR11_W { w: self }
+ }
+ #[doc = "Bit 16 - Channel 0 Event Detection Interrupt Enable"]
+ #[inline(always)]
+ pub fn evd0(&mut self) -> EVD0_W {
+ EVD0_W { w: self }
+ }
+ #[doc = "Bit 17 - Channel 1 Event Detection Interrupt Enable"]
+ #[inline(always)]
+ pub fn evd1(&mut self) -> EVD1_W {
+ EVD1_W { w: self }
+ }
+ #[doc = "Bit 18 - Channel 2 Event Detection Interrupt Enable"]
+ #[inline(always)]
+ pub fn evd2(&mut self) -> EVD2_W {
+ EVD2_W { w: self }
+ }
+ #[doc = "Bit 19 - Channel 3 Event Detection Interrupt Enable"]
+ #[inline(always)]
+ pub fn evd3(&mut self) -> EVD3_W {
+ EVD3_W { w: self }
+ }
+ #[doc = "Bit 20 - Channel 4 Event Detection Interrupt Enable"]
+ #[inline(always)]
+ pub fn evd4(&mut self) -> EVD4_W {
+ EVD4_W { w: self }
+ }
+ #[doc = "Bit 21 - Channel 5 Event Detection Interrupt Enable"]
+ #[inline(always)]
+ pub fn evd5(&mut self) -> EVD5_W {
+ EVD5_W { w: self }
+ }
+ #[doc = "Bit 22 - Channel 6 Event Detection Interrupt Enable"]
+ #[inline(always)]
+ pub fn evd6(&mut self) -> EVD6_W {
+ EVD6_W { w: self }
+ }
+ #[doc = "Bit 23 - Channel 7 Event Detection Interrupt Enable"]
+ #[inline(always)]
+ pub fn evd7(&mut self) -> EVD7_W {
+ EVD7_W { w: self }
+ }
+ #[doc = "Bit 24 - Channel 8 Event Detection Interrupt Enable"]
+ #[inline(always)]
+ pub fn evd8(&mut self) -> EVD8_W {
+ EVD8_W { w: self }
+ }
+ #[doc = "Bit 25 - Channel 9 Event Detection Interrupt Enable"]
+ #[inline(always)]
+ pub fn evd9(&mut self) -> EVD9_W {
+ EVD9_W { w: self }
+ }
+ #[doc = "Bit 26 - Channel 10 Event Detection Interrupt Enable"]
+ #[inline(always)]
+ pub fn evd10(&mut self) -> EVD10_W {
+ EVD10_W { w: self }
+ }
+ #[doc = "Bit 27 - Channel 11 Event Detection Interrupt Enable"]
+ #[inline(always)]
+ pub fn evd11(&mut self) -> EVD11_W {
+ EVD11_W { w: self }
+ }
+ #[doc = "Writes raw bits to the register."]
+ #[inline(always)]
+ pub unsafe fn bits(&mut self, bits: u32) -> &mut Self {
+ self.0.bits(bits);
+ self
+ }
+}
+#[doc = "Interrupt Enable Set\n\nThis register you can [`read`](crate::generic::Reg::read), [`write_with_zero`](crate::generic::Reg::write_with_zero), [`reset`](crate::generic::Reg::reset), [`write`](crate::generic::Reg::write), [`modify`](crate::generic::Reg::modify). See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [intenset](index.html) module"]
+pub struct INTENSET_SPEC;
+impl crate::RegisterSpec for INTENSET_SPEC {
+ type Ux = u32;
+}
+#[doc = "`read()` method returns [intenset::R](R) reader structure"]
+impl crate::Readable for INTENSET_SPEC {
+ type Reader = R;
+}
+#[doc = "`write(|w| ..)` method takes [intenset::W](W) writer structure"]
+impl crate::Writable for INTENSET_SPEC {
+ type Writer = W;
+}
+#[doc = "`reset()` method sets INTENSET to value 0"]
+impl crate::Resettable for INTENSET_SPEC {
+ #[inline(always)]
+ fn reset_value() -> Self::Ux {
+ 0
+ }
+}
diff --git a/src/evsys/intflag.rs b/src/evsys/intflag.rs
new file mode 100644
index 0000000..6e74417
--- /dev/null
+++ b/src/evsys/intflag.rs
@@ -0,0 +1,1170 @@
+#[doc = "Register `INTFLAG` reader"]
+pub struct R(crate::R<INTFLAG_SPEC>);
+impl core::ops::Deref for R {
+ type Target = crate::R<INTFLAG_SPEC>;
+ #[inline(always)]
+ fn deref(&self) -> &Self::Target {
+ &self.0
+ }
+}
+impl From<crate::R<INTFLAG_SPEC>> for R {
+ #[inline(always)]
+ fn from(reader: crate::R<INTFLAG_SPEC>) -> Self {
+ R(reader)
+ }
+}
+#[doc = "Register `INTFLAG` writer"]
+pub struct W(crate::W<INTFLAG_SPEC>);
+impl core::ops::Deref for W {
+ type Target = crate::W<INTFLAG_SPEC>;
+ #[inline(always)]
+ fn deref(&self) -> &Self::Target {
+ &self.0
+ }
+}
+impl core::ops::DerefMut for W {
+ #[inline(always)]
+ fn deref_mut(&mut self) -> &mut Self::Target {
+ &mut self.0
+ }
+}
+impl From<crate::W<INTFLAG_SPEC>> for W {
+ #[inline(always)]
+ fn from(writer: crate::W<INTFLAG_SPEC>) -> Self {
+ W(writer)
+ }
+}
+#[doc = "Field `OVR0` reader - Channel 0 Overrun"]
+pub struct OVR0_R(crate::FieldReader<bool, bool>);
+impl OVR0_R {
+ pub(crate) fn new(bits: bool) -> Self {
+ OVR0_R(crate::FieldReader::new(bits))
+ }
+}
+impl core::ops::Deref for OVR0_R {
+ type Target = crate::FieldReader<bool, bool>;
+ #[inline(always)]
+ fn deref(&self) -> &Self::Target {
+ &self.0
+ }
+}
+#[doc = "Field `OVR0` writer - Channel 0 Overrun"]
+pub struct OVR0_W<'a> {
+ w: &'a mut W,
+}
+impl<'a> OVR0_W<'a> {
+ #[doc = r"Sets the field bit"]
+ #[inline(always)]
+ pub fn set_bit(self) -> &'a mut W {
+ self.bit(true)
+ }
+ #[doc = r"Clears the field bit"]
+ #[inline(always)]
+ pub fn clear_bit(self) -> &'a mut W {
+ self.bit(false)
+ }
+ #[doc = r"Writes raw bits to the field"]
+ #[inline(always)]
+ pub fn bit(self, value: bool) -> &'a mut W {
+ self.w.bits = (self.w.bits & !0x01) | (value as u32 & 0x01);
+ self.w
+ }
+}
+#[doc = "Field `OVR1` reader - Channel 1 Overrun"]
+pub struct OVR1_R(crate::FieldReader<bool, bool>);
+impl OVR1_R {
+ pub(crate) fn new(bits: bool) -> Self {
+ OVR1_R(crate::FieldReader::new(bits))
+ }
+}
+impl core::ops::Deref for OVR1_R {
+ type Target = crate::FieldReader<bool, bool>;
+ #[inline(always)]
+ fn deref(&self) -> &Self::Target {
+ &self.0
+ }
+}
+#[doc = "Field `OVR1` writer - Channel 1 Overrun"]
+pub struct OVR1_W<'a> {
+ w: &'a mut W,
+}
+impl<'a> OVR1_W<'a> {
+ #[doc = r"Sets the field bit"]
+ #[inline(always)]
+ pub fn set_bit(self) -> &'a mut W {
+ self.bit(true)
+ }
+ #[doc = r"Clears the field bit"]
+ #[inline(always)]
+ pub fn clear_bit(self) -> &'a mut W {
+ self.bit(false)
+ }
+ #[doc = r"Writes raw bits to the field"]
+ #[inline(always)]
+ pub fn bit(self, value: bool) -> &'a mut W {
+ self.w.bits = (self.w.bits & !(0x01 << 1)) | ((value as u32 & 0x01) << 1);
+ self.w
+ }
+}
+#[doc = "Field `OVR2` reader - Channel 2 Overrun"]
+pub struct OVR2_R(crate::FieldReader<bool, bool>);
+impl OVR2_R {
+ pub(crate) fn new(bits: bool) -> Self {
+ OVR2_R(crate::FieldReader::new(bits))
+ }
+}
+impl core::ops::Deref for OVR2_R {
+ type Target = crate::FieldReader<bool, bool>;
+ #[inline(always)]
+ fn deref(&self) -> &Self::Target {
+ &self.0
+ }
+}
+#[doc = "Field `OVR2` writer - Channel 2 Overrun"]
+pub struct OVR2_W<'a> {
+ w: &'a mut W,
+}
+impl<'a> OVR2_W<'a> {
+ #[doc = r"Sets the field bit"]
+ #[inline(always)]
+ pub fn set_bit(self) -> &'a mut W {
+ self.bit(true)
+ }
+ #[doc = r"Clears the field bit"]
+ #[inline(always)]
+ pub fn clear_bit(self) -> &'a mut W {
+ self.bit(false)
+ }
+ #[doc = r"Writes raw bits to the field"]
+ #[inline(always)]
+ pub fn bit(self, value: bool) -> &'a mut W {
+ self.w.bits = (self.w.bits & !(0x01 << 2)) | ((value as u32 & 0x01) << 2);
+ self.w
+ }
+}
+#[doc = "Field `OVR3` reader - Channel 3 Overrun"]
+pub struct OVR3_R(crate::FieldReader<bool, bool>);
+impl OVR3_R {
+ pub(crate) fn new(bits: bool) -> Self {
+ OVR3_R(crate::FieldReader::new(bits))
+ }
+}
+impl core::ops::Deref for OVR3_R {
+ type Target = crate::FieldReader<bool, bool>;
+ #[inline(always)]
+ fn deref(&self) -> &Self::Target {
+ &self.0
+ }
+}
+#[doc = "Field `OVR3` writer - Channel 3 Overrun"]
+pub struct OVR3_W<'a> {
+ w: &'a mut W,
+}
+impl<'a> OVR3_W<'a> {
+ #[doc = r"Sets the field bit"]
+ #[inline(always)]
+ pub fn set_bit(self) -> &'a mut W {
+ self.bit(true)
+ }
+ #[doc = r"Clears the field bit"]
+ #[inline(always)]
+ pub fn clear_bit(self) -> &'a mut W {
+ self.bit(false)
+ }
+ #[doc = r"Writes raw bits to the field"]
+ #[inline(always)]
+ pub fn bit(self, value: bool) -> &'a mut W {
+ self.w.bits = (self.w.bits & !(0x01 << 3)) | ((value as u32 & 0x01) << 3);
+ self.w
+ }
+}
+#[doc = "Field `OVR4` reader - Channel 4 Overrun"]
+pub struct OVR4_R(crate::FieldReader<bool, bool>);
+impl OVR4_R {
+ pub(crate) fn new(bits: bool) -> Self {
+ OVR4_R(crate::FieldReader::new(bits))
+ }
+}
+impl core::ops::Deref for OVR4_R {
+ type Target = crate::FieldReader<bool, bool>;
+ #[inline(always)]
+ fn deref(&self) -> &Self::Target {
+ &self.0
+ }
+}
+#[doc = "Field `OVR4` writer - Channel 4 Overrun"]
+pub struct OVR4_W<'a> {
+ w: &'a mut W,
+}
+impl<'a> OVR4_W<'a> {
+ #[doc = r"Sets the field bit"]
+ #[inline(always)]
+ pub fn set_bit(self) -> &'a mut W {
+ self.bit(true)
+ }
+ #[doc = r"Clears the field bit"]
+ #[inline(always)]
+ pub fn clear_bit(self) -> &'a mut W {
+ self.bit(false)
+ }
+ #[doc = r"Writes raw bits to the field"]
+ #[inline(always)]
+ pub fn bit(self, value: bool) -> &'a mut W {
+ self.w.bits = (self.w.bits & !(0x01 << 4)) | ((value as u32 & 0x01) << 4);
+ self.w
+ }
+}
+#[doc = "Field `OVR5` reader - Channel 5 Overrun"]
+pub struct OVR5_R(crate::FieldReader<bool, bool>);
+impl OVR5_R {
+ pub(crate) fn new(bits: bool) -> Self {
+ OVR5_R(crate::FieldReader::new(bits))
+ }
+}
+impl core::ops::Deref for OVR5_R {
+ type Target = crate::FieldReader<bool, bool>;
+ #[inline(always)]
+ fn deref(&self) -> &Self::Target {
+ &self.0
+ }
+}
+#[doc = "Field `OVR5` writer - Channel 5 Overrun"]
+pub struct OVR5_W<'a> {
+ w: &'a mut W,
+}
+impl<'a> OVR5_W<'a> {
+ #[doc = r"Sets the field bit"]
+ #[inline(always)]
+ pub fn set_bit(self) -> &'a mut W {
+ self.bit(true)
+ }
+ #[doc = r"Clears the field bit"]
+ #[inline(always)]
+ pub fn clear_bit(self) -> &'a mut W {
+ self.bit(false)
+ }
+ #[doc = r"Writes raw bits to the field"]
+ #[inline(always)]
+ pub fn bit(self, value: bool) -> &'a mut W {
+ self.w.bits = (self.w.bits & !(0x01 << 5)) | ((value as u32 & 0x01) << 5);
+ self.w
+ }
+}
+#[doc = "Field `OVR6` reader - Channel 6 Overrun"]
+pub struct OVR6_R(crate::FieldReader<bool, bool>);
+impl OVR6_R {
+ pub(crate) fn new(bits: bool) -> Self {
+ OVR6_R(crate::FieldReader::new(bits))
+ }
+}
+impl core::ops::Deref for OVR6_R {
+ type Target = crate::FieldReader<bool, bool>;
+ #[inline(always)]
+ fn deref(&self) -> &Self::Target {
+ &self.0
+ }
+}
+#[doc = "Field `OVR6` writer - Channel 6 Overrun"]
+pub struct OVR6_W<'a> {
+ w: &'a mut W,
+}
+impl<'a> OVR6_W<'a> {
+ #[doc = r"Sets the field bit"]
+ #[inline(always)]
+ pub fn set_bit(self) -> &'a mut W {
+ self.bit(true)
+ }
+ #[doc = r"Clears the field bit"]
+ #[inline(always)]
+ pub fn clear_bit(self) -> &'a mut W {
+ self.bit(false)
+ }
+ #[doc = r"Writes raw bits to the field"]
+ #[inline(always)]
+ pub fn bit(self, value: bool) -> &'a mut W {
+ self.w.bits = (self.w.bits & !(0x01 << 6)) | ((value as u32 & 0x01) << 6);
+ self.w
+ }
+}
+#[doc = "Field `OVR7` reader - Channel 7 Overrun"]
+pub struct OVR7_R(crate::FieldReader<bool, bool>);
+impl OVR7_R {
+ pub(crate) fn new(bits: bool) -> Self {
+ OVR7_R(crate::FieldReader::new(bits))
+ }
+}
+impl core::ops::Deref for OVR7_R {
+ type Target = crate::FieldReader<bool, bool>;
+ #[inline(always)]
+ fn deref(&self) -> &Self::Target {
+ &self.0
+ }
+}
+#[doc = "Field `OVR7` writer - Channel 7 Overrun"]
+pub struct OVR7_W<'a> {
+ w: &'a mut W,
+}
+impl<'a> OVR7_W<'a> {
+ #[doc = r"Sets the field bit"]
+ #[inline(always)]
+ pub fn set_bit(self) -> &'a mut W {
+ self.bit(true)
+ }
+ #[doc = r"Clears the field bit"]
+ #[inline(always)]
+ pub fn clear_bit(self) -> &'a mut W {
+ self.bit(false)
+ }
+ #[doc = r"Writes raw bits to the field"]
+ #[inline(always)]
+ pub fn bit(self, value: bool) -> &'a mut W {
+ self.w.bits = (self.w.bits & !(0x01 << 7)) | ((value as u32 & 0x01) << 7);
+ self.w
+ }
+}
+#[doc = "Field `OVR8` reader - Channel 8 Overrun"]
+pub struct OVR8_R(crate::FieldReader<bool, bool>);
+impl OVR8_R {
+ pub(crate) fn new(bits: bool) -> Self {
+ OVR8_R(crate::FieldReader::new(bits))
+ }
+}
+impl core::ops::Deref for OVR8_R {
+ type Target = crate::FieldReader<bool, bool>;
+ #[inline(always)]
+ fn deref(&self) -> &Self::Target {
+ &self.0
+ }
+}
+#[doc = "Field `OVR8` writer - Channel 8 Overrun"]
+pub struct OVR8_W<'a> {
+ w: &'a mut W,
+}
+impl<'a> OVR8_W<'a> {
+ #[doc = r"Sets the field bit"]
+ #[inline(always)]
+ pub fn set_bit(self) -> &'a mut W {
+ self.bit(true)
+ }
+ #[doc = r"Clears the field bit"]
+ #[inline(always)]
+ pub fn clear_bit(self) -> &'a mut W {
+ self.bit(false)
+ }
+ #[doc = r"Writes raw bits to the field"]
+ #[inline(always)]
+ pub fn bit(self, value: bool) -> &'a mut W {
+ self.w.bits = (self.w.bits & !(0x01 << 8)) | ((value as u32 & 0x01) << 8);
+ self.w
+ }
+}
+#[doc = "Field `OVR9` reader - Channel 9 Overrun"]
+pub struct OVR9_R(crate::FieldReader<bool, bool>);
+impl OVR9_R {
+ pub(crate) fn new(bits: bool) -> Self {
+ OVR9_R(crate::FieldReader::new(bits))
+ }
+}
+impl core::ops::Deref for OVR9_R {
+ type Target = crate::FieldReader<bool, bool>;
+ #[inline(always)]
+ fn deref(&self) -> &Self::Target {
+ &self.0
+ }
+}
+#[doc = "Field `OVR9` writer - Channel 9 Overrun"]
+pub struct OVR9_W<'a> {
+ w: &'a mut W,
+}
+impl<'a> OVR9_W<'a> {
+ #[doc = r"Sets the field bit"]
+ #[inline(always)]
+ pub fn set_bit(self) -> &'a mut W {
+ self.bit(true)
+ }
+ #[doc = r"Clears the field bit"]
+ #[inline(always)]
+ pub fn clear_bit(self) -> &'a mut W {
+ self.bit(false)
+ }
+ #[doc = r"Writes raw bits to the field"]
+ #[inline(always)]
+ pub fn bit(self, value: bool) -> &'a mut W {
+ self.w.bits = (self.w.bits & !(0x01 << 9)) | ((value as u32 & 0x01) << 9);
+ self.w
+ }
+}
+#[doc = "Field `OVR10` reader - Channel 10 Overrun"]
+pub struct OVR10_R(crate::FieldReader<bool, bool>);
+impl OVR10_R {
+ pub(crate) fn new(bits: bool) -> Self {
+ OVR10_R(crate::FieldReader::new(bits))
+ }
+}
+impl core::ops::Deref for OVR10_R {
+ type Target = crate::FieldReader<bool, bool>;
+ #[inline(always)]
+ fn deref(&self) -> &Self::Target {
+ &self.0
+ }
+}
+#[doc = "Field `OVR10` writer - Channel 10 Overrun"]
+pub struct OVR10_W<'a> {
+ w: &'a mut W,
+}
+impl<'a> OVR10_W<'a> {
+ #[doc = r"Sets the field bit"]
+ #[inline(always)]
+ pub fn set_bit(self) -> &'a mut W {
+ self.bit(true)
+ }
+ #[doc = r"Clears the field bit"]
+ #[inline(always)]
+ pub fn clear_bit(self) -> &'a mut W {
+ self.bit(false)
+ }
+ #[doc = r"Writes raw bits to the field"]
+ #[inline(always)]
+ pub fn bit(self, value: bool) -> &'a mut W {
+ self.w.bits = (self.w.bits & !(0x01 << 10)) | ((value as u32 & 0x01) << 10);
+ self.w
+ }
+}
+#[doc = "Field `OVR11` reader - Channel 11 Overrun"]
+pub struct OVR11_R(crate::FieldReader<bool, bool>);
+impl OVR11_R {
+ pub(crate) fn new(bits: bool) -> Self {
+ OVR11_R(crate::FieldReader::new(bits))
+ }
+}
+impl core::ops::Deref for OVR11_R {
+ type Target = crate::FieldReader<bool, bool>;
+ #[inline(always)]
+ fn deref(&self) -> &Self::Target {
+ &self.0
+ }
+}
+#[doc = "Field `OVR11` writer - Channel 11 Overrun"]
+pub struct OVR11_W<'a> {
+ w: &'a mut W,
+}
+impl<'a> OVR11_W<'a> {
+ #[doc = r"Sets the field bit"]
+ #[inline(always)]
+ pub fn set_bit(self) -> &'a mut W {
+ self.bit(true)
+ }
+ #[doc = r"Clears the field bit"]
+ #[inline(always)]
+ pub fn clear_bit(self) -> &'a mut W {
+ self.bit(false)
+ }
+ #[doc = r"Writes raw bits to the field"]
+ #[inline(always)]
+ pub fn bit(self, value: bool) -> &'a mut W {
+ self.w.bits = (self.w.bits & !(0x01 << 11)) | ((value as u32 & 0x01) << 11);
+ self.w
+ }
+}
+#[doc = "Field `EVD0` reader - Channel 0 Event Detection"]
+pub struct EVD0_R(crate::FieldReader<bool, bool>);
+impl EVD0_R {
+ pub(crate) fn new(bits: bool) -> Self {
+ EVD0_R(crate::FieldReader::new(bits))
+ }
+}
+impl core::ops::Deref for EVD0_R {
+ type Target = crate::FieldReader<bool, bool>;
+ #[inline(always)]
+ fn deref(&self) -> &Self::Target {
+ &self.0
+ }
+}
+#[doc = "Field `EVD0` writer - Channel 0 Event Detection"]
+pub struct EVD0_W<'a> {
+ w: &'a mut W,
+}
+impl<'a> EVD0_W<'a> {
+ #[doc = r"Sets the field bit"]
+ #[inline(always)]
+ pub fn set_bit(self) -> &'a mut W {
+ self.bit(true)
+ }
+ #[doc = r"Clears the field bit"]
+ #[inline(always)]
+ pub fn clear_bit(self) -> &'a mut W {
+ self.bit(false)
+ }
+ #[doc = r"Writes raw bits to the field"]
+ #[inline(always)]
+ pub fn bit(self, value: bool) -> &'a mut W {
+ self.w.bits = (self.w.bits & !(0x01 << 16)) | ((value as u32 & 0x01) << 16);
+ self.w
+ }
+}
+#[doc = "Field `EVD1` reader - Channel 1 Event Detection"]
+pub struct EVD1_R(crate::FieldReader<bool, bool>);
+impl EVD1_R {
+ pub(crate) fn new(bits: bool) -> Self {
+ EVD1_R(crate::FieldReader::new(bits))
+ }
+}
+impl core::ops::Deref for EVD1_R {
+ type Target = crate::FieldReader<bool, bool>;
+ #[inline(always)]
+ fn deref(&self) -> &Self::Target {
+ &self.0
+ }
+}
+#[doc = "Field `EVD1` writer - Channel 1 Event Detection"]
+pub struct EVD1_W<'a> {
+ w: &'a mut W,
+}
+impl<'a> EVD1_W<'a> {
+ #[doc = r"Sets the field bit"]
+ #[inline(always)]
+ pub fn set_bit(self) -> &'a mut W {
+ self.bit(true)
+ }
+ #[doc = r"Clears the field bit"]
+ #[inline(always)]
+ pub fn clear_bit(self) -> &'a mut W {
+ self.bit(false)
+ }
+ #[doc = r"Writes raw bits to the field"]
+ #[inline(always)]
+ pub fn bit(self, value: bool) -> &'a mut W {
+ self.w.bits = (self.w.bits & !(0x01 << 17)) | ((value as u32 & 0x01) << 17);
+ self.w
+ }
+}
+#[doc = "Field `EVD2` reader - Channel 2 Event Detection"]
+pub struct EVD2_R(crate::FieldReader<bool, bool>);
+impl EVD2_R {
+ pub(crate) fn new(bits: bool) -> Self {
+ EVD2_R(crate::FieldReader::new(bits))
+ }
+}
+impl core::ops::Deref for EVD2_R {
+ type Target = crate::FieldReader<bool, bool>;
+ #[inline(always)]
+ fn deref(&self) -> &Self::Target {
+ &self.0
+ }
+}
+#[doc = "Field `EVD2` writer - Channel 2 Event Detection"]
+pub struct EVD2_W<'a> {
+ w: &'a mut W,
+}
+impl<'a> EVD2_W<'a> {
+ #[doc = r"Sets the field bit"]
+ #[inline(always)]
+ pub fn set_bit(self) -> &'a mut W {
+ self.bit(true)
+ }
+ #[doc = r"Clears the field bit"]
+ #[inline(always)]
+ pub fn clear_bit(self) -> &'a mut W {
+ self.bit(false)
+ }
+ #[doc = r"Writes raw bits to the field"]
+ #[inline(always)]
+ pub fn bit(self, value: bool) -> &'a mut W {
+ self.w.bits = (self.w.bits & !(0x01 << 18)) | ((value as u32 & 0x01) << 18);
+ self.w
+ }
+}
+#[doc = "Field `EVD3` reader - Channel 3 Event Detection"]
+pub struct EVD3_R(crate::FieldReader<bool, bool>);
+impl EVD3_R {
+ pub(crate) fn new(bits: bool) -> Self {
+ EVD3_R(crate::FieldReader::new(bits))
+ }
+}
+impl core::ops::Deref for EVD3_R {
+ type Target = crate::FieldReader<bool, bool>;
+ #[inline(always)]
+ fn deref(&self) -> &Self::Target {
+ &self.0
+ }
+}
+#[doc = "Field `EVD3` writer - Channel 3 Event Detection"]
+pub struct EVD3_W<'a> {
+ w: &'a mut W,
+}
+impl<'a> EVD3_W<'a> {
+ #[doc = r"Sets the field bit"]
+ #[inline(always)]
+ pub fn set_bit(self) -> &'a mut W {
+ self.bit(true)
+ }
+ #[doc = r"Clears the field bit"]
+ #[inline(always)]
+ pub fn clear_bit(self) -> &'a mut W {
+ self.bit(false)
+ }
+ #[doc = r"Writes raw bits to the field"]
+ #[inline(always)]
+ pub fn bit(self, value: bool) -> &'a mut W {
+ self.w.bits = (self.w.bits & !(0x01 << 19)) | ((value as u32 & 0x01) << 19);
+ self.w
+ }
+}
+#[doc = "Field `EVD4` reader - Channel 4 Event Detection"]
+pub struct EVD4_R(crate::FieldReader<bool, bool>);
+impl EVD4_R {
+ pub(crate) fn new(bits: bool) -> Self {
+ EVD4_R(crate::FieldReader::new(bits))
+ }
+}
+impl core::ops::Deref for EVD4_R {
+ type Target = crate::FieldReader<bool, bool>;
+ #[inline(always)]
+ fn deref(&self) -> &Self::Target {
+ &self.0
+ }
+}
+#[doc = "Field `EVD4` writer - Channel 4 Event Detection"]
+pub struct EVD4_W<'a> {
+ w: &'a mut W,
+}
+impl<'a> EVD4_W<'a> {
+ #[doc = r"Sets the field bit"]
+ #[inline(always)]
+ pub fn set_bit(self) -> &'a mut W {
+ self.bit(true)
+ }
+ #[doc = r"Clears the field bit"]
+ #[inline(always)]
+ pub fn clear_bit(self) -> &'a mut W {
+ self.bit(false)
+ }
+ #[doc = r"Writes raw bits to the field"]
+ #[inline(always)]
+ pub fn bit(self, value: bool) -> &'a mut W {
+ self.w.bits = (self.w.bits & !(0x01 << 20)) | ((value as u32 & 0x01) << 20);
+ self.w
+ }
+}
+#[doc = "Field `EVD5` reader - Channel 5 Event Detection"]
+pub struct EVD5_R(crate::FieldReader<bool, bool>);
+impl EVD5_R {
+ pub(crate) fn new(bits: bool) -> Self {
+ EVD5_R(crate::FieldReader::new(bits))
+ }
+}
+impl core::ops::Deref for EVD5_R {
+ type Target = crate::FieldReader<bool, bool>;
+ #[inline(always)]
+ fn deref(&self) -> &Self::Target {
+ &self.0
+ }
+}
+#[doc = "Field `EVD5` writer - Channel 5 Event Detection"]
+pub struct EVD5_W<'a> {
+ w: &'a mut W,
+}
+impl<'a> EVD5_W<'a> {
+ #[doc = r"Sets the field bit"]
+ #[inline(always)]
+ pub fn set_bit(self) -> &'a mut W {
+ self.bit(true)
+ }
+ #[doc = r"Clears the field bit"]
+ #[inline(always)]
+ pub fn clear_bit(self) -> &'a mut W {
+ self.bit(false)
+ }
+ #[doc = r"Writes raw bits to the field"]
+ #[inline(always)]
+ pub fn bit(self, value: bool) -> &'a mut W {
+ self.w.bits = (self.w.bits & !(0x01 << 21)) | ((value as u32 & 0x01) << 21);
+ self.w
+ }
+}
+#[doc = "Field `EVD6` reader - Channel 6 Event Detection"]
+pub struct EVD6_R(crate::FieldReader<bool, bool>);
+impl EVD6_R {
+ pub(crate) fn new(bits: bool) -> Self {
+ EVD6_R(crate::FieldReader::new(bits))
+ }
+}
+impl core::ops::Deref for EVD6_R {
+ type Target = crate::FieldReader<bool, bool>;
+ #[inline(always)]
+ fn deref(&self) -> &Self::Target {
+ &self.0
+ }
+}
+#[doc = "Field `EVD6` writer - Channel 6 Event Detection"]
+pub struct EVD6_W<'a> {
+ w: &'a mut W,
+}
+impl<'a> EVD6_W<'a> {
+ #[doc = r"Sets the field bit"]
+ #[inline(always)]
+ pub fn set_bit(self) -> &'a mut W {
+ self.bit(true)
+ }
+ #[doc = r"Clears the field bit"]
+ #[inline(always)]
+ pub fn clear_bit(self) -> &'a mut W {
+ self.bit(false)
+ }
+ #[doc = r"Writes raw bits to the field"]
+ #[inline(always)]
+ pub fn bit(self, value: bool) -> &'a mut W {
+ self.w.bits = (self.w.bits & !(0x01 << 22)) | ((value as u32 & 0x01) << 22);
+ self.w
+ }
+}
+#[doc = "Field `EVD7` reader - Channel 7 Event Detection"]
+pub struct EVD7_R(crate::FieldReader<bool, bool>);
+impl EVD7_R {
+ pub(crate) fn new(bits: bool) -> Self {
+ EVD7_R(crate::FieldReader::new(bits))
+ }
+}
+impl core::ops::Deref for EVD7_R {
+ type Target = crate::FieldReader<bool, bool>;
+ #[inline(always)]
+ fn deref(&self) -> &Self::Target {
+ &self.0
+ }
+}
+#[doc = "Field `EVD7` writer - Channel 7 Event Detection"]
+pub struct EVD7_W<'a> {
+ w: &'a mut W,
+}
+impl<'a> EVD7_W<'a> {
+ #[doc = r"Sets the field bit"]
+ #[inline(always)]
+ pub fn set_bit(self) -> &'a mut W {
+ self.bit(true)
+ }
+ #[doc = r"Clears the field bit"]
+ #[inline(always)]
+ pub fn clear_bit(self) -> &'a mut W {
+ self.bit(false)
+ }
+ #[doc = r"Writes raw bits to the field"]
+ #[inline(always)]
+ pub fn bit(self, value: bool) -> &'a mut W {
+ self.w.bits = (self.w.bits & !(0x01 << 23)) | ((value as u32 & 0x01) << 23);
+ self.w
+ }
+}
+#[doc = "Field `EVD8` reader - Channel 8 Event Detection"]
+pub struct EVD8_R(crate::FieldReader<bool, bool>);
+impl EVD8_R {
+ pub(crate) fn new(bits: bool) -> Self {
+ EVD8_R(crate::FieldReader::new(bits))
+ }
+}
+impl core::ops::Deref for EVD8_R {
+ type Target = crate::FieldReader<bool, bool>;
+ #[inline(always)]
+ fn deref(&self) -> &Self::Target {
+ &self.0
+ }
+}
+#[doc = "Field `EVD8` writer - Channel 8 Event Detection"]
+pub struct EVD8_W<'a> {
+ w: &'a mut W,
+}
+impl<'a> EVD8_W<'a> {
+ #[doc = r"Sets the field bit"]
+ #[inline(always)]
+ pub fn set_bit(self) -> &'a mut W {
+ self.bit(true)
+ }
+ #[doc = r"Clears the field bit"]
+ #[inline(always)]
+ pub fn clear_bit(self) -> &'a mut W {
+ self.bit(false)
+ }
+ #[doc = r"Writes raw bits to the field"]
+ #[inline(always)]
+ pub fn bit(self, value: bool) -> &'a mut W {
+ self.w.bits = (self.w.bits & !(0x01 << 24)) | ((value as u32 & 0x01) << 24);
+ self.w
+ }
+}
+#[doc = "Field `EVD9` reader - Channel 9 Event Detection"]
+pub struct EVD9_R(crate::FieldReader<bool, bool>);
+impl EVD9_R {
+ pub(crate) fn new(bits: bool) -> Self {
+ EVD9_R(crate::FieldReader::new(bits))
+ }
+}
+impl core::ops::Deref for EVD9_R {
+ type Target = crate::FieldReader<bool, bool>;
+ #[inline(always)]
+ fn deref(&self) -> &Self::Target {
+ &self.0
+ }
+}
+#[doc = "Field `EVD9` writer - Channel 9 Event Detection"]
+pub struct EVD9_W<'a> {
+ w: &'a mut W,
+}
+impl<'a> EVD9_W<'a> {
+ #[doc = r"Sets the field bit"]
+ #[inline(always)]
+ pub fn set_bit(self) -> &'a mut W {
+ self.bit(true)
+ }
+ #[doc = r"Clears the field bit"]
+ #[inline(always)]
+ pub fn clear_bit(self) -> &'a mut W {
+ self.bit(false)
+ }
+ #[doc = r"Writes raw bits to the field"]
+ #[inline(always)]
+ pub fn bit(self, value: bool) -> &'a mut W {
+ self.w.bits = (self.w.bits & !(0x01 << 25)) | ((value as u32 & 0x01) << 25);
+ self.w
+ }
+}
+#[doc = "Field `EVD10` reader - Channel 10 Event Detection"]
+pub struct EVD10_R(crate::FieldReader<bool, bool>);
+impl EVD10_R {
+ pub(crate) fn new(bits: bool) -> Self {
+ EVD10_R(crate::FieldReader::new(bits))
+ }
+}
+impl core::ops::Deref for EVD10_R {
+ type Target = crate::FieldReader<bool, bool>;
+ #[inline(always)]
+ fn deref(&self) -> &Self::Target {
+ &self.0
+ }
+}
+#[doc = "Field `EVD10` writer - Channel 10 Event Detection"]
+pub struct EVD10_W<'a> {
+ w: &'a mut W,
+}
+impl<'a> EVD10_W<'a> {
+ #[doc = r"Sets the field bit"]
+ #[inline(always)]
+ pub fn set_bit(self) -> &'a mut W {
+ self.bit(true)
+ }
+ #[doc = r"Clears the field bit"]
+ #[inline(always)]
+ pub fn clear_bit(self) -> &'a mut W {
+ self.bit(false)
+ }
+ #[doc = r"Writes raw bits to the field"]
+ #[inline(always)]
+ pub fn bit(self, value: bool) -> &'a mut W {
+ self.w.bits = (self.w.bits & !(0x01 << 26)) | ((value as u32 & 0x01) << 26);
+ self.w
+ }
+}
+#[doc = "Field `EVD11` reader - Channel 11 Event Detection"]
+pub struct EVD11_R(crate::FieldReader<bool, bool>);
+impl EVD11_R {
+ pub(crate) fn new(bits: bool) -> Self {
+ EVD11_R(crate::FieldReader::new(bits))
+ }
+}
+impl core::ops::Deref for EVD11_R {
+ type Target = crate::FieldReader<bool, bool>;
+ #[inline(always)]
+ fn deref(&self) -> &Self::Target {
+ &self.0
+ }
+}
+#[doc = "Field `EVD11` writer - Channel 11 Event Detection"]
+pub struct EVD11_W<'a> {
+ w: &'a mut W,
+}
+impl<'a> EVD11_W<'a> {
+ #[doc = r"Sets the field bit"]
+ #[inline(always)]
+ pub fn set_bit(self) -> &'a mut W {
+ self.bit(true)
+ }
+ #[doc = r"Clears the field bit"]
+ #[inline(always)]
+ pub fn clear_bit(self) -> &'a mut W {
+ self.bit(false)
+ }
+ #[doc = r"Writes raw bits to the field"]
+ #[inline(always)]
+ pub fn bit(self, value: bool) -> &'a mut W {
+ self.w.bits = (self.w.bits & !(0x01 << 27)) | ((value as u32 & 0x01) << 27);
+ self.w
+ }
+}
+impl R {
+ #[doc = "Bit 0 - Channel 0 Overrun"]
+ #[inline(always)]
+ pub fn ovr0(&self) -> OVR0_R {
+ OVR0_R::new((self.bits & 0x01) != 0)
+ }
+ #[doc = "Bit 1 - Channel 1 Overrun"]
+ #[inline(always)]
+ pub fn ovr1(&self) -> OVR1_R {
+ OVR1_R::new(((self.bits >> 1) & 0x01) != 0)
+ }
+ #[doc = "Bit 2 - Channel 2 Overrun"]
+ #[inline(always)]
+ pub fn ovr2(&self) -> OVR2_R {
+ OVR2_R::new(((self.bits >> 2) & 0x01) != 0)
+ }
+ #[doc = "Bit 3 - Channel 3 Overrun"]
+ #[inline(always)]
+ pub fn ovr3(&self) -> OVR3_R {
+ OVR3_R::new(((self.bits >> 3) & 0x01) != 0)
+ }
+ #[doc = "Bit 4 - Channel 4 Overrun"]
+ #[inline(always)]
+ pub fn ovr4(&self) -> OVR4_R {
+ OVR4_R::new(((self.bits >> 4) & 0x01) != 0)
+ }
+ #[doc = "Bit 5 - Channel 5 Overrun"]
+ #[inline(always)]
+ pub fn ovr5(&self) -> OVR5_R {
+ OVR5_R::new(((self.bits >> 5) & 0x01) != 0)
+ }
+ #[doc = "Bit 6 - Channel 6 Overrun"]
+ #[inline(always)]
+ pub fn ovr6(&self) -> OVR6_R {
+ OVR6_R::new(((self.bits >> 6) & 0x01) != 0)
+ }
+ #[doc = "Bit 7 - Channel 7 Overrun"]
+ #[inline(always)]
+ pub fn ovr7(&self) -> OVR7_R {
+ OVR7_R::new(((self.bits >> 7) & 0x01) != 0)
+ }
+ #[doc = "Bit 8 - Channel 8 Overrun"]
+ #[inline(always)]
+ pub fn ovr8(&self) -> OVR8_R {
+ OVR8_R::new(((self.bits >> 8) & 0x01) != 0)
+ }
+ #[doc = "Bit 9 - Channel 9 Overrun"]
+ #[inline(always)]
+ pub fn ovr9(&self) -> OVR9_R {
+ OVR9_R::new(((self.bits >> 9) & 0x01) != 0)
+ }
+ #[doc = "Bit 10 - Channel 10 Overrun"]
+ #[inline(always)]
+ pub fn ovr10(&self) -> OVR10_R {
+ OVR10_R::new(((self.bits >> 10) & 0x01) != 0)
+ }
+ #[doc = "Bit 11 - Channel 11 Overrun"]
+ #[inline(always)]
+ pub fn ovr11(&self) -> OVR11_R {
+ OVR11_R::new(((self.bits >> 11) & 0x01) != 0)
+ }
+ #[doc = "Bit 16 - Channel 0 Event Detection"]
+ #[inline(always)]
+ pub fn evd0(&self) -> EVD0_R {
+ EVD0_R::new(((self.bits >> 16) & 0x01) != 0)
+ }
+ #[doc = "Bit 17 - Channel 1 Event Detection"]
+ #[inline(always)]
+ pub fn evd1(&self) -> EVD1_R {
+ EVD1_R::new(((self.bits >> 17) & 0x01) != 0)
+ }
+ #[doc = "Bit 18 - Channel 2 Event Detection"]
+ #[inline(always)]
+ pub fn evd2(&self) -> EVD2_R {
+ EVD2_R::new(((self.bits >> 18) & 0x01) != 0)
+ }
+ #[doc = "Bit 19 - Channel 3 Event Detection"]
+ #[inline(always)]
+ pub fn evd3(&self) -> EVD3_R {
+ EVD3_R::new(((self.bits >> 19) & 0x01) != 0)
+ }
+ #[doc = "Bit 20 - Channel 4 Event Detection"]
+ #[inline(always)]
+ pub fn evd4(&self) -> EVD4_R {
+ EVD4_R::new(((self.bits >> 20) & 0x01) != 0)
+ }
+ #[doc = "Bit 21 - Channel 5 Event Detection"]
+ #[inline(always)]
+ pub fn evd5(&self) -> EVD5_R {
+ EVD5_R::new(((self.bits >> 21) & 0x01) != 0)
+ }
+ #[doc = "Bit 22 - Channel 6 Event Detection"]
+ #[inline(always)]
+ pub fn evd6(&self) -> EVD6_R {
+ EVD6_R::new(((self.bits >> 22) & 0x01) != 0)
+ }
+ #[doc = "Bit 23 - Channel 7 Event Detection"]
+ #[inline(always)]
+ pub fn evd7(&self) -> EVD7_R {
+ EVD7_R::new(((self.bits >> 23) & 0x01) != 0)
+ }
+ #[doc = "Bit 24 - Channel 8 Event Detection"]
+ #[inline(always)]
+ pub fn evd8(&self) -> EVD8_R {
+ EVD8_R::new(((self.bits >> 24) & 0x01) != 0)
+ }
+ #[doc = "Bit 25 - Channel 9 Event Detection"]
+ #[inline(always)]
+ pub fn evd9(&self) -> EVD9_R {
+ EVD9_R::new(((self.bits >> 25) & 0x01) != 0)
+ }
+ #[doc = "Bit 26 - Channel 10 Event Detection"]
+ #[inline(always)]
+ pub fn evd10(&self) -> EVD10_R {
+ EVD10_R::new(((self.bits >> 26) & 0x01) != 0)
+ }
+ #[doc = "Bit 27 - Channel 11 Event Detection"]
+ #[inline(always)]
+ pub fn evd11(&self) -> EVD11_R {
+ EVD11_R::new(((self.bits >> 27) & 0x01) != 0)
+ }
+}
+impl W {
+ #[doc = "Bit 0 - Channel 0 Overrun"]
+ #[inline(always)]
+ pub fn ovr0(&mut self) -> OVR0_W {
+ OVR0_W { w: self }
+ }
+ #[doc = "Bit 1 - Channel 1 Overrun"]
+ #[inline(always)]
+ pub fn ovr1(&mut self) -> OVR1_W {
+ OVR1_W { w: self }
+ }
+ #[doc = "Bit 2 - Channel 2 Overrun"]
+ #[inline(always)]
+ pub fn ovr2(&mut self) -> OVR2_W {
+ OVR2_W { w: self }
+ }
+ #[doc = "Bit 3 - Channel 3 Overrun"]
+ #[inline(always)]
+ pub fn ovr3(&mut self) -> OVR3_W {
+ OVR3_W { w: self }
+ }
+ #[doc = "Bit 4 - Channel 4 Overrun"]
+ #[inline(always)]
+ pub fn ovr4(&mut self) -> OVR4_W {
+ OVR4_W { w: self }
+ }
+ #[doc = "Bit 5 - Channel 5 Overrun"]
+ #[inline(always)]
+ pub fn ovr5(&mut self) -> OVR5_W {
+ OVR5_W { w: self }
+ }
+ #[doc = "Bit 6 - Channel 6 Overrun"]
+ #[inline(always)]
+ pub fn ovr6(&mut self) -> OVR6_W {
+ OVR6_W { w: self }
+ }
+ #[doc = "Bit 7 - Channel 7 Overrun"]
+ #[inline(always)]
+ pub fn ovr7(&mut self) -> OVR7_W {
+ OVR7_W { w: self }
+ }
+ #[doc = "Bit 8 - Channel 8 Overrun"]
+ #[inline(always)]
+ pub fn ovr8(&mut self) -> OVR8_W {
+ OVR8_W { w: self }
+ }
+ #[doc = "Bit 9 - Channel 9 Overrun"]
+ #[inline(always)]
+ pub fn ovr9(&mut self) -> OVR9_W {
+ OVR9_W { w: self }
+ }
+ #[doc = "Bit 10 - Channel 10 Overrun"]
+ #[inline(always)]
+ pub fn ovr10(&mut self) -> OVR10_W {
+ OVR10_W { w: self }
+ }
+ #[doc = "Bit 11 - Channel 11 Overrun"]
+ #[inline(always)]
+ pub fn ovr11(&mut self) -> OVR11_W {
+ OVR11_W { w: self }
+ }
+ #[doc = "Bit 16 - Channel 0 Event Detection"]
+ #[inline(always)]
+ pub fn evd0(&mut self) -> EVD0_W {
+ EVD0_W { w: self }
+ }
+ #[doc = "Bit 17 - Channel 1 Event Detection"]
+ #[inline(always)]
+ pub fn evd1(&mut self) -> EVD1_W {
+ EVD1_W { w: self }
+ }
+ #[doc = "Bit 18 - Channel 2 Event Detection"]
+ #[inline(always)]
+ pub fn evd2(&mut self) -> EVD2_W {
+ EVD2_W { w: self }
+ }
+ #[doc = "Bit 19 - Channel 3 Event Detection"]
+ #[inline(always)]
+ pub fn evd3(&mut self) -> EVD3_W {
+ EVD3_W { w: self }
+ }
+ #[doc = "Bit 20 - Channel 4 Event Detection"]
+ #[inline(always)]
+ pub fn evd4(&mut self) -> EVD4_W {
+ EVD4_W { w: self }
+ }
+ #[doc = "Bit 21 - Channel 5 Event Detection"]
+ #[inline(always)]
+ pub fn evd5(&mut self) -> EVD5_W {
+ EVD5_W { w: self }
+ }
+ #[doc = "Bit 22 - Channel 6 Event Detection"]
+ #[inline(always)]
+ pub fn evd6(&mut self) -> EVD6_W {
+ EVD6_W { w: self }
+ }
+ #[doc = "Bit 23 - Channel 7 Event Detection"]
+ #[inline(always)]
+ pub fn evd7(&mut self) -> EVD7_W {
+ EVD7_W { w: self }
+ }
+ #[doc = "Bit 24 - Channel 8 Event Detection"]
+ #[inline(always)]
+ pub fn evd8(&mut self) -> EVD8_W {
+ EVD8_W { w: self }
+ }
+ #[doc = "Bit 25 - Channel 9 Event Detection"]
+ #[inline(always)]
+ pub fn evd9(&mut self) -> EVD9_W {
+ EVD9_W { w: self }
+ }
+ #[doc = "Bit 26 - Channel 10 Event Detection"]
+ #[inline(always)]
+ pub fn evd10(&mut self) -> EVD10_W {
+ EVD10_W { w: self }
+ }
+ #[doc = "Bit 27 - Channel 11 Event Detection"]
+ #[inline(always)]
+ pub fn evd11(&mut self) -> EVD11_W {
+ EVD11_W { w: self }
+ }
+ #[doc = "Writes raw bits to the register."]
+ #[inline(always)]
+ pub unsafe fn bits(&mut self, bits: u32) -> &mut Self {
+ self.0.bits(bits);
+ self
+ }
+}
+#[doc = "Interrupt Flag Status and Clear\n\nThis register you can [`read`](crate::generic::Reg::read), [`write_with_zero`](crate::generic::Reg::write_with_zero), [`reset`](crate::generic::Reg::reset), [`write`](crate::generic::Reg::write), [`modify`](crate::generic::Reg::modify). See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [intflag](index.html) module"]
+pub struct INTFLAG_SPEC;
+impl crate::RegisterSpec for INTFLAG_SPEC {
+ type Ux = u32;
+}
+#[doc = "`read()` method returns [intflag::R](R) reader structure"]
+impl crate::Readable for INTFLAG_SPEC {
+ type Reader = R;
+}
+#[doc = "`write(|w| ..)` method takes [intflag::W](W) writer structure"]
+impl crate::Writable for INTFLAG_SPEC {
+ type Writer = W;
+}
+#[doc = "`reset()` method sets INTFLAG to value 0"]
+impl crate::Resettable for INTFLAG_SPEC {
+ #[inline(always)]
+ fn reset_value() -> Self::Ux {
+ 0
+ }
+}
diff --git a/src/evsys/swevt.rs b/src/evsys/swevt.rs
new file mode 100644
index 0000000..df58fe2
--- /dev/null
+++ b/src/evsys/swevt.rs
@@ -0,0 +1,369 @@
+#[doc = "Register `SWEVT` writer"]
+pub struct W(crate::W<SWEVT_SPEC>);
+impl core::ops::Deref for W {
+ type Target = crate::W<SWEVT_SPEC>;
+ #[inline(always)]
+ fn deref(&self) -> &Self::Target {
+ &self.0
+ }
+}
+impl core::ops::DerefMut for W {
+ #[inline(always)]
+ fn deref_mut(&mut self) -> &mut Self::Target {
+ &mut self.0
+ }
+}
+impl From<crate::W<SWEVT_SPEC>> for W {
+ #[inline(always)]
+ fn from(writer: crate::W<SWEVT_SPEC>) -> Self {
+ W(writer)
+ }
+}
+#[doc = "Field `CHANNEL0` writer - Channel 0 Software Selection"]
+pub struct CHANNEL0_W<'a> {
+ w: &'a mut W,
+}
+impl<'a> CHANNEL0_W<'a> {
+ #[doc = r"Sets the field bit"]
+ #[inline(always)]
+ pub fn set_bit(self) -> &'a mut W {
+ self.bit(true)
+ }
+ #[doc = r"Clears the field bit"]
+ #[inline(always)]
+ pub fn clear_bit(self) -> &'a mut W {
+ self.bit(false)
+ }
+ #[doc = r"Writes raw bits to the field"]
+ #[inline(always)]
+ pub fn bit(self, value: bool) -> &'a mut W {
+ self.w.bits = (self.w.bits & !0x01) | (value as u32 & 0x01);
+ self.w
+ }
+}
+#[doc = "Field `CHANNEL1` writer - Channel 1 Software Selection"]
+pub struct CHANNEL1_W<'a> {
+ w: &'a mut W,
+}
+impl<'a> CHANNEL1_W<'a> {
+ #[doc = r"Sets the field bit"]
+ #[inline(always)]
+ pub fn set_bit(self) -> &'a mut W {
+ self.bit(true)
+ }
+ #[doc = r"Clears the field bit"]
+ #[inline(always)]
+ pub fn clear_bit(self) -> &'a mut W {
+ self.bit(false)
+ }
+ #[doc = r"Writes raw bits to the field"]
+ #[inline(always)]
+ pub fn bit(self, value: bool) -> &'a mut W {
+ self.w.bits = (self.w.bits & !(0x01 << 1)) | ((value as u32 & 0x01) << 1);
+ self.w
+ }
+}
+#[doc = "Field `CHANNEL2` writer - Channel 2 Software Selection"]
+pub struct CHANNEL2_W<'a> {
+ w: &'a mut W,
+}
+impl<'a> CHANNEL2_W<'a> {
+ #[doc = r"Sets the field bit"]
+ #[inline(always)]
+ pub fn set_bit(self) -> &'a mut W {
+ self.bit(true)
+ }
+ #[doc = r"Clears the field bit"]
+ #[inline(always)]
+ pub fn clear_bit(self) -> &'a mut W {
+ self.bit(false)
+ }
+ #[doc = r"Writes raw bits to the field"]
+ #[inline(always)]
+ pub fn bit(self, value: bool) -> &'a mut W {
+ self.w.bits = (self.w.bits & !(0x01 << 2)) | ((value as u32 & 0x01) << 2);
+ self.w
+ }
+}
+#[doc = "Field `CHANNEL3` writer - Channel 3 Software Selection"]
+pub struct CHANNEL3_W<'a> {
+ w: &'a mut W,
+}
+impl<'a> CHANNEL3_W<'a> {
+ #[doc = r"Sets the field bit"]
+ #[inline(always)]
+ pub fn set_bit(self) -> &'a mut W {
+ self.bit(true)
+ }
+ #[doc = r"Clears the field bit"]
+ #[inline(always)]
+ pub fn clear_bit(self) -> &'a mut W {
+ self.bit(false)
+ }
+ #[doc = r"Writes raw bits to the field"]
+ #[inline(always)]
+ pub fn bit(self, value: bool) -> &'a mut W {
+ self.w.bits = (self.w.bits & !(0x01 << 3)) | ((value as u32 & 0x01) << 3);
+ self.w
+ }
+}
+#[doc = "Field `CHANNEL4` writer - Channel 4 Software Selection"]
+pub struct CHANNEL4_W<'a> {
+ w: &'a mut W,
+}
+impl<'a> CHANNEL4_W<'a> {
+ #[doc = r"Sets the field bit"]
+ #[inline(always)]
+ pub fn set_bit(self) -> &'a mut W {
+ self.bit(true)
+ }
+ #[doc = r"Clears the field bit"]
+ #[inline(always)]
+ pub fn clear_bit(self) -> &'a mut W {
+ self.bit(false)
+ }
+ #[doc = r"Writes raw bits to the field"]
+ #[inline(always)]
+ pub fn bit(self, value: bool) -> &'a mut W {
+ self.w.bits = (self.w.bits & !(0x01 << 4)) | ((value as u32 & 0x01) << 4);
+ self.w
+ }
+}
+#[doc = "Field `CHANNEL5` writer - Channel 5 Software Selection"]
+pub struct CHANNEL5_W<'a> {
+ w: &'a mut W,
+}
+impl<'a> CHANNEL5_W<'a> {
+ #[doc = r"Sets the field bit"]
+ #[inline(always)]
+ pub fn set_bit(self) -> &'a mut W {
+ self.bit(true)
+ }
+ #[doc = r"Clears the field bit"]
+ #[inline(always)]
+ pub fn clear_bit(self) -> &'a mut W {
+ self.bit(false)
+ }
+ #[doc = r"Writes raw bits to the field"]
+ #[inline(always)]
+ pub fn bit(self, value: bool) -> &'a mut W {
+ self.w.bits = (self.w.bits & !(0x01 << 5)) | ((value as u32 & 0x01) << 5);
+ self.w
+ }
+}
+#[doc = "Field `CHANNEL6` writer - Channel 6 Software Selection"]
+pub struct CHANNEL6_W<'a> {
+ w: &'a mut W,
+}
+impl<'a> CHANNEL6_W<'a> {
+ #[doc = r"Sets the field bit"]
+ #[inline(always)]
+ pub fn set_bit(self) -> &'a mut W {
+ self.bit(true)
+ }
+ #[doc = r"Clears the field bit"]
+ #[inline(always)]
+ pub fn clear_bit(self) -> &'a mut W {
+ self.bit(false)
+ }
+ #[doc = r"Writes raw bits to the field"]
+ #[inline(always)]
+ pub fn bit(self, value: bool) -> &'a mut W {
+ self.w.bits = (self.w.bits & !(0x01 << 6)) | ((value as u32 & 0x01) << 6);
+ self.w
+ }
+}
+#[doc = "Field `CHANNEL7` writer - Channel 7 Software Selection"]
+pub struct CHANNEL7_W<'a> {
+ w: &'a mut W,
+}
+impl<'a> CHANNEL7_W<'a> {
+ #[doc = r"Sets the field bit"]
+ #[inline(always)]
+ pub fn set_bit(self) -> &'a mut W {
+ self.bit(true)
+ }
+ #[doc = r"Clears the field bit"]
+ #[inline(always)]
+ pub fn clear_bit(self) -> &'a mut W {
+ self.bit(false)
+ }
+ #[doc = r"Writes raw bits to the field"]
+ #[inline(always)]
+ pub fn bit(self, value: bool) -> &'a mut W {
+ self.w.bits = (self.w.bits & !(0x01 << 7)) | ((value as u32 & 0x01) << 7);
+ self.w
+ }
+}
+#[doc = "Field `CHANNEL8` writer - Channel 8 Software Selection"]
+pub struct CHANNEL8_W<'a> {
+ w: &'a mut W,
+}
+impl<'a> CHANNEL8_W<'a> {
+ #[doc = r"Sets the field bit"]
+ #[inline(always)]
+ pub fn set_bit(self) -> &'a mut W {
+ self.bit(true)
+ }
+ #[doc = r"Clears the field bit"]
+ #[inline(always)]
+ pub fn clear_bit(self) -> &'a mut W {
+ self.bit(false)
+ }
+ #[doc = r"Writes raw bits to the field"]
+ #[inline(always)]
+ pub fn bit(self, value: bool) -> &'a mut W {
+ self.w.bits = (self.w.bits & !(0x01 << 8)) | ((value as u32 & 0x01) << 8);
+ self.w
+ }
+}
+#[doc = "Field `CHANNEL9` writer - Channel 9 Software Selection"]
+pub struct CHANNEL9_W<'a> {
+ w: &'a mut W,
+}
+impl<'a> CHANNEL9_W<'a> {
+ #[doc = r"Sets the field bit"]
+ #[inline(always)]
+ pub fn set_bit(self) -> &'a mut W {
+ self.bit(true)
+ }
+ #[doc = r"Clears the field bit"]
+ #[inline(always)]
+ pub fn clear_bit(self) -> &'a mut W {
+ self.bit(false)
+ }
+ #[doc = r"Writes raw bits to the field"]
+ #[inline(always)]
+ pub fn bit(self, value: bool) -> &'a mut W {
+ self.w.bits = (self.w.bits & !(0x01 << 9)) | ((value as u32 & 0x01) << 9);
+ self.w
+ }
+}
+#[doc = "Field `CHANNEL10` writer - Channel 10 Software Selection"]
+pub struct CHANNEL10_W<'a> {
+ w: &'a mut W,
+}
+impl<'a> CHANNEL10_W<'a> {
+ #[doc = r"Sets the field bit"]
+ #[inline(always)]
+ pub fn set_bit(self) -> &'a mut W {
+ self.bit(true)
+ }
+ #[doc = r"Clears the field bit"]
+ #[inline(always)]
+ pub fn clear_bit(self) -> &'a mut W {
+ self.bit(false)
+ }
+ #[doc = r"Writes raw bits to the field"]
+ #[inline(always)]
+ pub fn bit(self, value: bool) -> &'a mut W {
+ self.w.bits = (self.w.bits & !(0x01 << 10)) | ((value as u32 & 0x01) << 10);
+ self.w
+ }
+}
+#[doc = "Field `CHANNEL11` writer - Channel 11 Software Selection"]
+pub struct CHANNEL11_W<'a> {
+ w: &'a mut W,
+}
+impl<'a> CHANNEL11_W<'a> {
+ #[doc = r"Sets the field bit"]
+ #[inline(always)]
+ pub fn set_bit(self) -> &'a mut W {
+ self.bit(true)
+ }
+ #[doc = r"Clears the field bit"]
+ #[inline(always)]
+ pub fn clear_bit(self) -> &'a mut W {
+ self.bit(false)
+ }
+ #[doc = r"Writes raw bits to the field"]
+ #[inline(always)]
+ pub fn bit(self, value: bool) -> &'a mut W {
+ self.w.bits = (self.w.bits & !(0x01 << 11)) | ((value as u32 & 0x01) << 11);
+ self.w
+ }
+}
+impl W {
+ #[doc = "Bit 0 - Channel 0 Software Selection"]
+ #[inline(always)]
+ pub fn channel0(&mut self) -> CHANNEL0_W {
+ CHANNEL0_W { w: self }
+ }
+ #[doc = "Bit 1 - Channel 1 Software Selection"]
+ #[inline(always)]
+ pub fn channel1(&mut self) -> CHANNEL1_W {
+ CHANNEL1_W { w: self }
+ }
+ #[doc = "Bit 2 - Channel 2 Software Selection"]
+ #[inline(always)]
+ pub fn channel2(&mut self) -> CHANNEL2_W {
+ CHANNEL2_W { w: self }
+ }
+ #[doc = "Bit 3 - Channel 3 Software Selection"]
+ #[inline(always)]
+ pub fn channel3(&mut self) -> CHANNEL3_W {
+ CHANNEL3_W { w: self }
+ }
+ #[doc = "Bit 4 - Channel 4 Software Selection"]
+ #[inline(always)]
+ pub fn channel4(&mut self) -> CHANNEL4_W {
+ CHANNEL4_W { w: self }
+ }
+ #[doc = "Bit 5 - Channel 5 Software Selection"]
+ #[inline(always)]
+ pub fn channel5(&mut self) -> CHANNEL5_W {
+ CHANNEL5_W { w: self }
+ }
+ #[doc = "Bit 6 - Channel 6 Software Selection"]
+ #[inline(always)]
+ pub fn channel6(&mut self) -> CHANNEL6_W {
+ CHANNEL6_W { w: self }
+ }
+ #[doc = "Bit 7 - Channel 7 Software Selection"]
+ #[inline(always)]
+ pub fn channel7(&mut self) -> CHANNEL7_W {
+ CHANNEL7_W { w: self }
+ }
+ #[doc = "Bit 8 - Channel 8 Software Selection"]
+ #[inline(always)]
+ pub fn channel8(&mut self) -> CHANNEL8_W {
+ CHANNEL8_W { w: self }
+ }
+ #[doc = "Bit 9 - Channel 9 Software Selection"]
+ #[inline(always)]
+ pub fn channel9(&mut self) -> CHANNEL9_W {
+ CHANNEL9_W { w: self }
+ }
+ #[doc = "Bit 10 - Channel 10 Software Selection"]
+ #[inline(always)]
+ pub fn channel10(&mut self) -> CHANNEL10_W {
+ CHANNEL10_W { w: self }
+ }
+ #[doc = "Bit 11 - Channel 11 Software Selection"]
+ #[inline(always)]
+ pub fn channel11(&mut self) -> CHANNEL11_W {
+ CHANNEL11_W { w: self }
+ }
+ #[doc = "Writes raw bits to the register."]
+ #[inline(always)]
+ pub unsafe fn bits(&mut self, bits: u32) -> &mut Self {
+ self.0.bits(bits);
+ self
+ }
+}
+#[doc = "Software Event\n\nThis register you can [`write_with_zero`](crate::generic::Reg::write_with_zero), [`reset`](crate::generic::Reg::reset), [`write`](crate::generic::Reg::write). See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [swevt](index.html) module"]
+pub struct SWEVT_SPEC;
+impl crate::RegisterSpec for SWEVT_SPEC {
+ type Ux = u32;
+}
+#[doc = "`write(|w| ..)` method takes [swevt::W](W) writer structure"]
+impl crate::Writable for SWEVT_SPEC {
+ type Writer = W;
+}
+#[doc = "`reset()` method sets SWEVT to value 0"]
+impl crate::Resettable for SWEVT_SPEC {
+ #[inline(always)]
+ fn reset_value() -> Self::Ux {
+ 0
+ }
+}
diff --git a/src/evsys/user.rs b/src/evsys/user.rs
new file mode 100644
index 0000000..11e51b5
--- /dev/null
+++ b/src/evsys/user.rs
@@ -0,0 +1,103 @@
+#[doc = "Register `USER[%s]` reader"]
+pub struct R(crate::R<USER_SPEC>);
+impl core::ops::Deref for R {
+ type Target = crate::R<USER_SPEC>;
+ #[inline(always)]
+ fn deref(&self) -> &Self::Target {
+ &self.0
+ }
+}
+impl From<crate::R<USER_SPEC>> for R {
+ #[inline(always)]
+ fn from(reader: crate::R<USER_SPEC>) -> Self {
+ R(reader)
+ }
+}
+#[doc = "Register `USER[%s]` writer"]
+pub struct W(crate::W<USER_SPEC>);
+impl core::ops::Deref for W {
+ type Target = crate::W<USER_SPEC>;
+ #[inline(always)]
+ fn deref(&self) -> &Self::Target {
+ &self.0
+ }
+}
+impl core::ops::DerefMut for W {
+ #[inline(always)]
+ fn deref_mut(&mut self) -> &mut Self::Target {
+ &mut self.0
+ }
+}
+impl From<crate::W<USER_SPEC>> for W {
+ #[inline(always)]
+ fn from(writer: crate::W<USER_SPEC>) -> Self {
+ W(writer)
+ }
+}
+#[doc = "Field `CHANNEL` reader - Channel Event Selection"]
+pub struct CHANNEL_R(crate::FieldReader<u8, u8>);
+impl CHANNEL_R {
+ pub(crate) fn new(bits: u8) -> Self {
+ CHANNEL_R(crate::FieldReader::new(bits))
+ }
+}
+impl core::ops::Deref for CHANNEL_R {
+ type Target = crate::FieldReader<u8, u8>;
+ #[inline(always)]
+ fn deref(&self) -> &Self::Target {
+ &self.0
+ }
+}
+#[doc = "Field `CHANNEL` writer - Channel Event Selection"]
+pub struct CHANNEL_W<'a> {
+ w: &'a mut W,
+}
+impl<'a> CHANNEL_W<'a> {
+ #[doc = r"Writes raw bits to the field"]
+ #[inline(always)]
+ pub unsafe fn bits(self, value: u8) -> &'a mut W {
+ self.w.bits = (self.w.bits & !0x1f) | (value as u32 & 0x1f);
+ self.w
+ }
+}
+impl R {
+ #[doc = "Bits 0:4 - Channel Event Selection"]
+ #[inline(always)]
+ pub fn channel(&self) -> CHANNEL_R {
+ CHANNEL_R::new((self.bits & 0x1f) as u8)
+ }
+}
+impl W {
+ #[doc = "Bits 0:4 - Channel Event Selection"]
+ #[inline(always)]
+ pub fn channel(&mut self) -> CHANNEL_W {
+ CHANNEL_W { w: self }
+ }
+ #[doc = "Writes raw bits to the register."]
+ #[inline(always)]
+ pub unsafe fn bits(&mut self, bits: u32) -> &mut Self {
+ self.0.bits(bits);
+ self
+ }
+}
+#[doc = "User Multiplexer n\n\nThis register you can [`read`](crate::generic::Reg::read), [`write_with_zero`](crate::generic::Reg::write_with_zero), [`reset`](crate::generic::Reg::reset), [`write`](crate::generic::Reg::write), [`modify`](crate::generic::Reg::modify). See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [user](index.html) module"]
+pub struct USER_SPEC;
+impl crate::RegisterSpec for USER_SPEC {
+ type Ux = u32;
+}
+#[doc = "`read()` method returns [user::R](R) reader structure"]
+impl crate::Readable for USER_SPEC {
+ type Reader = R;
+}
+#[doc = "`write(|w| ..)` method takes [user::W](W) writer structure"]
+impl crate::Writable for USER_SPEC {
+ type Writer = W;
+}
+#[doc = "`reset()` method sets USER[%s]
+to value 0"]
+impl crate::Resettable for USER_SPEC {
+ #[inline(always)]
+ fn reset_value() -> Self::Ux {
+ 0
+ }
+}