diff --git a/src/io_bank0.rs b/src/io_bank0.rs index 730aa924e..4644974e4 100644 --- a/src/io_bank0.rs +++ b/src/io_bank0.rs @@ -17,30 +17,12 @@ pub struct RegisterBlock { pub proc1_intf: [crate::Reg; 4], #[doc = "0x150..0x160 - Interrupt status after masking & forcing for proc1"] pub proc1_ints: [crate::Reg; 4], - #[doc = "0x160 - Interrupt Enable for dormant_wake"] - pub dormant_wake_inte0: crate::Reg, - #[doc = "0x164 - Interrupt Enable for dormant_wake"] - pub dormant_wake_inte1: crate::Reg, - #[doc = "0x168 - Interrupt Enable for dormant_wake"] - pub dormant_wake_inte2: crate::Reg, - #[doc = "0x16c - Interrupt Enable for dormant_wake"] - pub dormant_wake_inte3: crate::Reg, - #[doc = "0x170 - Interrupt Force for dormant_wake"] - pub dormant_wake_intf0: crate::Reg, - #[doc = "0x174 - Interrupt Force for dormant_wake"] - pub dormant_wake_intf1: crate::Reg, - #[doc = "0x178 - Interrupt Force for dormant_wake"] - pub dormant_wake_intf2: crate::Reg, - #[doc = "0x17c - Interrupt Force for dormant_wake"] - pub dormant_wake_intf3: crate::Reg, - #[doc = "0x180 - Interrupt status after masking & forcing for dormant_wake"] - pub dormant_wake_ints0: crate::Reg, - #[doc = "0x184 - Interrupt status after masking & forcing for dormant_wake"] - pub dormant_wake_ints1: crate::Reg, - #[doc = "0x188 - Interrupt status after masking & forcing for dormant_wake"] - pub dormant_wake_ints2: crate::Reg, - #[doc = "0x18c - Interrupt status after masking & forcing for dormant_wake"] - pub dormant_wake_ints3: crate::Reg, + #[doc = "0x160..0x170 - Interrupt Enable for dormant_wake"] + pub dormant_wake_inte: [crate::Reg; 4], + #[doc = "0x170..0x180 - Interrupt Force for dormant_wake"] + pub dormant_wake_intf: [crate::Reg; 4], + #[doc = "0x180..0x190 - Interrupt status after masking & forcing for dormant_wake"] + pub dormant_wake_ints: [crate::Reg; 4], } #[doc = r"Register block"] #[repr(C)] @@ -81,51 +63,15 @@ pub mod proc1_intf; pub type PROC1_INTS = crate::Reg; #[doc = "Interrupt status after masking & forcing for proc1"] pub mod proc1_ints; -#[doc = "DORMANT_WAKE_INTE0 register accessor: an alias for `Reg`"] -pub type DORMANT_WAKE_INTE0 = crate::Reg; +#[doc = "DORMANT_WAKE_INTE register accessor: an alias for `Reg`"] +pub type DORMANT_WAKE_INTE = crate::Reg; #[doc = "Interrupt Enable for dormant_wake"] -pub mod dormant_wake_inte0; -#[doc = "DORMANT_WAKE_INTE1 register accessor: an alias for `Reg`"] -pub type DORMANT_WAKE_INTE1 = crate::Reg; -#[doc = "Interrupt Enable for dormant_wake"] -pub mod dormant_wake_inte1; -#[doc = "DORMANT_WAKE_INTE2 register accessor: an alias for `Reg`"] -pub type DORMANT_WAKE_INTE2 = crate::Reg; -#[doc = "Interrupt Enable for dormant_wake"] -pub mod dormant_wake_inte2; -#[doc = "DORMANT_WAKE_INTE3 register accessor: an alias for `Reg`"] -pub type DORMANT_WAKE_INTE3 = crate::Reg; -#[doc = "Interrupt Enable for dormant_wake"] -pub mod dormant_wake_inte3; -#[doc = "DORMANT_WAKE_INTF0 register accessor: an alias for `Reg`"] -pub type DORMANT_WAKE_INTF0 = crate::Reg; -#[doc = "Interrupt Force for dormant_wake"] -pub mod dormant_wake_intf0; -#[doc = "DORMANT_WAKE_INTF1 register accessor: an alias for `Reg`"] -pub type DORMANT_WAKE_INTF1 = crate::Reg; -#[doc = "Interrupt Force for dormant_wake"] -pub mod dormant_wake_intf1; -#[doc = "DORMANT_WAKE_INTF2 register accessor: an alias for `Reg`"] -pub type DORMANT_WAKE_INTF2 = crate::Reg; +pub mod dormant_wake_inte; +#[doc = "DORMANT_WAKE_INTF register accessor: an alias for `Reg`"] +pub type DORMANT_WAKE_INTF = crate::Reg; #[doc = "Interrupt Force for dormant_wake"] -pub mod dormant_wake_intf2; -#[doc = "DORMANT_WAKE_INTF3 register accessor: an alias for `Reg`"] -pub type DORMANT_WAKE_INTF3 = crate::Reg; -#[doc = "Interrupt Force for dormant_wake"] -pub mod dormant_wake_intf3; -#[doc = "DORMANT_WAKE_INTS0 register accessor: an alias for `Reg`"] -pub type DORMANT_WAKE_INTS0 = crate::Reg; -#[doc = "Interrupt status after masking & forcing for dormant_wake"] -pub mod dormant_wake_ints0; -#[doc = "DORMANT_WAKE_INTS1 register accessor: an alias for `Reg`"] -pub type DORMANT_WAKE_INTS1 = crate::Reg; -#[doc = "Interrupt status after masking & forcing for dormant_wake"] -pub mod dormant_wake_ints1; -#[doc = "DORMANT_WAKE_INTS2 register accessor: an alias for `Reg`"] -pub type DORMANT_WAKE_INTS2 = crate::Reg; -#[doc = "Interrupt status after masking & forcing for dormant_wake"] -pub mod dormant_wake_ints2; -#[doc = "DORMANT_WAKE_INTS3 register accessor: an alias for `Reg`"] -pub type DORMANT_WAKE_INTS3 = crate::Reg; +pub mod dormant_wake_intf; +#[doc = "DORMANT_WAKE_INTS register accessor: an alias for `Reg`"] +pub type DORMANT_WAKE_INTS = crate::Reg; #[doc = "Interrupt status after masking & forcing for dormant_wake"] -pub mod dormant_wake_ints3; +pub mod dormant_wake_ints; diff --git a/src/io_bank0/dormant_wake_inte0.rs b/src/io_bank0/dormant_wake_inte.rs similarity index 97% rename from src/io_bank0/dormant_wake_inte0.rs rename to src/io_bank0/dormant_wake_inte.rs index 67b96e6f5..7c341f162 100644 --- a/src/io_bank0/dormant_wake_inte0.rs +++ b/src/io_bank0/dormant_wake_inte.rs @@ -1,22 +1,22 @@ -#[doc = "Register `DORMANT_WAKE_INTE0` reader"] -pub struct R(crate::R); +#[doc = "Register `DORMANT_WAKE_INTE%s` reader"] +pub struct R(crate::R); impl core::ops::Deref for R { - type Target = crate::R; + type Target = crate::R; #[inline(always)] fn deref(&self) -> &Self::Target { &self.0 } } -impl From> for R { +impl From> for R { #[inline(always)] - fn from(reader: crate::R) -> Self { + fn from(reader: crate::R) -> Self { R(reader) } } -#[doc = "Register `DORMANT_WAKE_INTE0` writer"] -pub struct W(crate::W); +#[doc = "Register `DORMANT_WAKE_INTE%s` writer"] +pub struct W(crate::W); impl core::ops::Deref for W { - type Target = crate::W; + type Target = crate::W; #[inline(always)] fn deref(&self) -> &Self::Target { &self.0 @@ -28,9 +28,9 @@ impl core::ops::DerefMut for W { &mut self.0 } } -impl From> for W { +impl From> for W { #[inline(always)] - fn from(writer: crate::W) -> Self { + fn from(writer: crate::W) -> Self { W(writer) } } @@ -1520,21 +1520,21 @@ impl W { This 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). -For information about available fields see [dormant_wake_inte0](index.html) module"] -pub struct DORMANT_WAKE_INTE0_SPEC; -impl crate::RegisterSpec for DORMANT_WAKE_INTE0_SPEC { +For information about available fields see [dormant_wake_inte](index.html) module"] +pub struct DORMANT_WAKE_INTE_SPEC; +impl crate::RegisterSpec for DORMANT_WAKE_INTE_SPEC { type Ux = u32; } -#[doc = "`read()` method returns [dormant_wake_inte0::R](R) reader structure"] -impl crate::Readable for DORMANT_WAKE_INTE0_SPEC { +#[doc = "`read()` method returns [dormant_wake_inte::R](R) reader structure"] +impl crate::Readable for DORMANT_WAKE_INTE_SPEC { type Reader = R; } -#[doc = "`write(|w| ..)` method takes [dormant_wake_inte0::W](W) writer structure"] -impl crate::Writable for DORMANT_WAKE_INTE0_SPEC { +#[doc = "`write(|w| ..)` method takes [dormant_wake_inte::W](W) writer structure"] +impl crate::Writable for DORMANT_WAKE_INTE_SPEC { type Writer = W; } -#[doc = "`reset()` method sets DORMANT_WAKE_INTE0 to value 0"] -impl crate::Resettable for DORMANT_WAKE_INTE0_SPEC { +#[doc = "`reset()` method sets DORMANT_WAKE_INTE%s to value 0"] +impl crate::Resettable for DORMANT_WAKE_INTE_SPEC { #[inline(always)] fn reset_value() -> Self::Ux { 0 diff --git a/src/io_bank0/dormant_wake_inte1.rs b/src/io_bank0/dormant_wake_inte1.rs deleted file mode 100644 index 7ea691711..000000000 --- a/src/io_bank0/dormant_wake_inte1.rs +++ /dev/null @@ -1,1542 +0,0 @@ -#[doc = "Register `DORMANT_WAKE_INTE1` reader"] -pub struct R(crate::R); -impl core::ops::Deref for R { - type Target = crate::R; - #[inline(always)] - fn deref(&self) -> &Self::Target { - &self.0 - } -} -impl From> for R { - #[inline(always)] - fn from(reader: crate::R) -> Self { - R(reader) - } -} -#[doc = "Register `DORMANT_WAKE_INTE1` writer"] -pub struct W(crate::W); -impl core::ops::Deref for W { - type Target = crate::W; - #[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> for W { - #[inline(always)] - fn from(writer: crate::W) -> Self { - W(writer) - } -} -#[doc = "Field `GPIO15_EDGE_HIGH` reader - "] -pub struct GPIO15_EDGE_HIGH_R(crate::FieldReader); -impl GPIO15_EDGE_HIGH_R { - pub(crate) fn new(bits: bool) -> Self { - GPIO15_EDGE_HIGH_R(crate::FieldReader::new(bits)) - } -} -impl core::ops::Deref for GPIO15_EDGE_HIGH_R { - type Target = crate::FieldReader; - #[inline(always)] - fn deref(&self) -> &Self::Target { - &self.0 - } -} -#[doc = "Field `GPIO15_EDGE_HIGH` writer - "] -pub struct GPIO15_EDGE_HIGH_W<'a> { - w: &'a mut W, -} -impl<'a> GPIO15_EDGE_HIGH_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 << 31)) | ((value as u32 & 0x01) << 31); - self.w - } -} -#[doc = "Field `GPIO15_EDGE_LOW` reader - "] -pub struct GPIO15_EDGE_LOW_R(crate::FieldReader); -impl GPIO15_EDGE_LOW_R { - pub(crate) fn new(bits: bool) -> Self { - GPIO15_EDGE_LOW_R(crate::FieldReader::new(bits)) - } -} -impl core::ops::Deref for GPIO15_EDGE_LOW_R { - type Target = crate::FieldReader; - #[inline(always)] - fn deref(&self) -> &Self::Target { - &self.0 - } -} -#[doc = "Field `GPIO15_EDGE_LOW` writer - "] -pub struct GPIO15_EDGE_LOW_W<'a> { - w: &'a mut W, -} -impl<'a> GPIO15_EDGE_LOW_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 << 30)) | ((value as u32 & 0x01) << 30); - self.w - } -} -#[doc = "Field `GPIO15_LEVEL_HIGH` reader - "] -pub struct GPIO15_LEVEL_HIGH_R(crate::FieldReader); -impl GPIO15_LEVEL_HIGH_R { - pub(crate) fn new(bits: bool) -> Self { - GPIO15_LEVEL_HIGH_R(crate::FieldReader::new(bits)) - } -} -impl core::ops::Deref for GPIO15_LEVEL_HIGH_R { - type Target = crate::FieldReader; - #[inline(always)] - fn deref(&self) -> &Self::Target { - &self.0 - } -} -#[doc = "Field `GPIO15_LEVEL_HIGH` writer - "] -pub struct GPIO15_LEVEL_HIGH_W<'a> { - w: &'a mut W, -} -impl<'a> GPIO15_LEVEL_HIGH_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 << 29)) | ((value as u32 & 0x01) << 29); - self.w - } -} -#[doc = "Field `GPIO15_LEVEL_LOW` reader - "] -pub struct GPIO15_LEVEL_LOW_R(crate::FieldReader); -impl GPIO15_LEVEL_LOW_R { - pub(crate) fn new(bits: bool) -> Self { - GPIO15_LEVEL_LOW_R(crate::FieldReader::new(bits)) - } -} -impl core::ops::Deref for GPIO15_LEVEL_LOW_R { - type Target = crate::FieldReader; - #[inline(always)] - fn deref(&self) -> &Self::Target { - &self.0 - } -} -#[doc = "Field `GPIO15_LEVEL_LOW` writer - "] -pub struct GPIO15_LEVEL_LOW_W<'a> { - w: &'a mut W, -} -impl<'a> GPIO15_LEVEL_LOW_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 << 28)) | ((value as u32 & 0x01) << 28); - self.w - } -} -#[doc = "Field `GPIO14_EDGE_HIGH` reader - "] -pub struct GPIO14_EDGE_HIGH_R(crate::FieldReader); -impl GPIO14_EDGE_HIGH_R { - pub(crate) fn new(bits: bool) -> Self { - GPIO14_EDGE_HIGH_R(crate::FieldReader::new(bits)) - } -} -impl core::ops::Deref for GPIO14_EDGE_HIGH_R { - type Target = crate::FieldReader; - #[inline(always)] - fn deref(&self) -> &Self::Target { - &self.0 - } -} -#[doc = "Field `GPIO14_EDGE_HIGH` writer - "] -pub struct GPIO14_EDGE_HIGH_W<'a> { - w: &'a mut W, -} -impl<'a> GPIO14_EDGE_HIGH_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 - } -} -#[doc = "Field `GPIO14_EDGE_LOW` reader - "] -pub struct GPIO14_EDGE_LOW_R(crate::FieldReader); -impl GPIO14_EDGE_LOW_R { - pub(crate) fn new(bits: bool) -> Self { - GPIO14_EDGE_LOW_R(crate::FieldReader::new(bits)) - } -} -impl core::ops::Deref for GPIO14_EDGE_LOW_R { - type Target = crate::FieldReader; - #[inline(always)] - fn deref(&self) -> &Self::Target { - &self.0 - } -} -#[doc = "Field `GPIO14_EDGE_LOW` writer - "] -pub struct GPIO14_EDGE_LOW_W<'a> { - w: &'a mut W, -} -impl<'a> GPIO14_EDGE_LOW_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 `GPIO14_LEVEL_HIGH` reader - "] -pub struct GPIO14_LEVEL_HIGH_R(crate::FieldReader); -impl GPIO14_LEVEL_HIGH_R { - pub(crate) fn new(bits: bool) -> Self { - GPIO14_LEVEL_HIGH_R(crate::FieldReader::new(bits)) - } -} -impl core::ops::Deref for GPIO14_LEVEL_HIGH_R { - type Target = crate::FieldReader; - #[inline(always)] - fn deref(&self) -> &Self::Target { - &self.0 - } -} -#[doc = "Field `GPIO14_LEVEL_HIGH` writer - "] -pub struct GPIO14_LEVEL_HIGH_W<'a> { - w: &'a mut W, -} -impl<'a> GPIO14_LEVEL_HIGH_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 `GPIO14_LEVEL_LOW` reader - "] -pub struct GPIO14_LEVEL_LOW_R(crate::FieldReader); -impl GPIO14_LEVEL_LOW_R { - pub(crate) fn new(bits: bool) -> Self { - GPIO14_LEVEL_LOW_R(crate::FieldReader::new(bits)) - } -} -impl core::ops::Deref for GPIO14_LEVEL_LOW_R { - type Target = crate::FieldReader; - #[inline(always)] - fn deref(&self) -> &Self::Target { - &self.0 - } -} -#[doc = "Field `GPIO14_LEVEL_LOW` writer - "] -pub struct GPIO14_LEVEL_LOW_W<'a> { - w: &'a mut W, -} -impl<'a> GPIO14_LEVEL_LOW_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 `GPIO13_EDGE_HIGH` reader - "] -pub struct GPIO13_EDGE_HIGH_R(crate::FieldReader); -impl GPIO13_EDGE_HIGH_R { - pub(crate) fn new(bits: bool) -> Self { - GPIO13_EDGE_HIGH_R(crate::FieldReader::new(bits)) - } -} -impl core::ops::Deref for GPIO13_EDGE_HIGH_R { - type Target = crate::FieldReader; - #[inline(always)] - fn deref(&self) -> &Self::Target { - &self.0 - } -} -#[doc = "Field `GPIO13_EDGE_HIGH` writer - "] -pub struct GPIO13_EDGE_HIGH_W<'a> { - w: &'a mut W, -} -impl<'a> GPIO13_EDGE_HIGH_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 `GPIO13_EDGE_LOW` reader - "] -pub struct GPIO13_EDGE_LOW_R(crate::FieldReader); -impl GPIO13_EDGE_LOW_R { - pub(crate) fn new(bits: bool) -> Self { - GPIO13_EDGE_LOW_R(crate::FieldReader::new(bits)) - } -} -impl core::ops::Deref for GPIO13_EDGE_LOW_R { - type Target = crate::FieldReader; - #[inline(always)] - fn deref(&self) -> &Self::Target { - &self.0 - } -} -#[doc = "Field `GPIO13_EDGE_LOW` writer - "] -pub struct GPIO13_EDGE_LOW_W<'a> { - w: &'a mut W, -} -impl<'a> GPIO13_EDGE_LOW_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 `GPIO13_LEVEL_HIGH` reader - "] -pub struct GPIO13_LEVEL_HIGH_R(crate::FieldReader); -impl GPIO13_LEVEL_HIGH_R { - pub(crate) fn new(bits: bool) -> Self { - GPIO13_LEVEL_HIGH_R(crate::FieldReader::new(bits)) - } -} -impl core::ops::Deref for GPIO13_LEVEL_HIGH_R { - type Target = crate::FieldReader; - #[inline(always)] - fn deref(&self) -> &Self::Target { - &self.0 - } -} -#[doc = "Field `GPIO13_LEVEL_HIGH` writer - "] -pub struct GPIO13_LEVEL_HIGH_W<'a> { - w: &'a mut W, -} -impl<'a> GPIO13_LEVEL_HIGH_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 `GPIO13_LEVEL_LOW` reader - "] -pub struct GPIO13_LEVEL_LOW_R(crate::FieldReader); -impl GPIO13_LEVEL_LOW_R { - pub(crate) fn new(bits: bool) -> Self { - GPIO13_LEVEL_LOW_R(crate::FieldReader::new(bits)) - } -} -impl core::ops::Deref for GPIO13_LEVEL_LOW_R { - type Target = crate::FieldReader; - #[inline(always)] - fn deref(&self) -> &Self::Target { - &self.0 - } -} -#[doc = "Field `GPIO13_LEVEL_LOW` writer - "] -pub struct GPIO13_LEVEL_LOW_W<'a> { - w: &'a mut W, -} -impl<'a> GPIO13_LEVEL_LOW_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 `GPIO12_EDGE_HIGH` reader - "] -pub struct GPIO12_EDGE_HIGH_R(crate::FieldReader); -impl GPIO12_EDGE_HIGH_R { - pub(crate) fn new(bits: bool) -> Self { - GPIO12_EDGE_HIGH_R(crate::FieldReader::new(bits)) - } -} -impl core::ops::Deref for GPIO12_EDGE_HIGH_R { - type Target = crate::FieldReader; - #[inline(always)] - fn deref(&self) -> &Self::Target { - &self.0 - } -} -#[doc = "Field `GPIO12_EDGE_HIGH` writer - "] -pub struct GPIO12_EDGE_HIGH_W<'a> { - w: &'a mut W, -} -impl<'a> GPIO12_EDGE_HIGH_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 `GPIO12_EDGE_LOW` reader - "] -pub struct GPIO12_EDGE_LOW_R(crate::FieldReader); -impl GPIO12_EDGE_LOW_R { - pub(crate) fn new(bits: bool) -> Self { - GPIO12_EDGE_LOW_R(crate::FieldReader::new(bits)) - } -} -impl core::ops::Deref for GPIO12_EDGE_LOW_R { - type Target = crate::FieldReader; - #[inline(always)] - fn deref(&self) -> &Self::Target { - &self.0 - } -} -#[doc = "Field `GPIO12_EDGE_LOW` writer - "] -pub struct GPIO12_EDGE_LOW_W<'a> { - w: &'a mut W, -} -impl<'a> GPIO12_EDGE_LOW_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 `GPIO12_LEVEL_HIGH` reader - "] -pub struct GPIO12_LEVEL_HIGH_R(crate::FieldReader); -impl GPIO12_LEVEL_HIGH_R { - pub(crate) fn new(bits: bool) -> Self { - GPIO12_LEVEL_HIGH_R(crate::FieldReader::new(bits)) - } -} -impl core::ops::Deref for GPIO12_LEVEL_HIGH_R { - type Target = crate::FieldReader; - #[inline(always)] - fn deref(&self) -> &Self::Target { - &self.0 - } -} -#[doc = "Field `GPIO12_LEVEL_HIGH` writer - "] -pub struct GPIO12_LEVEL_HIGH_W<'a> { - w: &'a mut W, -} -impl<'a> GPIO12_LEVEL_HIGH_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 `GPIO12_LEVEL_LOW` reader - "] -pub struct GPIO12_LEVEL_LOW_R(crate::FieldReader); -impl GPIO12_LEVEL_LOW_R { - pub(crate) fn new(bits: bool) -> Self { - GPIO12_LEVEL_LOW_R(crate::FieldReader::new(bits)) - } -} -impl core::ops::Deref for GPIO12_LEVEL_LOW_R { - type Target = crate::FieldReader; - #[inline(always)] - fn deref(&self) -> &Self::Target { - &self.0 - } -} -#[doc = "Field `GPIO12_LEVEL_LOW` writer - "] -pub struct GPIO12_LEVEL_LOW_W<'a> { - w: &'a mut W, -} -impl<'a> GPIO12_LEVEL_LOW_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 `GPIO11_EDGE_HIGH` reader - "] -pub struct GPIO11_EDGE_HIGH_R(crate::FieldReader); -impl GPIO11_EDGE_HIGH_R { - pub(crate) fn new(bits: bool) -> Self { - GPIO11_EDGE_HIGH_R(crate::FieldReader::new(bits)) - } -} -impl core::ops::Deref for GPIO11_EDGE_HIGH_R { - type Target = crate::FieldReader; - #[inline(always)] - fn deref(&self) -> &Self::Target { - &self.0 - } -} -#[doc = "Field `GPIO11_EDGE_HIGH` writer - "] -pub struct GPIO11_EDGE_HIGH_W<'a> { - w: &'a mut W, -} -impl<'a> GPIO11_EDGE_HIGH_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 - } -} -#[doc = "Field `GPIO11_EDGE_LOW` reader - "] -pub struct GPIO11_EDGE_LOW_R(crate::FieldReader); -impl GPIO11_EDGE_LOW_R { - pub(crate) fn new(bits: bool) -> Self { - GPIO11_EDGE_LOW_R(crate::FieldReader::new(bits)) - } -} -impl core::ops::Deref for GPIO11_EDGE_LOW_R { - type Target = crate::FieldReader; - #[inline(always)] - fn deref(&self) -> &Self::Target { - &self.0 - } -} -#[doc = "Field `GPIO11_EDGE_LOW` writer - "] -pub struct GPIO11_EDGE_LOW_W<'a> { - w: &'a mut W, -} -impl<'a> GPIO11_EDGE_LOW_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 `GPIO11_LEVEL_HIGH` reader - "] -pub struct GPIO11_LEVEL_HIGH_R(crate::FieldReader); -impl GPIO11_LEVEL_HIGH_R { - pub(crate) fn new(bits: bool) -> Self { - GPIO11_LEVEL_HIGH_R(crate::FieldReader::new(bits)) - } -} -impl core::ops::Deref for GPIO11_LEVEL_HIGH_R { - type Target = crate::FieldReader; - #[inline(always)] - fn deref(&self) -> &Self::Target { - &self.0 - } -} -#[doc = "Field `GPIO11_LEVEL_HIGH` writer - "] -pub struct GPIO11_LEVEL_HIGH_W<'a> { - w: &'a mut W, -} -impl<'a> GPIO11_LEVEL_HIGH_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 << 13)) | ((value as u32 & 0x01) << 13); - self.w - } -} -#[doc = "Field `GPIO11_LEVEL_LOW` reader - "] -pub struct GPIO11_LEVEL_LOW_R(crate::FieldReader); -impl GPIO11_LEVEL_LOW_R { - pub(crate) fn new(bits: bool) -> Self { - GPIO11_LEVEL_LOW_R(crate::FieldReader::new(bits)) - } -} -impl core::ops::Deref for GPIO11_LEVEL_LOW_R { - type Target = crate::FieldReader; - #[inline(always)] - fn deref(&self) -> &Self::Target { - &self.0 - } -} -#[doc = "Field `GPIO11_LEVEL_LOW` writer - "] -pub struct GPIO11_LEVEL_LOW_W<'a> { - w: &'a mut W, -} -impl<'a> GPIO11_LEVEL_LOW_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 << 12)) | ((value as u32 & 0x01) << 12); - self.w - } -} -#[doc = "Field `GPIO10_EDGE_HIGH` reader - "] -pub struct GPIO10_EDGE_HIGH_R(crate::FieldReader); -impl GPIO10_EDGE_HIGH_R { - pub(crate) fn new(bits: bool) -> Self { - GPIO10_EDGE_HIGH_R(crate::FieldReader::new(bits)) - } -} -impl core::ops::Deref for GPIO10_EDGE_HIGH_R { - type Target = crate::FieldReader; - #[inline(always)] - fn deref(&self) -> &Self::Target { - &self.0 - } -} -#[doc = "Field `GPIO10_EDGE_HIGH` writer - "] -pub struct GPIO10_EDGE_HIGH_W<'a> { - w: &'a mut W, -} -impl<'a> GPIO10_EDGE_HIGH_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 `GPIO10_EDGE_LOW` reader - "] -pub struct GPIO10_EDGE_LOW_R(crate::FieldReader); -impl GPIO10_EDGE_LOW_R { - pub(crate) fn new(bits: bool) -> Self { - GPIO10_EDGE_LOW_R(crate::FieldReader::new(bits)) - } -} -impl core::ops::Deref for GPIO10_EDGE_LOW_R { - type Target = crate::FieldReader; - #[inline(always)] - fn deref(&self) -> &Self::Target { - &self.0 - } -} -#[doc = "Field `GPIO10_EDGE_LOW` writer - "] -pub struct GPIO10_EDGE_LOW_W<'a> { - w: &'a mut W, -} -impl<'a> GPIO10_EDGE_LOW_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 `GPIO10_LEVEL_HIGH` reader - "] -pub struct GPIO10_LEVEL_HIGH_R(crate::FieldReader); -impl GPIO10_LEVEL_HIGH_R { - pub(crate) fn new(bits: bool) -> Self { - GPIO10_LEVEL_HIGH_R(crate::FieldReader::new(bits)) - } -} -impl core::ops::Deref for GPIO10_LEVEL_HIGH_R { - type Target = crate::FieldReader; - #[inline(always)] - fn deref(&self) -> &Self::Target { - &self.0 - } -} -#[doc = "Field `GPIO10_LEVEL_HIGH` writer - "] -pub struct GPIO10_LEVEL_HIGH_W<'a> { - w: &'a mut W, -} -impl<'a> GPIO10_LEVEL_HIGH_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 `GPIO10_LEVEL_LOW` reader - "] -pub struct GPIO10_LEVEL_LOW_R(crate::FieldReader); -impl GPIO10_LEVEL_LOW_R { - pub(crate) fn new(bits: bool) -> Self { - GPIO10_LEVEL_LOW_R(crate::FieldReader::new(bits)) - } -} -impl core::ops::Deref for GPIO10_LEVEL_LOW_R { - type Target = crate::FieldReader; - #[inline(always)] - fn deref(&self) -> &Self::Target { - &self.0 - } -} -#[doc = "Field `GPIO10_LEVEL_LOW` writer - "] -pub struct GPIO10_LEVEL_LOW_W<'a> { - w: &'a mut W, -} -impl<'a> GPIO10_LEVEL_LOW_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 `GPIO9_EDGE_HIGH` reader - "] -pub struct GPIO9_EDGE_HIGH_R(crate::FieldReader); -impl GPIO9_EDGE_HIGH_R { - pub(crate) fn new(bits: bool) -> Self { - GPIO9_EDGE_HIGH_R(crate::FieldReader::new(bits)) - } -} -impl core::ops::Deref for GPIO9_EDGE_HIGH_R { - type Target = crate::FieldReader; - #[inline(always)] - fn deref(&self) -> &Self::Target { - &self.0 - } -} -#[doc = "Field `GPIO9_EDGE_HIGH` writer - "] -pub struct GPIO9_EDGE_HIGH_W<'a> { - w: &'a mut W, -} -impl<'a> GPIO9_EDGE_HIGH_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 `GPIO9_EDGE_LOW` reader - "] -pub struct GPIO9_EDGE_LOW_R(crate::FieldReader); -impl GPIO9_EDGE_LOW_R { - pub(crate) fn new(bits: bool) -> Self { - GPIO9_EDGE_LOW_R(crate::FieldReader::new(bits)) - } -} -impl core::ops::Deref for GPIO9_EDGE_LOW_R { - type Target = crate::FieldReader; - #[inline(always)] - fn deref(&self) -> &Self::Target { - &self.0 - } -} -#[doc = "Field `GPIO9_EDGE_LOW` writer - "] -pub struct GPIO9_EDGE_LOW_W<'a> { - w: &'a mut W, -} -impl<'a> GPIO9_EDGE_LOW_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 `GPIO9_LEVEL_HIGH` reader - "] -pub struct GPIO9_LEVEL_HIGH_R(crate::FieldReader); -impl GPIO9_LEVEL_HIGH_R { - pub(crate) fn new(bits: bool) -> Self { - GPIO9_LEVEL_HIGH_R(crate::FieldReader::new(bits)) - } -} -impl core::ops::Deref for GPIO9_LEVEL_HIGH_R { - type Target = crate::FieldReader; - #[inline(always)] - fn deref(&self) -> &Self::Target { - &self.0 - } -} -#[doc = "Field `GPIO9_LEVEL_HIGH` writer - "] -pub struct GPIO9_LEVEL_HIGH_W<'a> { - w: &'a mut W, -} -impl<'a> GPIO9_LEVEL_HIGH_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 `GPIO9_LEVEL_LOW` reader - "] -pub struct GPIO9_LEVEL_LOW_R(crate::FieldReader); -impl GPIO9_LEVEL_LOW_R { - pub(crate) fn new(bits: bool) -> Self { - GPIO9_LEVEL_LOW_R(crate::FieldReader::new(bits)) - } -} -impl core::ops::Deref for GPIO9_LEVEL_LOW_R { - type Target = crate::FieldReader; - #[inline(always)] - fn deref(&self) -> &Self::Target { - &self.0 - } -} -#[doc = "Field `GPIO9_LEVEL_LOW` writer - "] -pub struct GPIO9_LEVEL_LOW_W<'a> { - w: &'a mut W, -} -impl<'a> GPIO9_LEVEL_LOW_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 `GPIO8_EDGE_HIGH` reader - "] -pub struct GPIO8_EDGE_HIGH_R(crate::FieldReader); -impl GPIO8_EDGE_HIGH_R { - pub(crate) fn new(bits: bool) -> Self { - GPIO8_EDGE_HIGH_R(crate::FieldReader::new(bits)) - } -} -impl core::ops::Deref for GPIO8_EDGE_HIGH_R { - type Target = crate::FieldReader; - #[inline(always)] - fn deref(&self) -> &Self::Target { - &self.0 - } -} -#[doc = "Field `GPIO8_EDGE_HIGH` writer - "] -pub struct GPIO8_EDGE_HIGH_W<'a> { - w: &'a mut W, -} -impl<'a> GPIO8_EDGE_HIGH_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 `GPIO8_EDGE_LOW` reader - "] -pub struct GPIO8_EDGE_LOW_R(crate::FieldReader); -impl GPIO8_EDGE_LOW_R { - pub(crate) fn new(bits: bool) -> Self { - GPIO8_EDGE_LOW_R(crate::FieldReader::new(bits)) - } -} -impl core::ops::Deref for GPIO8_EDGE_LOW_R { - type Target = crate::FieldReader; - #[inline(always)] - fn deref(&self) -> &Self::Target { - &self.0 - } -} -#[doc = "Field `GPIO8_EDGE_LOW` writer - "] -pub struct GPIO8_EDGE_LOW_W<'a> { - w: &'a mut W, -} -impl<'a> GPIO8_EDGE_LOW_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 `GPIO8_LEVEL_HIGH` reader - "] -pub struct GPIO8_LEVEL_HIGH_R(crate::FieldReader); -impl GPIO8_LEVEL_HIGH_R { - pub(crate) fn new(bits: bool) -> Self { - GPIO8_LEVEL_HIGH_R(crate::FieldReader::new(bits)) - } -} -impl core::ops::Deref for GPIO8_LEVEL_HIGH_R { - type Target = crate::FieldReader; - #[inline(always)] - fn deref(&self) -> &Self::Target { - &self.0 - } -} -#[doc = "Field `GPIO8_LEVEL_HIGH` writer - "] -pub struct GPIO8_LEVEL_HIGH_W<'a> { - w: &'a mut W, -} -impl<'a> GPIO8_LEVEL_HIGH_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 `GPIO8_LEVEL_LOW` reader - "] -pub struct GPIO8_LEVEL_LOW_R(crate::FieldReader); -impl GPIO8_LEVEL_LOW_R { - pub(crate) fn new(bits: bool) -> Self { - GPIO8_LEVEL_LOW_R(crate::FieldReader::new(bits)) - } -} -impl core::ops::Deref for GPIO8_LEVEL_LOW_R { - type Target = crate::FieldReader; - #[inline(always)] - fn deref(&self) -> &Self::Target { - &self.0 - } -} -#[doc = "Field `GPIO8_LEVEL_LOW` writer - "] -pub struct GPIO8_LEVEL_LOW_W<'a> { - w: &'a mut W, -} -impl<'a> GPIO8_LEVEL_LOW_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 - } -} -impl R { - #[doc = "Bit 31"] - #[inline(always)] - pub fn gpio15_edge_high(&self) -> GPIO15_EDGE_HIGH_R { - GPIO15_EDGE_HIGH_R::new(((self.bits >> 31) & 0x01) != 0) - } - #[doc = "Bit 30"] - #[inline(always)] - pub fn gpio15_edge_low(&self) -> GPIO15_EDGE_LOW_R { - GPIO15_EDGE_LOW_R::new(((self.bits >> 30) & 0x01) != 0) - } - #[doc = "Bit 29"] - #[inline(always)] - pub fn gpio15_level_high(&self) -> GPIO15_LEVEL_HIGH_R { - GPIO15_LEVEL_HIGH_R::new(((self.bits >> 29) & 0x01) != 0) - } - #[doc = "Bit 28"] - #[inline(always)] - pub fn gpio15_level_low(&self) -> GPIO15_LEVEL_LOW_R { - GPIO15_LEVEL_LOW_R::new(((self.bits >> 28) & 0x01) != 0) - } - #[doc = "Bit 27"] - #[inline(always)] - pub fn gpio14_edge_high(&self) -> GPIO14_EDGE_HIGH_R { - GPIO14_EDGE_HIGH_R::new(((self.bits >> 27) & 0x01) != 0) - } - #[doc = "Bit 26"] - #[inline(always)] - pub fn gpio14_edge_low(&self) -> GPIO14_EDGE_LOW_R { - GPIO14_EDGE_LOW_R::new(((self.bits >> 26) & 0x01) != 0) - } - #[doc = "Bit 25"] - #[inline(always)] - pub fn gpio14_level_high(&self) -> GPIO14_LEVEL_HIGH_R { - GPIO14_LEVEL_HIGH_R::new(((self.bits >> 25) & 0x01) != 0) - } - #[doc = "Bit 24"] - #[inline(always)] - pub fn gpio14_level_low(&self) -> GPIO14_LEVEL_LOW_R { - GPIO14_LEVEL_LOW_R::new(((self.bits >> 24) & 0x01) != 0) - } - #[doc = "Bit 23"] - #[inline(always)] - pub fn gpio13_edge_high(&self) -> GPIO13_EDGE_HIGH_R { - GPIO13_EDGE_HIGH_R::new(((self.bits >> 23) & 0x01) != 0) - } - #[doc = "Bit 22"] - #[inline(always)] - pub fn gpio13_edge_low(&self) -> GPIO13_EDGE_LOW_R { - GPIO13_EDGE_LOW_R::new(((self.bits >> 22) & 0x01) != 0) - } - #[doc = "Bit 21"] - #[inline(always)] - pub fn gpio13_level_high(&self) -> GPIO13_LEVEL_HIGH_R { - GPIO13_LEVEL_HIGH_R::new(((self.bits >> 21) & 0x01) != 0) - } - #[doc = "Bit 20"] - #[inline(always)] - pub fn gpio13_level_low(&self) -> GPIO13_LEVEL_LOW_R { - GPIO13_LEVEL_LOW_R::new(((self.bits >> 20) & 0x01) != 0) - } - #[doc = "Bit 19"] - #[inline(always)] - pub fn gpio12_edge_high(&self) -> GPIO12_EDGE_HIGH_R { - GPIO12_EDGE_HIGH_R::new(((self.bits >> 19) & 0x01) != 0) - } - #[doc = "Bit 18"] - #[inline(always)] - pub fn gpio12_edge_low(&self) -> GPIO12_EDGE_LOW_R { - GPIO12_EDGE_LOW_R::new(((self.bits >> 18) & 0x01) != 0) - } - #[doc = "Bit 17"] - #[inline(always)] - pub fn gpio12_level_high(&self) -> GPIO12_LEVEL_HIGH_R { - GPIO12_LEVEL_HIGH_R::new(((self.bits >> 17) & 0x01) != 0) - } - #[doc = "Bit 16"] - #[inline(always)] - pub fn gpio12_level_low(&self) -> GPIO12_LEVEL_LOW_R { - GPIO12_LEVEL_LOW_R::new(((self.bits >> 16) & 0x01) != 0) - } - #[doc = "Bit 15"] - #[inline(always)] - pub fn gpio11_edge_high(&self) -> GPIO11_EDGE_HIGH_R { - GPIO11_EDGE_HIGH_R::new(((self.bits >> 15) & 0x01) != 0) - } - #[doc = "Bit 14"] - #[inline(always)] - pub fn gpio11_edge_low(&self) -> GPIO11_EDGE_LOW_R { - GPIO11_EDGE_LOW_R::new(((self.bits >> 14) & 0x01) != 0) - } - #[doc = "Bit 13"] - #[inline(always)] - pub fn gpio11_level_high(&self) -> GPIO11_LEVEL_HIGH_R { - GPIO11_LEVEL_HIGH_R::new(((self.bits >> 13) & 0x01) != 0) - } - #[doc = "Bit 12"] - #[inline(always)] - pub fn gpio11_level_low(&self) -> GPIO11_LEVEL_LOW_R { - GPIO11_LEVEL_LOW_R::new(((self.bits >> 12) & 0x01) != 0) - } - #[doc = "Bit 11"] - #[inline(always)] - pub fn gpio10_edge_high(&self) -> GPIO10_EDGE_HIGH_R { - GPIO10_EDGE_HIGH_R::new(((self.bits >> 11) & 0x01) != 0) - } - #[doc = "Bit 10"] - #[inline(always)] - pub fn gpio10_edge_low(&self) -> GPIO10_EDGE_LOW_R { - GPIO10_EDGE_LOW_R::new(((self.bits >> 10) & 0x01) != 0) - } - #[doc = "Bit 9"] - #[inline(always)] - pub fn gpio10_level_high(&self) -> GPIO10_LEVEL_HIGH_R { - GPIO10_LEVEL_HIGH_R::new(((self.bits >> 9) & 0x01) != 0) - } - #[doc = "Bit 8"] - #[inline(always)] - pub fn gpio10_level_low(&self) -> GPIO10_LEVEL_LOW_R { - GPIO10_LEVEL_LOW_R::new(((self.bits >> 8) & 0x01) != 0) - } - #[doc = "Bit 7"] - #[inline(always)] - pub fn gpio9_edge_high(&self) -> GPIO9_EDGE_HIGH_R { - GPIO9_EDGE_HIGH_R::new(((self.bits >> 7) & 0x01) != 0) - } - #[doc = "Bit 6"] - #[inline(always)] - pub fn gpio9_edge_low(&self) -> GPIO9_EDGE_LOW_R { - GPIO9_EDGE_LOW_R::new(((self.bits >> 6) & 0x01) != 0) - } - #[doc = "Bit 5"] - #[inline(always)] - pub fn gpio9_level_high(&self) -> GPIO9_LEVEL_HIGH_R { - GPIO9_LEVEL_HIGH_R::new(((self.bits >> 5) & 0x01) != 0) - } - #[doc = "Bit 4"] - #[inline(always)] - pub fn gpio9_level_low(&self) -> GPIO9_LEVEL_LOW_R { - GPIO9_LEVEL_LOW_R::new(((self.bits >> 4) & 0x01) != 0) - } - #[doc = "Bit 3"] - #[inline(always)] - pub fn gpio8_edge_high(&self) -> GPIO8_EDGE_HIGH_R { - GPIO8_EDGE_HIGH_R::new(((self.bits >> 3) & 0x01) != 0) - } - #[doc = "Bit 2"] - #[inline(always)] - pub fn gpio8_edge_low(&self) -> GPIO8_EDGE_LOW_R { - GPIO8_EDGE_LOW_R::new(((self.bits >> 2) & 0x01) != 0) - } - #[doc = "Bit 1"] - #[inline(always)] - pub fn gpio8_level_high(&self) -> GPIO8_LEVEL_HIGH_R { - GPIO8_LEVEL_HIGH_R::new(((self.bits >> 1) & 0x01) != 0) - } - #[doc = "Bit 0"] - #[inline(always)] - pub fn gpio8_level_low(&self) -> GPIO8_LEVEL_LOW_R { - GPIO8_LEVEL_LOW_R::new((self.bits & 0x01) != 0) - } -} -impl W { - #[doc = "Bit 31"] - #[inline(always)] - pub fn gpio15_edge_high(&mut self) -> GPIO15_EDGE_HIGH_W { - GPIO15_EDGE_HIGH_W { w: self } - } - #[doc = "Bit 30"] - #[inline(always)] - pub fn gpio15_edge_low(&mut self) -> GPIO15_EDGE_LOW_W { - GPIO15_EDGE_LOW_W { w: self } - } - #[doc = "Bit 29"] - #[inline(always)] - pub fn gpio15_level_high(&mut self) -> GPIO15_LEVEL_HIGH_W { - GPIO15_LEVEL_HIGH_W { w: self } - } - #[doc = "Bit 28"] - #[inline(always)] - pub fn gpio15_level_low(&mut self) -> GPIO15_LEVEL_LOW_W { - GPIO15_LEVEL_LOW_W { w: self } - } - #[doc = "Bit 27"] - #[inline(always)] - pub fn gpio14_edge_high(&mut self) -> GPIO14_EDGE_HIGH_W { - GPIO14_EDGE_HIGH_W { w: self } - } - #[doc = "Bit 26"] - #[inline(always)] - pub fn gpio14_edge_low(&mut self) -> GPIO14_EDGE_LOW_W { - GPIO14_EDGE_LOW_W { w: self } - } - #[doc = "Bit 25"] - #[inline(always)] - pub fn gpio14_level_high(&mut self) -> GPIO14_LEVEL_HIGH_W { - GPIO14_LEVEL_HIGH_W { w: self } - } - #[doc = "Bit 24"] - #[inline(always)] - pub fn gpio14_level_low(&mut self) -> GPIO14_LEVEL_LOW_W { - GPIO14_LEVEL_LOW_W { w: self } - } - #[doc = "Bit 23"] - #[inline(always)] - pub fn gpio13_edge_high(&mut self) -> GPIO13_EDGE_HIGH_W { - GPIO13_EDGE_HIGH_W { w: self } - } - #[doc = "Bit 22"] - #[inline(always)] - pub fn gpio13_edge_low(&mut self) -> GPIO13_EDGE_LOW_W { - GPIO13_EDGE_LOW_W { w: self } - } - #[doc = "Bit 21"] - #[inline(always)] - pub fn gpio13_level_high(&mut self) -> GPIO13_LEVEL_HIGH_W { - GPIO13_LEVEL_HIGH_W { w: self } - } - #[doc = "Bit 20"] - #[inline(always)] - pub fn gpio13_level_low(&mut self) -> GPIO13_LEVEL_LOW_W { - GPIO13_LEVEL_LOW_W { w: self } - } - #[doc = "Bit 19"] - #[inline(always)] - pub fn gpio12_edge_high(&mut self) -> GPIO12_EDGE_HIGH_W { - GPIO12_EDGE_HIGH_W { w: self } - } - #[doc = "Bit 18"] - #[inline(always)] - pub fn gpio12_edge_low(&mut self) -> GPIO12_EDGE_LOW_W { - GPIO12_EDGE_LOW_W { w: self } - } - #[doc = "Bit 17"] - #[inline(always)] - pub fn gpio12_level_high(&mut self) -> GPIO12_LEVEL_HIGH_W { - GPIO12_LEVEL_HIGH_W { w: self } - } - #[doc = "Bit 16"] - #[inline(always)] - pub fn gpio12_level_low(&mut self) -> GPIO12_LEVEL_LOW_W { - GPIO12_LEVEL_LOW_W { w: self } - } - #[doc = "Bit 15"] - #[inline(always)] - pub fn gpio11_edge_high(&mut self) -> GPIO11_EDGE_HIGH_W { - GPIO11_EDGE_HIGH_W { w: self } - } - #[doc = "Bit 14"] - #[inline(always)] - pub fn gpio11_edge_low(&mut self) -> GPIO11_EDGE_LOW_W { - GPIO11_EDGE_LOW_W { w: self } - } - #[doc = "Bit 13"] - #[inline(always)] - pub fn gpio11_level_high(&mut self) -> GPIO11_LEVEL_HIGH_W { - GPIO11_LEVEL_HIGH_W { w: self } - } - #[doc = "Bit 12"] - #[inline(always)] - pub fn gpio11_level_low(&mut self) -> GPIO11_LEVEL_LOW_W { - GPIO11_LEVEL_LOW_W { w: self } - } - #[doc = "Bit 11"] - #[inline(always)] - pub fn gpio10_edge_high(&mut self) -> GPIO10_EDGE_HIGH_W { - GPIO10_EDGE_HIGH_W { w: self } - } - #[doc = "Bit 10"] - #[inline(always)] - pub fn gpio10_edge_low(&mut self) -> GPIO10_EDGE_LOW_W { - GPIO10_EDGE_LOW_W { w: self } - } - #[doc = "Bit 9"] - #[inline(always)] - pub fn gpio10_level_high(&mut self) -> GPIO10_LEVEL_HIGH_W { - GPIO10_LEVEL_HIGH_W { w: self } - } - #[doc = "Bit 8"] - #[inline(always)] - pub fn gpio10_level_low(&mut self) -> GPIO10_LEVEL_LOW_W { - GPIO10_LEVEL_LOW_W { w: self } - } - #[doc = "Bit 7"] - #[inline(always)] - pub fn gpio9_edge_high(&mut self) -> GPIO9_EDGE_HIGH_W { - GPIO9_EDGE_HIGH_W { w: self } - } - #[doc = "Bit 6"] - #[inline(always)] - pub fn gpio9_edge_low(&mut self) -> GPIO9_EDGE_LOW_W { - GPIO9_EDGE_LOW_W { w: self } - } - #[doc = "Bit 5"] - #[inline(always)] - pub fn gpio9_level_high(&mut self) -> GPIO9_LEVEL_HIGH_W { - GPIO9_LEVEL_HIGH_W { w: self } - } - #[doc = "Bit 4"] - #[inline(always)] - pub fn gpio9_level_low(&mut self) -> GPIO9_LEVEL_LOW_W { - GPIO9_LEVEL_LOW_W { w: self } - } - #[doc = "Bit 3"] - #[inline(always)] - pub fn gpio8_edge_high(&mut self) -> GPIO8_EDGE_HIGH_W { - GPIO8_EDGE_HIGH_W { w: self } - } - #[doc = "Bit 2"] - #[inline(always)] - pub fn gpio8_edge_low(&mut self) -> GPIO8_EDGE_LOW_W { - GPIO8_EDGE_LOW_W { w: self } - } - #[doc = "Bit 1"] - #[inline(always)] - pub fn gpio8_level_high(&mut self) -> GPIO8_LEVEL_HIGH_W { - GPIO8_LEVEL_HIGH_W { w: self } - } - #[doc = "Bit 0"] - #[inline(always)] - pub fn gpio8_level_low(&mut self) -> GPIO8_LEVEL_LOW_W { - GPIO8_LEVEL_LOW_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 for dormant_wake - -This 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). - -For information about available fields see [dormant_wake_inte1](index.html) module"] -pub struct DORMANT_WAKE_INTE1_SPEC; -impl crate::RegisterSpec for DORMANT_WAKE_INTE1_SPEC { - type Ux = u32; -} -#[doc = "`read()` method returns [dormant_wake_inte1::R](R) reader structure"] -impl crate::Readable for DORMANT_WAKE_INTE1_SPEC { - type Reader = R; -} -#[doc = "`write(|w| ..)` method takes [dormant_wake_inte1::W](W) writer structure"] -impl crate::Writable for DORMANT_WAKE_INTE1_SPEC { - type Writer = W; -} -#[doc = "`reset()` method sets DORMANT_WAKE_INTE1 to value 0"] -impl crate::Resettable for DORMANT_WAKE_INTE1_SPEC { - #[inline(always)] - fn reset_value() -> Self::Ux { - 0 - } -} diff --git a/src/io_bank0/dormant_wake_inte2.rs b/src/io_bank0/dormant_wake_inte2.rs deleted file mode 100644 index c7178968c..000000000 --- a/src/io_bank0/dormant_wake_inte2.rs +++ /dev/null @@ -1,1542 +0,0 @@ -#[doc = "Register `DORMANT_WAKE_INTE2` reader"] -pub struct R(crate::R); -impl core::ops::Deref for R { - type Target = crate::R; - #[inline(always)] - fn deref(&self) -> &Self::Target { - &self.0 - } -} -impl From> for R { - #[inline(always)] - fn from(reader: crate::R) -> Self { - R(reader) - } -} -#[doc = "Register `DORMANT_WAKE_INTE2` writer"] -pub struct W(crate::W); -impl core::ops::Deref for W { - type Target = crate::W; - #[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> for W { - #[inline(always)] - fn from(writer: crate::W) -> Self { - W(writer) - } -} -#[doc = "Field `GPIO23_EDGE_HIGH` reader - "] -pub struct GPIO23_EDGE_HIGH_R(crate::FieldReader); -impl GPIO23_EDGE_HIGH_R { - pub(crate) fn new(bits: bool) -> Self { - GPIO23_EDGE_HIGH_R(crate::FieldReader::new(bits)) - } -} -impl core::ops::Deref for GPIO23_EDGE_HIGH_R { - type Target = crate::FieldReader; - #[inline(always)] - fn deref(&self) -> &Self::Target { - &self.0 - } -} -#[doc = "Field `GPIO23_EDGE_HIGH` writer - "] -pub struct GPIO23_EDGE_HIGH_W<'a> { - w: &'a mut W, -} -impl<'a> GPIO23_EDGE_HIGH_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 << 31)) | ((value as u32 & 0x01) << 31); - self.w - } -} -#[doc = "Field `GPIO23_EDGE_LOW` reader - "] -pub struct GPIO23_EDGE_LOW_R(crate::FieldReader); -impl GPIO23_EDGE_LOW_R { - pub(crate) fn new(bits: bool) -> Self { - GPIO23_EDGE_LOW_R(crate::FieldReader::new(bits)) - } -} -impl core::ops::Deref for GPIO23_EDGE_LOW_R { - type Target = crate::FieldReader; - #[inline(always)] - fn deref(&self) -> &Self::Target { - &self.0 - } -} -#[doc = "Field `GPIO23_EDGE_LOW` writer - "] -pub struct GPIO23_EDGE_LOW_W<'a> { - w: &'a mut W, -} -impl<'a> GPIO23_EDGE_LOW_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 << 30)) | ((value as u32 & 0x01) << 30); - self.w - } -} -#[doc = "Field `GPIO23_LEVEL_HIGH` reader - "] -pub struct GPIO23_LEVEL_HIGH_R(crate::FieldReader); -impl GPIO23_LEVEL_HIGH_R { - pub(crate) fn new(bits: bool) -> Self { - GPIO23_LEVEL_HIGH_R(crate::FieldReader::new(bits)) - } -} -impl core::ops::Deref for GPIO23_LEVEL_HIGH_R { - type Target = crate::FieldReader; - #[inline(always)] - fn deref(&self) -> &Self::Target { - &self.0 - } -} -#[doc = "Field `GPIO23_LEVEL_HIGH` writer - "] -pub struct GPIO23_LEVEL_HIGH_W<'a> { - w: &'a mut W, -} -impl<'a> GPIO23_LEVEL_HIGH_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 << 29)) | ((value as u32 & 0x01) << 29); - self.w - } -} -#[doc = "Field `GPIO23_LEVEL_LOW` reader - "] -pub struct GPIO23_LEVEL_LOW_R(crate::FieldReader); -impl GPIO23_LEVEL_LOW_R { - pub(crate) fn new(bits: bool) -> Self { - GPIO23_LEVEL_LOW_R(crate::FieldReader::new(bits)) - } -} -impl core::ops::Deref for GPIO23_LEVEL_LOW_R { - type Target = crate::FieldReader; - #[inline(always)] - fn deref(&self) -> &Self::Target { - &self.0 - } -} -#[doc = "Field `GPIO23_LEVEL_LOW` writer - "] -pub struct GPIO23_LEVEL_LOW_W<'a> { - w: &'a mut W, -} -impl<'a> GPIO23_LEVEL_LOW_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 << 28)) | ((value as u32 & 0x01) << 28); - self.w - } -} -#[doc = "Field `GPIO22_EDGE_HIGH` reader - "] -pub struct GPIO22_EDGE_HIGH_R(crate::FieldReader); -impl GPIO22_EDGE_HIGH_R { - pub(crate) fn new(bits: bool) -> Self { - GPIO22_EDGE_HIGH_R(crate::FieldReader::new(bits)) - } -} -impl core::ops::Deref for GPIO22_EDGE_HIGH_R { - type Target = crate::FieldReader; - #[inline(always)] - fn deref(&self) -> &Self::Target { - &self.0 - } -} -#[doc = "Field `GPIO22_EDGE_HIGH` writer - "] -pub struct GPIO22_EDGE_HIGH_W<'a> { - w: &'a mut W, -} -impl<'a> GPIO22_EDGE_HIGH_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 - } -} -#[doc = "Field `GPIO22_EDGE_LOW` reader - "] -pub struct GPIO22_EDGE_LOW_R(crate::FieldReader); -impl GPIO22_EDGE_LOW_R { - pub(crate) fn new(bits: bool) -> Self { - GPIO22_EDGE_LOW_R(crate::FieldReader::new(bits)) - } -} -impl core::ops::Deref for GPIO22_EDGE_LOW_R { - type Target = crate::FieldReader; - #[inline(always)] - fn deref(&self) -> &Self::Target { - &self.0 - } -} -#[doc = "Field `GPIO22_EDGE_LOW` writer - "] -pub struct GPIO22_EDGE_LOW_W<'a> { - w: &'a mut W, -} -impl<'a> GPIO22_EDGE_LOW_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 `GPIO22_LEVEL_HIGH` reader - "] -pub struct GPIO22_LEVEL_HIGH_R(crate::FieldReader); -impl GPIO22_LEVEL_HIGH_R { - pub(crate) fn new(bits: bool) -> Self { - GPIO22_LEVEL_HIGH_R(crate::FieldReader::new(bits)) - } -} -impl core::ops::Deref for GPIO22_LEVEL_HIGH_R { - type Target = crate::FieldReader; - #[inline(always)] - fn deref(&self) -> &Self::Target { - &self.0 - } -} -#[doc = "Field `GPIO22_LEVEL_HIGH` writer - "] -pub struct GPIO22_LEVEL_HIGH_W<'a> { - w: &'a mut W, -} -impl<'a> GPIO22_LEVEL_HIGH_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 `GPIO22_LEVEL_LOW` reader - "] -pub struct GPIO22_LEVEL_LOW_R(crate::FieldReader); -impl GPIO22_LEVEL_LOW_R { - pub(crate) fn new(bits: bool) -> Self { - GPIO22_LEVEL_LOW_R(crate::FieldReader::new(bits)) - } -} -impl core::ops::Deref for GPIO22_LEVEL_LOW_R { - type Target = crate::FieldReader; - #[inline(always)] - fn deref(&self) -> &Self::Target { - &self.0 - } -} -#[doc = "Field `GPIO22_LEVEL_LOW` writer - "] -pub struct GPIO22_LEVEL_LOW_W<'a> { - w: &'a mut W, -} -impl<'a> GPIO22_LEVEL_LOW_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 `GPIO21_EDGE_HIGH` reader - "] -pub struct GPIO21_EDGE_HIGH_R(crate::FieldReader); -impl GPIO21_EDGE_HIGH_R { - pub(crate) fn new(bits: bool) -> Self { - GPIO21_EDGE_HIGH_R(crate::FieldReader::new(bits)) - } -} -impl core::ops::Deref for GPIO21_EDGE_HIGH_R { - type Target = crate::FieldReader; - #[inline(always)] - fn deref(&self) -> &Self::Target { - &self.0 - } -} -#[doc = "Field `GPIO21_EDGE_HIGH` writer - "] -pub struct GPIO21_EDGE_HIGH_W<'a> { - w: &'a mut W, -} -impl<'a> GPIO21_EDGE_HIGH_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 `GPIO21_EDGE_LOW` reader - "] -pub struct GPIO21_EDGE_LOW_R(crate::FieldReader); -impl GPIO21_EDGE_LOW_R { - pub(crate) fn new(bits: bool) -> Self { - GPIO21_EDGE_LOW_R(crate::FieldReader::new(bits)) - } -} -impl core::ops::Deref for GPIO21_EDGE_LOW_R { - type Target = crate::FieldReader; - #[inline(always)] - fn deref(&self) -> &Self::Target { - &self.0 - } -} -#[doc = "Field `GPIO21_EDGE_LOW` writer - "] -pub struct GPIO21_EDGE_LOW_W<'a> { - w: &'a mut W, -} -impl<'a> GPIO21_EDGE_LOW_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 `GPIO21_LEVEL_HIGH` reader - "] -pub struct GPIO21_LEVEL_HIGH_R(crate::FieldReader); -impl GPIO21_LEVEL_HIGH_R { - pub(crate) fn new(bits: bool) -> Self { - GPIO21_LEVEL_HIGH_R(crate::FieldReader::new(bits)) - } -} -impl core::ops::Deref for GPIO21_LEVEL_HIGH_R { - type Target = crate::FieldReader; - #[inline(always)] - fn deref(&self) -> &Self::Target { - &self.0 - } -} -#[doc = "Field `GPIO21_LEVEL_HIGH` writer - "] -pub struct GPIO21_LEVEL_HIGH_W<'a> { - w: &'a mut W, -} -impl<'a> GPIO21_LEVEL_HIGH_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 `GPIO21_LEVEL_LOW` reader - "] -pub struct GPIO21_LEVEL_LOW_R(crate::FieldReader); -impl GPIO21_LEVEL_LOW_R { - pub(crate) fn new(bits: bool) -> Self { - GPIO21_LEVEL_LOW_R(crate::FieldReader::new(bits)) - } -} -impl core::ops::Deref for GPIO21_LEVEL_LOW_R { - type Target = crate::FieldReader; - #[inline(always)] - fn deref(&self) -> &Self::Target { - &self.0 - } -} -#[doc = "Field `GPIO21_LEVEL_LOW` writer - "] -pub struct GPIO21_LEVEL_LOW_W<'a> { - w: &'a mut W, -} -impl<'a> GPIO21_LEVEL_LOW_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 `GPIO20_EDGE_HIGH` reader - "] -pub struct GPIO20_EDGE_HIGH_R(crate::FieldReader); -impl GPIO20_EDGE_HIGH_R { - pub(crate) fn new(bits: bool) -> Self { - GPIO20_EDGE_HIGH_R(crate::FieldReader::new(bits)) - } -} -impl core::ops::Deref for GPIO20_EDGE_HIGH_R { - type Target = crate::FieldReader; - #[inline(always)] - fn deref(&self) -> &Self::Target { - &self.0 - } -} -#[doc = "Field `GPIO20_EDGE_HIGH` writer - "] -pub struct GPIO20_EDGE_HIGH_W<'a> { - w: &'a mut W, -} -impl<'a> GPIO20_EDGE_HIGH_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 `GPIO20_EDGE_LOW` reader - "] -pub struct GPIO20_EDGE_LOW_R(crate::FieldReader); -impl GPIO20_EDGE_LOW_R { - pub(crate) fn new(bits: bool) -> Self { - GPIO20_EDGE_LOW_R(crate::FieldReader::new(bits)) - } -} -impl core::ops::Deref for GPIO20_EDGE_LOW_R { - type Target = crate::FieldReader; - #[inline(always)] - fn deref(&self) -> &Self::Target { - &self.0 - } -} -#[doc = "Field `GPIO20_EDGE_LOW` writer - "] -pub struct GPIO20_EDGE_LOW_W<'a> { - w: &'a mut W, -} -impl<'a> GPIO20_EDGE_LOW_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 `GPIO20_LEVEL_HIGH` reader - "] -pub struct GPIO20_LEVEL_HIGH_R(crate::FieldReader); -impl GPIO20_LEVEL_HIGH_R { - pub(crate) fn new(bits: bool) -> Self { - GPIO20_LEVEL_HIGH_R(crate::FieldReader::new(bits)) - } -} -impl core::ops::Deref for GPIO20_LEVEL_HIGH_R { - type Target = crate::FieldReader; - #[inline(always)] - fn deref(&self) -> &Self::Target { - &self.0 - } -} -#[doc = "Field `GPIO20_LEVEL_HIGH` writer - "] -pub struct GPIO20_LEVEL_HIGH_W<'a> { - w: &'a mut W, -} -impl<'a> GPIO20_LEVEL_HIGH_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 `GPIO20_LEVEL_LOW` reader - "] -pub struct GPIO20_LEVEL_LOW_R(crate::FieldReader); -impl GPIO20_LEVEL_LOW_R { - pub(crate) fn new(bits: bool) -> Self { - GPIO20_LEVEL_LOW_R(crate::FieldReader::new(bits)) - } -} -impl core::ops::Deref for GPIO20_LEVEL_LOW_R { - type Target = crate::FieldReader; - #[inline(always)] - fn deref(&self) -> &Self::Target { - &self.0 - } -} -#[doc = "Field `GPIO20_LEVEL_LOW` writer - "] -pub struct GPIO20_LEVEL_LOW_W<'a> { - w: &'a mut W, -} -impl<'a> GPIO20_LEVEL_LOW_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 `GPIO19_EDGE_HIGH` reader - "] -pub struct GPIO19_EDGE_HIGH_R(crate::FieldReader); -impl GPIO19_EDGE_HIGH_R { - pub(crate) fn new(bits: bool) -> Self { - GPIO19_EDGE_HIGH_R(crate::FieldReader::new(bits)) - } -} -impl core::ops::Deref for GPIO19_EDGE_HIGH_R { - type Target = crate::FieldReader; - #[inline(always)] - fn deref(&self) -> &Self::Target { - &self.0 - } -} -#[doc = "Field `GPIO19_EDGE_HIGH` writer - "] -pub struct GPIO19_EDGE_HIGH_W<'a> { - w: &'a mut W, -} -impl<'a> GPIO19_EDGE_HIGH_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 - } -} -#[doc = "Field `GPIO19_EDGE_LOW` reader - "] -pub struct GPIO19_EDGE_LOW_R(crate::FieldReader); -impl GPIO19_EDGE_LOW_R { - pub(crate) fn new(bits: bool) -> Self { - GPIO19_EDGE_LOW_R(crate::FieldReader::new(bits)) - } -} -impl core::ops::Deref for GPIO19_EDGE_LOW_R { - type Target = crate::FieldReader; - #[inline(always)] - fn deref(&self) -> &Self::Target { - &self.0 - } -} -#[doc = "Field `GPIO19_EDGE_LOW` writer - "] -pub struct GPIO19_EDGE_LOW_W<'a> { - w: &'a mut W, -} -impl<'a> GPIO19_EDGE_LOW_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 `GPIO19_LEVEL_HIGH` reader - "] -pub struct GPIO19_LEVEL_HIGH_R(crate::FieldReader); -impl GPIO19_LEVEL_HIGH_R { - pub(crate) fn new(bits: bool) -> Self { - GPIO19_LEVEL_HIGH_R(crate::FieldReader::new(bits)) - } -} -impl core::ops::Deref for GPIO19_LEVEL_HIGH_R { - type Target = crate::FieldReader; - #[inline(always)] - fn deref(&self) -> &Self::Target { - &self.0 - } -} -#[doc = "Field `GPIO19_LEVEL_HIGH` writer - "] -pub struct GPIO19_LEVEL_HIGH_W<'a> { - w: &'a mut W, -} -impl<'a> GPIO19_LEVEL_HIGH_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 << 13)) | ((value as u32 & 0x01) << 13); - self.w - } -} -#[doc = "Field `GPIO19_LEVEL_LOW` reader - "] -pub struct GPIO19_LEVEL_LOW_R(crate::FieldReader); -impl GPIO19_LEVEL_LOW_R { - pub(crate) fn new(bits: bool) -> Self { - GPIO19_LEVEL_LOW_R(crate::FieldReader::new(bits)) - } -} -impl core::ops::Deref for GPIO19_LEVEL_LOW_R { - type Target = crate::FieldReader; - #[inline(always)] - fn deref(&self) -> &Self::Target { - &self.0 - } -} -#[doc = "Field `GPIO19_LEVEL_LOW` writer - "] -pub struct GPIO19_LEVEL_LOW_W<'a> { - w: &'a mut W, -} -impl<'a> GPIO19_LEVEL_LOW_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 << 12)) | ((value as u32 & 0x01) << 12); - self.w - } -} -#[doc = "Field `GPIO18_EDGE_HIGH` reader - "] -pub struct GPIO18_EDGE_HIGH_R(crate::FieldReader); -impl GPIO18_EDGE_HIGH_R { - pub(crate) fn new(bits: bool) -> Self { - GPIO18_EDGE_HIGH_R(crate::FieldReader::new(bits)) - } -} -impl core::ops::Deref for GPIO18_EDGE_HIGH_R { - type Target = crate::FieldReader; - #[inline(always)] - fn deref(&self) -> &Self::Target { - &self.0 - } -} -#[doc = "Field `GPIO18_EDGE_HIGH` writer - "] -pub struct GPIO18_EDGE_HIGH_W<'a> { - w: &'a mut W, -} -impl<'a> GPIO18_EDGE_HIGH_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 `GPIO18_EDGE_LOW` reader - "] -pub struct GPIO18_EDGE_LOW_R(crate::FieldReader); -impl GPIO18_EDGE_LOW_R { - pub(crate) fn new(bits: bool) -> Self { - GPIO18_EDGE_LOW_R(crate::FieldReader::new(bits)) - } -} -impl core::ops::Deref for GPIO18_EDGE_LOW_R { - type Target = crate::FieldReader; - #[inline(always)] - fn deref(&self) -> &Self::Target { - &self.0 - } -} -#[doc = "Field `GPIO18_EDGE_LOW` writer - "] -pub struct GPIO18_EDGE_LOW_W<'a> { - w: &'a mut W, -} -impl<'a> GPIO18_EDGE_LOW_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 `GPIO18_LEVEL_HIGH` reader - "] -pub struct GPIO18_LEVEL_HIGH_R(crate::FieldReader); -impl GPIO18_LEVEL_HIGH_R { - pub(crate) fn new(bits: bool) -> Self { - GPIO18_LEVEL_HIGH_R(crate::FieldReader::new(bits)) - } -} -impl core::ops::Deref for GPIO18_LEVEL_HIGH_R { - type Target = crate::FieldReader; - #[inline(always)] - fn deref(&self) -> &Self::Target { - &self.0 - } -} -#[doc = "Field `GPIO18_LEVEL_HIGH` writer - "] -pub struct GPIO18_LEVEL_HIGH_W<'a> { - w: &'a mut W, -} -impl<'a> GPIO18_LEVEL_HIGH_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 `GPIO18_LEVEL_LOW` reader - "] -pub struct GPIO18_LEVEL_LOW_R(crate::FieldReader); -impl GPIO18_LEVEL_LOW_R { - pub(crate) fn new(bits: bool) -> Self { - GPIO18_LEVEL_LOW_R(crate::FieldReader::new(bits)) - } -} -impl core::ops::Deref for GPIO18_LEVEL_LOW_R { - type Target = crate::FieldReader; - #[inline(always)] - fn deref(&self) -> &Self::Target { - &self.0 - } -} -#[doc = "Field `GPIO18_LEVEL_LOW` writer - "] -pub struct GPIO18_LEVEL_LOW_W<'a> { - w: &'a mut W, -} -impl<'a> GPIO18_LEVEL_LOW_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 `GPIO17_EDGE_HIGH` reader - "] -pub struct GPIO17_EDGE_HIGH_R(crate::FieldReader); -impl GPIO17_EDGE_HIGH_R { - pub(crate) fn new(bits: bool) -> Self { - GPIO17_EDGE_HIGH_R(crate::FieldReader::new(bits)) - } -} -impl core::ops::Deref for GPIO17_EDGE_HIGH_R { - type Target = crate::FieldReader; - #[inline(always)] - fn deref(&self) -> &Self::Target { - &self.0 - } -} -#[doc = "Field `GPIO17_EDGE_HIGH` writer - "] -pub struct GPIO17_EDGE_HIGH_W<'a> { - w: &'a mut W, -} -impl<'a> GPIO17_EDGE_HIGH_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 `GPIO17_EDGE_LOW` reader - "] -pub struct GPIO17_EDGE_LOW_R(crate::FieldReader); -impl GPIO17_EDGE_LOW_R { - pub(crate) fn new(bits: bool) -> Self { - GPIO17_EDGE_LOW_R(crate::FieldReader::new(bits)) - } -} -impl core::ops::Deref for GPIO17_EDGE_LOW_R { - type Target = crate::FieldReader; - #[inline(always)] - fn deref(&self) -> &Self::Target { - &self.0 - } -} -#[doc = "Field `GPIO17_EDGE_LOW` writer - "] -pub struct GPIO17_EDGE_LOW_W<'a> { - w: &'a mut W, -} -impl<'a> GPIO17_EDGE_LOW_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 `GPIO17_LEVEL_HIGH` reader - "] -pub struct GPIO17_LEVEL_HIGH_R(crate::FieldReader); -impl GPIO17_LEVEL_HIGH_R { - pub(crate) fn new(bits: bool) -> Self { - GPIO17_LEVEL_HIGH_R(crate::FieldReader::new(bits)) - } -} -impl core::ops::Deref for GPIO17_LEVEL_HIGH_R { - type Target = crate::FieldReader; - #[inline(always)] - fn deref(&self) -> &Self::Target { - &self.0 - } -} -#[doc = "Field `GPIO17_LEVEL_HIGH` writer - "] -pub struct GPIO17_LEVEL_HIGH_W<'a> { - w: &'a mut W, -} -impl<'a> GPIO17_LEVEL_HIGH_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 `GPIO17_LEVEL_LOW` reader - "] -pub struct GPIO17_LEVEL_LOW_R(crate::FieldReader); -impl GPIO17_LEVEL_LOW_R { - pub(crate) fn new(bits: bool) -> Self { - GPIO17_LEVEL_LOW_R(crate::FieldReader::new(bits)) - } -} -impl core::ops::Deref for GPIO17_LEVEL_LOW_R { - type Target = crate::FieldReader; - #[inline(always)] - fn deref(&self) -> &Self::Target { - &self.0 - } -} -#[doc = "Field `GPIO17_LEVEL_LOW` writer - "] -pub struct GPIO17_LEVEL_LOW_W<'a> { - w: &'a mut W, -} -impl<'a> GPIO17_LEVEL_LOW_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 `GPIO16_EDGE_HIGH` reader - "] -pub struct GPIO16_EDGE_HIGH_R(crate::FieldReader); -impl GPIO16_EDGE_HIGH_R { - pub(crate) fn new(bits: bool) -> Self { - GPIO16_EDGE_HIGH_R(crate::FieldReader::new(bits)) - } -} -impl core::ops::Deref for GPIO16_EDGE_HIGH_R { - type Target = crate::FieldReader; - #[inline(always)] - fn deref(&self) -> &Self::Target { - &self.0 - } -} -#[doc = "Field `GPIO16_EDGE_HIGH` writer - "] -pub struct GPIO16_EDGE_HIGH_W<'a> { - w: &'a mut W, -} -impl<'a> GPIO16_EDGE_HIGH_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 `GPIO16_EDGE_LOW` reader - "] -pub struct GPIO16_EDGE_LOW_R(crate::FieldReader); -impl GPIO16_EDGE_LOW_R { - pub(crate) fn new(bits: bool) -> Self { - GPIO16_EDGE_LOW_R(crate::FieldReader::new(bits)) - } -} -impl core::ops::Deref for GPIO16_EDGE_LOW_R { - type Target = crate::FieldReader; - #[inline(always)] - fn deref(&self) -> &Self::Target { - &self.0 - } -} -#[doc = "Field `GPIO16_EDGE_LOW` writer - "] -pub struct GPIO16_EDGE_LOW_W<'a> { - w: &'a mut W, -} -impl<'a> GPIO16_EDGE_LOW_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 `GPIO16_LEVEL_HIGH` reader - "] -pub struct GPIO16_LEVEL_HIGH_R(crate::FieldReader); -impl GPIO16_LEVEL_HIGH_R { - pub(crate) fn new(bits: bool) -> Self { - GPIO16_LEVEL_HIGH_R(crate::FieldReader::new(bits)) - } -} -impl core::ops::Deref for GPIO16_LEVEL_HIGH_R { - type Target = crate::FieldReader; - #[inline(always)] - fn deref(&self) -> &Self::Target { - &self.0 - } -} -#[doc = "Field `GPIO16_LEVEL_HIGH` writer - "] -pub struct GPIO16_LEVEL_HIGH_W<'a> { - w: &'a mut W, -} -impl<'a> GPIO16_LEVEL_HIGH_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 `GPIO16_LEVEL_LOW` reader - "] -pub struct GPIO16_LEVEL_LOW_R(crate::FieldReader); -impl GPIO16_LEVEL_LOW_R { - pub(crate) fn new(bits: bool) -> Self { - GPIO16_LEVEL_LOW_R(crate::FieldReader::new(bits)) - } -} -impl core::ops::Deref for GPIO16_LEVEL_LOW_R { - type Target = crate::FieldReader; - #[inline(always)] - fn deref(&self) -> &Self::Target { - &self.0 - } -} -#[doc = "Field `GPIO16_LEVEL_LOW` writer - "] -pub struct GPIO16_LEVEL_LOW_W<'a> { - w: &'a mut W, -} -impl<'a> GPIO16_LEVEL_LOW_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 - } -} -impl R { - #[doc = "Bit 31"] - #[inline(always)] - pub fn gpio23_edge_high(&self) -> GPIO23_EDGE_HIGH_R { - GPIO23_EDGE_HIGH_R::new(((self.bits >> 31) & 0x01) != 0) - } - #[doc = "Bit 30"] - #[inline(always)] - pub fn gpio23_edge_low(&self) -> GPIO23_EDGE_LOW_R { - GPIO23_EDGE_LOW_R::new(((self.bits >> 30) & 0x01) != 0) - } - #[doc = "Bit 29"] - #[inline(always)] - pub fn gpio23_level_high(&self) -> GPIO23_LEVEL_HIGH_R { - GPIO23_LEVEL_HIGH_R::new(((self.bits >> 29) & 0x01) != 0) - } - #[doc = "Bit 28"] - #[inline(always)] - pub fn gpio23_level_low(&self) -> GPIO23_LEVEL_LOW_R { - GPIO23_LEVEL_LOW_R::new(((self.bits >> 28) & 0x01) != 0) - } - #[doc = "Bit 27"] - #[inline(always)] - pub fn gpio22_edge_high(&self) -> GPIO22_EDGE_HIGH_R { - GPIO22_EDGE_HIGH_R::new(((self.bits >> 27) & 0x01) != 0) - } - #[doc = "Bit 26"] - #[inline(always)] - pub fn gpio22_edge_low(&self) -> GPIO22_EDGE_LOW_R { - GPIO22_EDGE_LOW_R::new(((self.bits >> 26) & 0x01) != 0) - } - #[doc = "Bit 25"] - #[inline(always)] - pub fn gpio22_level_high(&self) -> GPIO22_LEVEL_HIGH_R { - GPIO22_LEVEL_HIGH_R::new(((self.bits >> 25) & 0x01) != 0) - } - #[doc = "Bit 24"] - #[inline(always)] - pub fn gpio22_level_low(&self) -> GPIO22_LEVEL_LOW_R { - GPIO22_LEVEL_LOW_R::new(((self.bits >> 24) & 0x01) != 0) - } - #[doc = "Bit 23"] - #[inline(always)] - pub fn gpio21_edge_high(&self) -> GPIO21_EDGE_HIGH_R { - GPIO21_EDGE_HIGH_R::new(((self.bits >> 23) & 0x01) != 0) - } - #[doc = "Bit 22"] - #[inline(always)] - pub fn gpio21_edge_low(&self) -> GPIO21_EDGE_LOW_R { - GPIO21_EDGE_LOW_R::new(((self.bits >> 22) & 0x01) != 0) - } - #[doc = "Bit 21"] - #[inline(always)] - pub fn gpio21_level_high(&self) -> GPIO21_LEVEL_HIGH_R { - GPIO21_LEVEL_HIGH_R::new(((self.bits >> 21) & 0x01) != 0) - } - #[doc = "Bit 20"] - #[inline(always)] - pub fn gpio21_level_low(&self) -> GPIO21_LEVEL_LOW_R { - GPIO21_LEVEL_LOW_R::new(((self.bits >> 20) & 0x01) != 0) - } - #[doc = "Bit 19"] - #[inline(always)] - pub fn gpio20_edge_high(&self) -> GPIO20_EDGE_HIGH_R { - GPIO20_EDGE_HIGH_R::new(((self.bits >> 19) & 0x01) != 0) - } - #[doc = "Bit 18"] - #[inline(always)] - pub fn gpio20_edge_low(&self) -> GPIO20_EDGE_LOW_R { - GPIO20_EDGE_LOW_R::new(((self.bits >> 18) & 0x01) != 0) - } - #[doc = "Bit 17"] - #[inline(always)] - pub fn gpio20_level_high(&self) -> GPIO20_LEVEL_HIGH_R { - GPIO20_LEVEL_HIGH_R::new(((self.bits >> 17) & 0x01) != 0) - } - #[doc = "Bit 16"] - #[inline(always)] - pub fn gpio20_level_low(&self) -> GPIO20_LEVEL_LOW_R { - GPIO20_LEVEL_LOW_R::new(((self.bits >> 16) & 0x01) != 0) - } - #[doc = "Bit 15"] - #[inline(always)] - pub fn gpio19_edge_high(&self) -> GPIO19_EDGE_HIGH_R { - GPIO19_EDGE_HIGH_R::new(((self.bits >> 15) & 0x01) != 0) - } - #[doc = "Bit 14"] - #[inline(always)] - pub fn gpio19_edge_low(&self) -> GPIO19_EDGE_LOW_R { - GPIO19_EDGE_LOW_R::new(((self.bits >> 14) & 0x01) != 0) - } - #[doc = "Bit 13"] - #[inline(always)] - pub fn gpio19_level_high(&self) -> GPIO19_LEVEL_HIGH_R { - GPIO19_LEVEL_HIGH_R::new(((self.bits >> 13) & 0x01) != 0) - } - #[doc = "Bit 12"] - #[inline(always)] - pub fn gpio19_level_low(&self) -> GPIO19_LEVEL_LOW_R { - GPIO19_LEVEL_LOW_R::new(((self.bits >> 12) & 0x01) != 0) - } - #[doc = "Bit 11"] - #[inline(always)] - pub fn gpio18_edge_high(&self) -> GPIO18_EDGE_HIGH_R { - GPIO18_EDGE_HIGH_R::new(((self.bits >> 11) & 0x01) != 0) - } - #[doc = "Bit 10"] - #[inline(always)] - pub fn gpio18_edge_low(&self) -> GPIO18_EDGE_LOW_R { - GPIO18_EDGE_LOW_R::new(((self.bits >> 10) & 0x01) != 0) - } - #[doc = "Bit 9"] - #[inline(always)] - pub fn gpio18_level_high(&self) -> GPIO18_LEVEL_HIGH_R { - GPIO18_LEVEL_HIGH_R::new(((self.bits >> 9) & 0x01) != 0) - } - #[doc = "Bit 8"] - #[inline(always)] - pub fn gpio18_level_low(&self) -> GPIO18_LEVEL_LOW_R { - GPIO18_LEVEL_LOW_R::new(((self.bits >> 8) & 0x01) != 0) - } - #[doc = "Bit 7"] - #[inline(always)] - pub fn gpio17_edge_high(&self) -> GPIO17_EDGE_HIGH_R { - GPIO17_EDGE_HIGH_R::new(((self.bits >> 7) & 0x01) != 0) - } - #[doc = "Bit 6"] - #[inline(always)] - pub fn gpio17_edge_low(&self) -> GPIO17_EDGE_LOW_R { - GPIO17_EDGE_LOW_R::new(((self.bits >> 6) & 0x01) != 0) - } - #[doc = "Bit 5"] - #[inline(always)] - pub fn gpio17_level_high(&self) -> GPIO17_LEVEL_HIGH_R { - GPIO17_LEVEL_HIGH_R::new(((self.bits >> 5) & 0x01) != 0) - } - #[doc = "Bit 4"] - #[inline(always)] - pub fn gpio17_level_low(&self) -> GPIO17_LEVEL_LOW_R { - GPIO17_LEVEL_LOW_R::new(((self.bits >> 4) & 0x01) != 0) - } - #[doc = "Bit 3"] - #[inline(always)] - pub fn gpio16_edge_high(&self) -> GPIO16_EDGE_HIGH_R { - GPIO16_EDGE_HIGH_R::new(((self.bits >> 3) & 0x01) != 0) - } - #[doc = "Bit 2"] - #[inline(always)] - pub fn gpio16_edge_low(&self) -> GPIO16_EDGE_LOW_R { - GPIO16_EDGE_LOW_R::new(((self.bits >> 2) & 0x01) != 0) - } - #[doc = "Bit 1"] - #[inline(always)] - pub fn gpio16_level_high(&self) -> GPIO16_LEVEL_HIGH_R { - GPIO16_LEVEL_HIGH_R::new(((self.bits >> 1) & 0x01) != 0) - } - #[doc = "Bit 0"] - #[inline(always)] - pub fn gpio16_level_low(&self) -> GPIO16_LEVEL_LOW_R { - GPIO16_LEVEL_LOW_R::new((self.bits & 0x01) != 0) - } -} -impl W { - #[doc = "Bit 31"] - #[inline(always)] - pub fn gpio23_edge_high(&mut self) -> GPIO23_EDGE_HIGH_W { - GPIO23_EDGE_HIGH_W { w: self } - } - #[doc = "Bit 30"] - #[inline(always)] - pub fn gpio23_edge_low(&mut self) -> GPIO23_EDGE_LOW_W { - GPIO23_EDGE_LOW_W { w: self } - } - #[doc = "Bit 29"] - #[inline(always)] - pub fn gpio23_level_high(&mut self) -> GPIO23_LEVEL_HIGH_W { - GPIO23_LEVEL_HIGH_W { w: self } - } - #[doc = "Bit 28"] - #[inline(always)] - pub fn gpio23_level_low(&mut self) -> GPIO23_LEVEL_LOW_W { - GPIO23_LEVEL_LOW_W { w: self } - } - #[doc = "Bit 27"] - #[inline(always)] - pub fn gpio22_edge_high(&mut self) -> GPIO22_EDGE_HIGH_W { - GPIO22_EDGE_HIGH_W { w: self } - } - #[doc = "Bit 26"] - #[inline(always)] - pub fn gpio22_edge_low(&mut self) -> GPIO22_EDGE_LOW_W { - GPIO22_EDGE_LOW_W { w: self } - } - #[doc = "Bit 25"] - #[inline(always)] - pub fn gpio22_level_high(&mut self) -> GPIO22_LEVEL_HIGH_W { - GPIO22_LEVEL_HIGH_W { w: self } - } - #[doc = "Bit 24"] - #[inline(always)] - pub fn gpio22_level_low(&mut self) -> GPIO22_LEVEL_LOW_W { - GPIO22_LEVEL_LOW_W { w: self } - } - #[doc = "Bit 23"] - #[inline(always)] - pub fn gpio21_edge_high(&mut self) -> GPIO21_EDGE_HIGH_W { - GPIO21_EDGE_HIGH_W { w: self } - } - #[doc = "Bit 22"] - #[inline(always)] - pub fn gpio21_edge_low(&mut self) -> GPIO21_EDGE_LOW_W { - GPIO21_EDGE_LOW_W { w: self } - } - #[doc = "Bit 21"] - #[inline(always)] - pub fn gpio21_level_high(&mut self) -> GPIO21_LEVEL_HIGH_W { - GPIO21_LEVEL_HIGH_W { w: self } - } - #[doc = "Bit 20"] - #[inline(always)] - pub fn gpio21_level_low(&mut self) -> GPIO21_LEVEL_LOW_W { - GPIO21_LEVEL_LOW_W { w: self } - } - #[doc = "Bit 19"] - #[inline(always)] - pub fn gpio20_edge_high(&mut self) -> GPIO20_EDGE_HIGH_W { - GPIO20_EDGE_HIGH_W { w: self } - } - #[doc = "Bit 18"] - #[inline(always)] - pub fn gpio20_edge_low(&mut self) -> GPIO20_EDGE_LOW_W { - GPIO20_EDGE_LOW_W { w: self } - } - #[doc = "Bit 17"] - #[inline(always)] - pub fn gpio20_level_high(&mut self) -> GPIO20_LEVEL_HIGH_W { - GPIO20_LEVEL_HIGH_W { w: self } - } - #[doc = "Bit 16"] - #[inline(always)] - pub fn gpio20_level_low(&mut self) -> GPIO20_LEVEL_LOW_W { - GPIO20_LEVEL_LOW_W { w: self } - } - #[doc = "Bit 15"] - #[inline(always)] - pub fn gpio19_edge_high(&mut self) -> GPIO19_EDGE_HIGH_W { - GPIO19_EDGE_HIGH_W { w: self } - } - #[doc = "Bit 14"] - #[inline(always)] - pub fn gpio19_edge_low(&mut self) -> GPIO19_EDGE_LOW_W { - GPIO19_EDGE_LOW_W { w: self } - } - #[doc = "Bit 13"] - #[inline(always)] - pub fn gpio19_level_high(&mut self) -> GPIO19_LEVEL_HIGH_W { - GPIO19_LEVEL_HIGH_W { w: self } - } - #[doc = "Bit 12"] - #[inline(always)] - pub fn gpio19_level_low(&mut self) -> GPIO19_LEVEL_LOW_W { - GPIO19_LEVEL_LOW_W { w: self } - } - #[doc = "Bit 11"] - #[inline(always)] - pub fn gpio18_edge_high(&mut self) -> GPIO18_EDGE_HIGH_W { - GPIO18_EDGE_HIGH_W { w: self } - } - #[doc = "Bit 10"] - #[inline(always)] - pub fn gpio18_edge_low(&mut self) -> GPIO18_EDGE_LOW_W { - GPIO18_EDGE_LOW_W { w: self } - } - #[doc = "Bit 9"] - #[inline(always)] - pub fn gpio18_level_high(&mut self) -> GPIO18_LEVEL_HIGH_W { - GPIO18_LEVEL_HIGH_W { w: self } - } - #[doc = "Bit 8"] - #[inline(always)] - pub fn gpio18_level_low(&mut self) -> GPIO18_LEVEL_LOW_W { - GPIO18_LEVEL_LOW_W { w: self } - } - #[doc = "Bit 7"] - #[inline(always)] - pub fn gpio17_edge_high(&mut self) -> GPIO17_EDGE_HIGH_W { - GPIO17_EDGE_HIGH_W { w: self } - } - #[doc = "Bit 6"] - #[inline(always)] - pub fn gpio17_edge_low(&mut self) -> GPIO17_EDGE_LOW_W { - GPIO17_EDGE_LOW_W { w: self } - } - #[doc = "Bit 5"] - #[inline(always)] - pub fn gpio17_level_high(&mut self) -> GPIO17_LEVEL_HIGH_W { - GPIO17_LEVEL_HIGH_W { w: self } - } - #[doc = "Bit 4"] - #[inline(always)] - pub fn gpio17_level_low(&mut self) -> GPIO17_LEVEL_LOW_W { - GPIO17_LEVEL_LOW_W { w: self } - } - #[doc = "Bit 3"] - #[inline(always)] - pub fn gpio16_edge_high(&mut self) -> GPIO16_EDGE_HIGH_W { - GPIO16_EDGE_HIGH_W { w: self } - } - #[doc = "Bit 2"] - #[inline(always)] - pub fn gpio16_edge_low(&mut self) -> GPIO16_EDGE_LOW_W { - GPIO16_EDGE_LOW_W { w: self } - } - #[doc = "Bit 1"] - #[inline(always)] - pub fn gpio16_level_high(&mut self) -> GPIO16_LEVEL_HIGH_W { - GPIO16_LEVEL_HIGH_W { w: self } - } - #[doc = "Bit 0"] - #[inline(always)] - pub fn gpio16_level_low(&mut self) -> GPIO16_LEVEL_LOW_W { - GPIO16_LEVEL_LOW_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 for dormant_wake - -This 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). - -For information about available fields see [dormant_wake_inte2](index.html) module"] -pub struct DORMANT_WAKE_INTE2_SPEC; -impl crate::RegisterSpec for DORMANT_WAKE_INTE2_SPEC { - type Ux = u32; -} -#[doc = "`read()` method returns [dormant_wake_inte2::R](R) reader structure"] -impl crate::Readable for DORMANT_WAKE_INTE2_SPEC { - type Reader = R; -} -#[doc = "`write(|w| ..)` method takes [dormant_wake_inte2::W](W) writer structure"] -impl crate::Writable for DORMANT_WAKE_INTE2_SPEC { - type Writer = W; -} -#[doc = "`reset()` method sets DORMANT_WAKE_INTE2 to value 0"] -impl crate::Resettable for DORMANT_WAKE_INTE2_SPEC { - #[inline(always)] - fn reset_value() -> Self::Ux { - 0 - } -} diff --git a/src/io_bank0/dormant_wake_inte3.rs b/src/io_bank0/dormant_wake_inte3.rs deleted file mode 100644 index eefb76331..000000000 --- a/src/io_bank0/dormant_wake_inte3.rs +++ /dev/null @@ -1,1174 +0,0 @@ -#[doc = "Register `DORMANT_WAKE_INTE3` reader"] -pub struct R(crate::R); -impl core::ops::Deref for R { - type Target = crate::R; - #[inline(always)] - fn deref(&self) -> &Self::Target { - &self.0 - } -} -impl From> for R { - #[inline(always)] - fn from(reader: crate::R) -> Self { - R(reader) - } -} -#[doc = "Register `DORMANT_WAKE_INTE3` writer"] -pub struct W(crate::W); -impl core::ops::Deref for W { - type Target = crate::W; - #[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> for W { - #[inline(always)] - fn from(writer: crate::W) -> Self { - W(writer) - } -} -#[doc = "Field `GPIO29_EDGE_HIGH` reader - "] -pub struct GPIO29_EDGE_HIGH_R(crate::FieldReader); -impl GPIO29_EDGE_HIGH_R { - pub(crate) fn new(bits: bool) -> Self { - GPIO29_EDGE_HIGH_R(crate::FieldReader::new(bits)) - } -} -impl core::ops::Deref for GPIO29_EDGE_HIGH_R { - type Target = crate::FieldReader; - #[inline(always)] - fn deref(&self) -> &Self::Target { - &self.0 - } -} -#[doc = "Field `GPIO29_EDGE_HIGH` writer - "] -pub struct GPIO29_EDGE_HIGH_W<'a> { - w: &'a mut W, -} -impl<'a> GPIO29_EDGE_HIGH_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 `GPIO29_EDGE_LOW` reader - "] -pub struct GPIO29_EDGE_LOW_R(crate::FieldReader); -impl GPIO29_EDGE_LOW_R { - pub(crate) fn new(bits: bool) -> Self { - GPIO29_EDGE_LOW_R(crate::FieldReader::new(bits)) - } -} -impl core::ops::Deref for GPIO29_EDGE_LOW_R { - type Target = crate::FieldReader; - #[inline(always)] - fn deref(&self) -> &Self::Target { - &self.0 - } -} -#[doc = "Field `GPIO29_EDGE_LOW` writer - "] -pub struct GPIO29_EDGE_LOW_W<'a> { - w: &'a mut W, -} -impl<'a> GPIO29_EDGE_LOW_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 `GPIO29_LEVEL_HIGH` reader - "] -pub struct GPIO29_LEVEL_HIGH_R(crate::FieldReader); -impl GPIO29_LEVEL_HIGH_R { - pub(crate) fn new(bits: bool) -> Self { - GPIO29_LEVEL_HIGH_R(crate::FieldReader::new(bits)) - } -} -impl core::ops::Deref for GPIO29_LEVEL_HIGH_R { - type Target = crate::FieldReader; - #[inline(always)] - fn deref(&self) -> &Self::Target { - &self.0 - } -} -#[doc = "Field `GPIO29_LEVEL_HIGH` writer - "] -pub struct GPIO29_LEVEL_HIGH_W<'a> { - w: &'a mut W, -} -impl<'a> GPIO29_LEVEL_HIGH_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 `GPIO29_LEVEL_LOW` reader - "] -pub struct GPIO29_LEVEL_LOW_R(crate::FieldReader); -impl GPIO29_LEVEL_LOW_R { - pub(crate) fn new(bits: bool) -> Self { - GPIO29_LEVEL_LOW_R(crate::FieldReader::new(bits)) - } -} -impl core::ops::Deref for GPIO29_LEVEL_LOW_R { - type Target = crate::FieldReader; - #[inline(always)] - fn deref(&self) -> &Self::Target { - &self.0 - } -} -#[doc = "Field `GPIO29_LEVEL_LOW` writer - "] -pub struct GPIO29_LEVEL_LOW_W<'a> { - w: &'a mut W, -} -impl<'a> GPIO29_LEVEL_LOW_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 `GPIO28_EDGE_HIGH` reader - "] -pub struct GPIO28_EDGE_HIGH_R(crate::FieldReader); -impl GPIO28_EDGE_HIGH_R { - pub(crate) fn new(bits: bool) -> Self { - GPIO28_EDGE_HIGH_R(crate::FieldReader::new(bits)) - } -} -impl core::ops::Deref for GPIO28_EDGE_HIGH_R { - type Target = crate::FieldReader; - #[inline(always)] - fn deref(&self) -> &Self::Target { - &self.0 - } -} -#[doc = "Field `GPIO28_EDGE_HIGH` writer - "] -pub struct GPIO28_EDGE_HIGH_W<'a> { - w: &'a mut W, -} -impl<'a> GPIO28_EDGE_HIGH_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 `GPIO28_EDGE_LOW` reader - "] -pub struct GPIO28_EDGE_LOW_R(crate::FieldReader); -impl GPIO28_EDGE_LOW_R { - pub(crate) fn new(bits: bool) -> Self { - GPIO28_EDGE_LOW_R(crate::FieldReader::new(bits)) - } -} -impl core::ops::Deref for GPIO28_EDGE_LOW_R { - type Target = crate::FieldReader; - #[inline(always)] - fn deref(&self) -> &Self::Target { - &self.0 - } -} -#[doc = "Field `GPIO28_EDGE_LOW` writer - "] -pub struct GPIO28_EDGE_LOW_W<'a> { - w: &'a mut W, -} -impl<'a> GPIO28_EDGE_LOW_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 `GPIO28_LEVEL_HIGH` reader - "] -pub struct GPIO28_LEVEL_HIGH_R(crate::FieldReader); -impl GPIO28_LEVEL_HIGH_R { - pub(crate) fn new(bits: bool) -> Self { - GPIO28_LEVEL_HIGH_R(crate::FieldReader::new(bits)) - } -} -impl core::ops::Deref for GPIO28_LEVEL_HIGH_R { - type Target = crate::FieldReader; - #[inline(always)] - fn deref(&self) -> &Self::Target { - &self.0 - } -} -#[doc = "Field `GPIO28_LEVEL_HIGH` writer - "] -pub struct GPIO28_LEVEL_HIGH_W<'a> { - w: &'a mut W, -} -impl<'a> GPIO28_LEVEL_HIGH_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 `GPIO28_LEVEL_LOW` reader - "] -pub struct GPIO28_LEVEL_LOW_R(crate::FieldReader); -impl GPIO28_LEVEL_LOW_R { - pub(crate) fn new(bits: bool) -> Self { - GPIO28_LEVEL_LOW_R(crate::FieldReader::new(bits)) - } -} -impl core::ops::Deref for GPIO28_LEVEL_LOW_R { - type Target = crate::FieldReader; - #[inline(always)] - fn deref(&self) -> &Self::Target { - &self.0 - } -} -#[doc = "Field `GPIO28_LEVEL_LOW` writer - "] -pub struct GPIO28_LEVEL_LOW_W<'a> { - w: &'a mut W, -} -impl<'a> GPIO28_LEVEL_LOW_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 `GPIO27_EDGE_HIGH` reader - "] -pub struct GPIO27_EDGE_HIGH_R(crate::FieldReader); -impl GPIO27_EDGE_HIGH_R { - pub(crate) fn new(bits: bool) -> Self { - GPIO27_EDGE_HIGH_R(crate::FieldReader::new(bits)) - } -} -impl core::ops::Deref for GPIO27_EDGE_HIGH_R { - type Target = crate::FieldReader; - #[inline(always)] - fn deref(&self) -> &Self::Target { - &self.0 - } -} -#[doc = "Field `GPIO27_EDGE_HIGH` writer - "] -pub struct GPIO27_EDGE_HIGH_W<'a> { - w: &'a mut W, -} -impl<'a> GPIO27_EDGE_HIGH_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 - } -} -#[doc = "Field `GPIO27_EDGE_LOW` reader - "] -pub struct GPIO27_EDGE_LOW_R(crate::FieldReader); -impl GPIO27_EDGE_LOW_R { - pub(crate) fn new(bits: bool) -> Self { - GPIO27_EDGE_LOW_R(crate::FieldReader::new(bits)) - } -} -impl core::ops::Deref for GPIO27_EDGE_LOW_R { - type Target = crate::FieldReader; - #[inline(always)] - fn deref(&self) -> &Self::Target { - &self.0 - } -} -#[doc = "Field `GPIO27_EDGE_LOW` writer - "] -pub struct GPIO27_EDGE_LOW_W<'a> { - w: &'a mut W, -} -impl<'a> GPIO27_EDGE_LOW_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 `GPIO27_LEVEL_HIGH` reader - "] -pub struct GPIO27_LEVEL_HIGH_R(crate::FieldReader); -impl GPIO27_LEVEL_HIGH_R { - pub(crate) fn new(bits: bool) -> Self { - GPIO27_LEVEL_HIGH_R(crate::FieldReader::new(bits)) - } -} -impl core::ops::Deref for GPIO27_LEVEL_HIGH_R { - type Target = crate::FieldReader; - #[inline(always)] - fn deref(&self) -> &Self::Target { - &self.0 - } -} -#[doc = "Field `GPIO27_LEVEL_HIGH` writer - "] -pub struct GPIO27_LEVEL_HIGH_W<'a> { - w: &'a mut W, -} -impl<'a> GPIO27_LEVEL_HIGH_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 << 13)) | ((value as u32 & 0x01) << 13); - self.w - } -} -#[doc = "Field `GPIO27_LEVEL_LOW` reader - "] -pub struct GPIO27_LEVEL_LOW_R(crate::FieldReader); -impl GPIO27_LEVEL_LOW_R { - pub(crate) fn new(bits: bool) -> Self { - GPIO27_LEVEL_LOW_R(crate::FieldReader::new(bits)) - } -} -impl core::ops::Deref for GPIO27_LEVEL_LOW_R { - type Target = crate::FieldReader; - #[inline(always)] - fn deref(&self) -> &Self::Target { - &self.0 - } -} -#[doc = "Field `GPIO27_LEVEL_LOW` writer - "] -pub struct GPIO27_LEVEL_LOW_W<'a> { - w: &'a mut W, -} -impl<'a> GPIO27_LEVEL_LOW_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 << 12)) | ((value as u32 & 0x01) << 12); - self.w - } -} -#[doc = "Field `GPIO26_EDGE_HIGH` reader - "] -pub struct GPIO26_EDGE_HIGH_R(crate::FieldReader); -impl GPIO26_EDGE_HIGH_R { - pub(crate) fn new(bits: bool) -> Self { - GPIO26_EDGE_HIGH_R(crate::FieldReader::new(bits)) - } -} -impl core::ops::Deref for GPIO26_EDGE_HIGH_R { - type Target = crate::FieldReader; - #[inline(always)] - fn deref(&self) -> &Self::Target { - &self.0 - } -} -#[doc = "Field `GPIO26_EDGE_HIGH` writer - "] -pub struct GPIO26_EDGE_HIGH_W<'a> { - w: &'a mut W, -} -impl<'a> GPIO26_EDGE_HIGH_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 `GPIO26_EDGE_LOW` reader - "] -pub struct GPIO26_EDGE_LOW_R(crate::FieldReader); -impl GPIO26_EDGE_LOW_R { - pub(crate) fn new(bits: bool) -> Self { - GPIO26_EDGE_LOW_R(crate::FieldReader::new(bits)) - } -} -impl core::ops::Deref for GPIO26_EDGE_LOW_R { - type Target = crate::FieldReader; - #[inline(always)] - fn deref(&self) -> &Self::Target { - &self.0 - } -} -#[doc = "Field `GPIO26_EDGE_LOW` writer - "] -pub struct GPIO26_EDGE_LOW_W<'a> { - w: &'a mut W, -} -impl<'a> GPIO26_EDGE_LOW_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 `GPIO26_LEVEL_HIGH` reader - "] -pub struct GPIO26_LEVEL_HIGH_R(crate::FieldReader); -impl GPIO26_LEVEL_HIGH_R { - pub(crate) fn new(bits: bool) -> Self { - GPIO26_LEVEL_HIGH_R(crate::FieldReader::new(bits)) - } -} -impl core::ops::Deref for GPIO26_LEVEL_HIGH_R { - type Target = crate::FieldReader; - #[inline(always)] - fn deref(&self) -> &Self::Target { - &self.0 - } -} -#[doc = "Field `GPIO26_LEVEL_HIGH` writer - "] -pub struct GPIO26_LEVEL_HIGH_W<'a> { - w: &'a mut W, -} -impl<'a> GPIO26_LEVEL_HIGH_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 `GPIO26_LEVEL_LOW` reader - "] -pub struct GPIO26_LEVEL_LOW_R(crate::FieldReader); -impl GPIO26_LEVEL_LOW_R { - pub(crate) fn new(bits: bool) -> Self { - GPIO26_LEVEL_LOW_R(crate::FieldReader::new(bits)) - } -} -impl core::ops::Deref for GPIO26_LEVEL_LOW_R { - type Target = crate::FieldReader; - #[inline(always)] - fn deref(&self) -> &Self::Target { - &self.0 - } -} -#[doc = "Field `GPIO26_LEVEL_LOW` writer - "] -pub struct GPIO26_LEVEL_LOW_W<'a> { - w: &'a mut W, -} -impl<'a> GPIO26_LEVEL_LOW_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 `GPIO25_EDGE_HIGH` reader - "] -pub struct GPIO25_EDGE_HIGH_R(crate::FieldReader); -impl GPIO25_EDGE_HIGH_R { - pub(crate) fn new(bits: bool) -> Self { - GPIO25_EDGE_HIGH_R(crate::FieldReader::new(bits)) - } -} -impl core::ops::Deref for GPIO25_EDGE_HIGH_R { - type Target = crate::FieldReader; - #[inline(always)] - fn deref(&self) -> &Self::Target { - &self.0 - } -} -#[doc = "Field `GPIO25_EDGE_HIGH` writer - "] -pub struct GPIO25_EDGE_HIGH_W<'a> { - w: &'a mut W, -} -impl<'a> GPIO25_EDGE_HIGH_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 `GPIO25_EDGE_LOW` reader - "] -pub struct GPIO25_EDGE_LOW_R(crate::FieldReader); -impl GPIO25_EDGE_LOW_R { - pub(crate) fn new(bits: bool) -> Self { - GPIO25_EDGE_LOW_R(crate::FieldReader::new(bits)) - } -} -impl core::ops::Deref for GPIO25_EDGE_LOW_R { - type Target = crate::FieldReader; - #[inline(always)] - fn deref(&self) -> &Self::Target { - &self.0 - } -} -#[doc = "Field `GPIO25_EDGE_LOW` writer - "] -pub struct GPIO25_EDGE_LOW_W<'a> { - w: &'a mut W, -} -impl<'a> GPIO25_EDGE_LOW_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 `GPIO25_LEVEL_HIGH` reader - "] -pub struct GPIO25_LEVEL_HIGH_R(crate::FieldReader); -impl GPIO25_LEVEL_HIGH_R { - pub(crate) fn new(bits: bool) -> Self { - GPIO25_LEVEL_HIGH_R(crate::FieldReader::new(bits)) - } -} -impl core::ops::Deref for GPIO25_LEVEL_HIGH_R { - type Target = crate::FieldReader; - #[inline(always)] - fn deref(&self) -> &Self::Target { - &self.0 - } -} -#[doc = "Field `GPIO25_LEVEL_HIGH` writer - "] -pub struct GPIO25_LEVEL_HIGH_W<'a> { - w: &'a mut W, -} -impl<'a> GPIO25_LEVEL_HIGH_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 `GPIO25_LEVEL_LOW` reader - "] -pub struct GPIO25_LEVEL_LOW_R(crate::FieldReader); -impl GPIO25_LEVEL_LOW_R { - pub(crate) fn new(bits: bool) -> Self { - GPIO25_LEVEL_LOW_R(crate::FieldReader::new(bits)) - } -} -impl core::ops::Deref for GPIO25_LEVEL_LOW_R { - type Target = crate::FieldReader; - #[inline(always)] - fn deref(&self) -> &Self::Target { - &self.0 - } -} -#[doc = "Field `GPIO25_LEVEL_LOW` writer - "] -pub struct GPIO25_LEVEL_LOW_W<'a> { - w: &'a mut W, -} -impl<'a> GPIO25_LEVEL_LOW_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 `GPIO24_EDGE_HIGH` reader - "] -pub struct GPIO24_EDGE_HIGH_R(crate::FieldReader); -impl GPIO24_EDGE_HIGH_R { - pub(crate) fn new(bits: bool) -> Self { - GPIO24_EDGE_HIGH_R(crate::FieldReader::new(bits)) - } -} -impl core::ops::Deref for GPIO24_EDGE_HIGH_R { - type Target = crate::FieldReader; - #[inline(always)] - fn deref(&self) -> &Self::Target { - &self.0 - } -} -#[doc = "Field `GPIO24_EDGE_HIGH` writer - "] -pub struct GPIO24_EDGE_HIGH_W<'a> { - w: &'a mut W, -} -impl<'a> GPIO24_EDGE_HIGH_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 `GPIO24_EDGE_LOW` reader - "] -pub struct GPIO24_EDGE_LOW_R(crate::FieldReader); -impl GPIO24_EDGE_LOW_R { - pub(crate) fn new(bits: bool) -> Self { - GPIO24_EDGE_LOW_R(crate::FieldReader::new(bits)) - } -} -impl core::ops::Deref for GPIO24_EDGE_LOW_R { - type Target = crate::FieldReader; - #[inline(always)] - fn deref(&self) -> &Self::Target { - &self.0 - } -} -#[doc = "Field `GPIO24_EDGE_LOW` writer - "] -pub struct GPIO24_EDGE_LOW_W<'a> { - w: &'a mut W, -} -impl<'a> GPIO24_EDGE_LOW_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 `GPIO24_LEVEL_HIGH` reader - "] -pub struct GPIO24_LEVEL_HIGH_R(crate::FieldReader); -impl GPIO24_LEVEL_HIGH_R { - pub(crate) fn new(bits: bool) -> Self { - GPIO24_LEVEL_HIGH_R(crate::FieldReader::new(bits)) - } -} -impl core::ops::Deref for GPIO24_LEVEL_HIGH_R { - type Target = crate::FieldReader; - #[inline(always)] - fn deref(&self) -> &Self::Target { - &self.0 - } -} -#[doc = "Field `GPIO24_LEVEL_HIGH` writer - "] -pub struct GPIO24_LEVEL_HIGH_W<'a> { - w: &'a mut W, -} -impl<'a> GPIO24_LEVEL_HIGH_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 `GPIO24_LEVEL_LOW` reader - "] -pub struct GPIO24_LEVEL_LOW_R(crate::FieldReader); -impl GPIO24_LEVEL_LOW_R { - pub(crate) fn new(bits: bool) -> Self { - GPIO24_LEVEL_LOW_R(crate::FieldReader::new(bits)) - } -} -impl core::ops::Deref for GPIO24_LEVEL_LOW_R { - type Target = crate::FieldReader; - #[inline(always)] - fn deref(&self) -> &Self::Target { - &self.0 - } -} -#[doc = "Field `GPIO24_LEVEL_LOW` writer - "] -pub struct GPIO24_LEVEL_LOW_W<'a> { - w: &'a mut W, -} -impl<'a> GPIO24_LEVEL_LOW_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 - } -} -impl R { - #[doc = "Bit 23"] - #[inline(always)] - pub fn gpio29_edge_high(&self) -> GPIO29_EDGE_HIGH_R { - GPIO29_EDGE_HIGH_R::new(((self.bits >> 23) & 0x01) != 0) - } - #[doc = "Bit 22"] - #[inline(always)] - pub fn gpio29_edge_low(&self) -> GPIO29_EDGE_LOW_R { - GPIO29_EDGE_LOW_R::new(((self.bits >> 22) & 0x01) != 0) - } - #[doc = "Bit 21"] - #[inline(always)] - pub fn gpio29_level_high(&self) -> GPIO29_LEVEL_HIGH_R { - GPIO29_LEVEL_HIGH_R::new(((self.bits >> 21) & 0x01) != 0) - } - #[doc = "Bit 20"] - #[inline(always)] - pub fn gpio29_level_low(&self) -> GPIO29_LEVEL_LOW_R { - GPIO29_LEVEL_LOW_R::new(((self.bits >> 20) & 0x01) != 0) - } - #[doc = "Bit 19"] - #[inline(always)] - pub fn gpio28_edge_high(&self) -> GPIO28_EDGE_HIGH_R { - GPIO28_EDGE_HIGH_R::new(((self.bits >> 19) & 0x01) != 0) - } - #[doc = "Bit 18"] - #[inline(always)] - pub fn gpio28_edge_low(&self) -> GPIO28_EDGE_LOW_R { - GPIO28_EDGE_LOW_R::new(((self.bits >> 18) & 0x01) != 0) - } - #[doc = "Bit 17"] - #[inline(always)] - pub fn gpio28_level_high(&self) -> GPIO28_LEVEL_HIGH_R { - GPIO28_LEVEL_HIGH_R::new(((self.bits >> 17) & 0x01) != 0) - } - #[doc = "Bit 16"] - #[inline(always)] - pub fn gpio28_level_low(&self) -> GPIO28_LEVEL_LOW_R { - GPIO28_LEVEL_LOW_R::new(((self.bits >> 16) & 0x01) != 0) - } - #[doc = "Bit 15"] - #[inline(always)] - pub fn gpio27_edge_high(&self) -> GPIO27_EDGE_HIGH_R { - GPIO27_EDGE_HIGH_R::new(((self.bits >> 15) & 0x01) != 0) - } - #[doc = "Bit 14"] - #[inline(always)] - pub fn gpio27_edge_low(&self) -> GPIO27_EDGE_LOW_R { - GPIO27_EDGE_LOW_R::new(((self.bits >> 14) & 0x01) != 0) - } - #[doc = "Bit 13"] - #[inline(always)] - pub fn gpio27_level_high(&self) -> GPIO27_LEVEL_HIGH_R { - GPIO27_LEVEL_HIGH_R::new(((self.bits >> 13) & 0x01) != 0) - } - #[doc = "Bit 12"] - #[inline(always)] - pub fn gpio27_level_low(&self) -> GPIO27_LEVEL_LOW_R { - GPIO27_LEVEL_LOW_R::new(((self.bits >> 12) & 0x01) != 0) - } - #[doc = "Bit 11"] - #[inline(always)] - pub fn gpio26_edge_high(&self) -> GPIO26_EDGE_HIGH_R { - GPIO26_EDGE_HIGH_R::new(((self.bits >> 11) & 0x01) != 0) - } - #[doc = "Bit 10"] - #[inline(always)] - pub fn gpio26_edge_low(&self) -> GPIO26_EDGE_LOW_R { - GPIO26_EDGE_LOW_R::new(((self.bits >> 10) & 0x01) != 0) - } - #[doc = "Bit 9"] - #[inline(always)] - pub fn gpio26_level_high(&self) -> GPIO26_LEVEL_HIGH_R { - GPIO26_LEVEL_HIGH_R::new(((self.bits >> 9) & 0x01) != 0) - } - #[doc = "Bit 8"] - #[inline(always)] - pub fn gpio26_level_low(&self) -> GPIO26_LEVEL_LOW_R { - GPIO26_LEVEL_LOW_R::new(((self.bits >> 8) & 0x01) != 0) - } - #[doc = "Bit 7"] - #[inline(always)] - pub fn gpio25_edge_high(&self) -> GPIO25_EDGE_HIGH_R { - GPIO25_EDGE_HIGH_R::new(((self.bits >> 7) & 0x01) != 0) - } - #[doc = "Bit 6"] - #[inline(always)] - pub fn gpio25_edge_low(&self) -> GPIO25_EDGE_LOW_R { - GPIO25_EDGE_LOW_R::new(((self.bits >> 6) & 0x01) != 0) - } - #[doc = "Bit 5"] - #[inline(always)] - pub fn gpio25_level_high(&self) -> GPIO25_LEVEL_HIGH_R { - GPIO25_LEVEL_HIGH_R::new(((self.bits >> 5) & 0x01) != 0) - } - #[doc = "Bit 4"] - #[inline(always)] - pub fn gpio25_level_low(&self) -> GPIO25_LEVEL_LOW_R { - GPIO25_LEVEL_LOW_R::new(((self.bits >> 4) & 0x01) != 0) - } - #[doc = "Bit 3"] - #[inline(always)] - pub fn gpio24_edge_high(&self) -> GPIO24_EDGE_HIGH_R { - GPIO24_EDGE_HIGH_R::new(((self.bits >> 3) & 0x01) != 0) - } - #[doc = "Bit 2"] - #[inline(always)] - pub fn gpio24_edge_low(&self) -> GPIO24_EDGE_LOW_R { - GPIO24_EDGE_LOW_R::new(((self.bits >> 2) & 0x01) != 0) - } - #[doc = "Bit 1"] - #[inline(always)] - pub fn gpio24_level_high(&self) -> GPIO24_LEVEL_HIGH_R { - GPIO24_LEVEL_HIGH_R::new(((self.bits >> 1) & 0x01) != 0) - } - #[doc = "Bit 0"] - #[inline(always)] - pub fn gpio24_level_low(&self) -> GPIO24_LEVEL_LOW_R { - GPIO24_LEVEL_LOW_R::new((self.bits & 0x01) != 0) - } -} -impl W { - #[doc = "Bit 23"] - #[inline(always)] - pub fn gpio29_edge_high(&mut self) -> GPIO29_EDGE_HIGH_W { - GPIO29_EDGE_HIGH_W { w: self } - } - #[doc = "Bit 22"] - #[inline(always)] - pub fn gpio29_edge_low(&mut self) -> GPIO29_EDGE_LOW_W { - GPIO29_EDGE_LOW_W { w: self } - } - #[doc = "Bit 21"] - #[inline(always)] - pub fn gpio29_level_high(&mut self) -> GPIO29_LEVEL_HIGH_W { - GPIO29_LEVEL_HIGH_W { w: self } - } - #[doc = "Bit 20"] - #[inline(always)] - pub fn gpio29_level_low(&mut self) -> GPIO29_LEVEL_LOW_W { - GPIO29_LEVEL_LOW_W { w: self } - } - #[doc = "Bit 19"] - #[inline(always)] - pub fn gpio28_edge_high(&mut self) -> GPIO28_EDGE_HIGH_W { - GPIO28_EDGE_HIGH_W { w: self } - } - #[doc = "Bit 18"] - #[inline(always)] - pub fn gpio28_edge_low(&mut self) -> GPIO28_EDGE_LOW_W { - GPIO28_EDGE_LOW_W { w: self } - } - #[doc = "Bit 17"] - #[inline(always)] - pub fn gpio28_level_high(&mut self) -> GPIO28_LEVEL_HIGH_W { - GPIO28_LEVEL_HIGH_W { w: self } - } - #[doc = "Bit 16"] - #[inline(always)] - pub fn gpio28_level_low(&mut self) -> GPIO28_LEVEL_LOW_W { - GPIO28_LEVEL_LOW_W { w: self } - } - #[doc = "Bit 15"] - #[inline(always)] - pub fn gpio27_edge_high(&mut self) -> GPIO27_EDGE_HIGH_W { - GPIO27_EDGE_HIGH_W { w: self } - } - #[doc = "Bit 14"] - #[inline(always)] - pub fn gpio27_edge_low(&mut self) -> GPIO27_EDGE_LOW_W { - GPIO27_EDGE_LOW_W { w: self } - } - #[doc = "Bit 13"] - #[inline(always)] - pub fn gpio27_level_high(&mut self) -> GPIO27_LEVEL_HIGH_W { - GPIO27_LEVEL_HIGH_W { w: self } - } - #[doc = "Bit 12"] - #[inline(always)] - pub fn gpio27_level_low(&mut self) -> GPIO27_LEVEL_LOW_W { - GPIO27_LEVEL_LOW_W { w: self } - } - #[doc = "Bit 11"] - #[inline(always)] - pub fn gpio26_edge_high(&mut self) -> GPIO26_EDGE_HIGH_W { - GPIO26_EDGE_HIGH_W { w: self } - } - #[doc = "Bit 10"] - #[inline(always)] - pub fn gpio26_edge_low(&mut self) -> GPIO26_EDGE_LOW_W { - GPIO26_EDGE_LOW_W { w: self } - } - #[doc = "Bit 9"] - #[inline(always)] - pub fn gpio26_level_high(&mut self) -> GPIO26_LEVEL_HIGH_W { - GPIO26_LEVEL_HIGH_W { w: self } - } - #[doc = "Bit 8"] - #[inline(always)] - pub fn gpio26_level_low(&mut self) -> GPIO26_LEVEL_LOW_W { - GPIO26_LEVEL_LOW_W { w: self } - } - #[doc = "Bit 7"] - #[inline(always)] - pub fn gpio25_edge_high(&mut self) -> GPIO25_EDGE_HIGH_W { - GPIO25_EDGE_HIGH_W { w: self } - } - #[doc = "Bit 6"] - #[inline(always)] - pub fn gpio25_edge_low(&mut self) -> GPIO25_EDGE_LOW_W { - GPIO25_EDGE_LOW_W { w: self } - } - #[doc = "Bit 5"] - #[inline(always)] - pub fn gpio25_level_high(&mut self) -> GPIO25_LEVEL_HIGH_W { - GPIO25_LEVEL_HIGH_W { w: self } - } - #[doc = "Bit 4"] - #[inline(always)] - pub fn gpio25_level_low(&mut self) -> GPIO25_LEVEL_LOW_W { - GPIO25_LEVEL_LOW_W { w: self } - } - #[doc = "Bit 3"] - #[inline(always)] - pub fn gpio24_edge_high(&mut self) -> GPIO24_EDGE_HIGH_W { - GPIO24_EDGE_HIGH_W { w: self } - } - #[doc = "Bit 2"] - #[inline(always)] - pub fn gpio24_edge_low(&mut self) -> GPIO24_EDGE_LOW_W { - GPIO24_EDGE_LOW_W { w: self } - } - #[doc = "Bit 1"] - #[inline(always)] - pub fn gpio24_level_high(&mut self) -> GPIO24_LEVEL_HIGH_W { - GPIO24_LEVEL_HIGH_W { w: self } - } - #[doc = "Bit 0"] - #[inline(always)] - pub fn gpio24_level_low(&mut self) -> GPIO24_LEVEL_LOW_W { - GPIO24_LEVEL_LOW_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 for dormant_wake - -This 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). - -For information about available fields see [dormant_wake_inte3](index.html) module"] -pub struct DORMANT_WAKE_INTE3_SPEC; -impl crate::RegisterSpec for DORMANT_WAKE_INTE3_SPEC { - type Ux = u32; -} -#[doc = "`read()` method returns [dormant_wake_inte3::R](R) reader structure"] -impl crate::Readable for DORMANT_WAKE_INTE3_SPEC { - type Reader = R; -} -#[doc = "`write(|w| ..)` method takes [dormant_wake_inte3::W](W) writer structure"] -impl crate::Writable for DORMANT_WAKE_INTE3_SPEC { - type Writer = W; -} -#[doc = "`reset()` method sets DORMANT_WAKE_INTE3 to value 0"] -impl crate::Resettable for DORMANT_WAKE_INTE3_SPEC { - #[inline(always)] - fn reset_value() -> Self::Ux { - 0 - } -} diff --git a/src/io_bank0/dormant_wake_intf0.rs b/src/io_bank0/dormant_wake_intf.rs similarity index 97% rename from src/io_bank0/dormant_wake_intf0.rs rename to src/io_bank0/dormant_wake_intf.rs index b091bc2d4..37b5c3800 100644 --- a/src/io_bank0/dormant_wake_intf0.rs +++ b/src/io_bank0/dormant_wake_intf.rs @@ -1,22 +1,22 @@ -#[doc = "Register `DORMANT_WAKE_INTF0` reader"] -pub struct R(crate::R); +#[doc = "Register `DORMANT_WAKE_INTF%s` reader"] +pub struct R(crate::R); impl core::ops::Deref for R { - type Target = crate::R; + type Target = crate::R; #[inline(always)] fn deref(&self) -> &Self::Target { &self.0 } } -impl From> for R { +impl From> for R { #[inline(always)] - fn from(reader: crate::R) -> Self { + fn from(reader: crate::R) -> Self { R(reader) } } -#[doc = "Register `DORMANT_WAKE_INTF0` writer"] -pub struct W(crate::W); +#[doc = "Register `DORMANT_WAKE_INTF%s` writer"] +pub struct W(crate::W); impl core::ops::Deref for W { - type Target = crate::W; + type Target = crate::W; #[inline(always)] fn deref(&self) -> &Self::Target { &self.0 @@ -28,9 +28,9 @@ impl core::ops::DerefMut for W { &mut self.0 } } -impl From> for W { +impl From> for W { #[inline(always)] - fn from(writer: crate::W) -> Self { + fn from(writer: crate::W) -> Self { W(writer) } } @@ -1520,21 +1520,21 @@ impl W { This 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). -For information about available fields see [dormant_wake_intf0](index.html) module"] -pub struct DORMANT_WAKE_INTF0_SPEC; -impl crate::RegisterSpec for DORMANT_WAKE_INTF0_SPEC { +For information about available fields see [dormant_wake_intf](index.html) module"] +pub struct DORMANT_WAKE_INTF_SPEC; +impl crate::RegisterSpec for DORMANT_WAKE_INTF_SPEC { type Ux = u32; } -#[doc = "`read()` method returns [dormant_wake_intf0::R](R) reader structure"] -impl crate::Readable for DORMANT_WAKE_INTF0_SPEC { +#[doc = "`read()` method returns [dormant_wake_intf::R](R) reader structure"] +impl crate::Readable for DORMANT_WAKE_INTF_SPEC { type Reader = R; } -#[doc = "`write(|w| ..)` method takes [dormant_wake_intf0::W](W) writer structure"] -impl crate::Writable for DORMANT_WAKE_INTF0_SPEC { +#[doc = "`write(|w| ..)` method takes [dormant_wake_intf::W](W) writer structure"] +impl crate::Writable for DORMANT_WAKE_INTF_SPEC { type Writer = W; } -#[doc = "`reset()` method sets DORMANT_WAKE_INTF0 to value 0"] -impl crate::Resettable for DORMANT_WAKE_INTF0_SPEC { +#[doc = "`reset()` method sets DORMANT_WAKE_INTF%s to value 0"] +impl crate::Resettable for DORMANT_WAKE_INTF_SPEC { #[inline(always)] fn reset_value() -> Self::Ux { 0 diff --git a/src/io_bank0/dormant_wake_intf1.rs b/src/io_bank0/dormant_wake_intf1.rs deleted file mode 100644 index 533241021..000000000 --- a/src/io_bank0/dormant_wake_intf1.rs +++ /dev/null @@ -1,1542 +0,0 @@ -#[doc = "Register `DORMANT_WAKE_INTF1` reader"] -pub struct R(crate::R); -impl core::ops::Deref for R { - type Target = crate::R; - #[inline(always)] - fn deref(&self) -> &Self::Target { - &self.0 - } -} -impl From> for R { - #[inline(always)] - fn from(reader: crate::R) -> Self { - R(reader) - } -} -#[doc = "Register `DORMANT_WAKE_INTF1` writer"] -pub struct W(crate::W); -impl core::ops::Deref for W { - type Target = crate::W; - #[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> for W { - #[inline(always)] - fn from(writer: crate::W) -> Self { - W(writer) - } -} -#[doc = "Field `GPIO15_EDGE_HIGH` reader - "] -pub struct GPIO15_EDGE_HIGH_R(crate::FieldReader); -impl GPIO15_EDGE_HIGH_R { - pub(crate) fn new(bits: bool) -> Self { - GPIO15_EDGE_HIGH_R(crate::FieldReader::new(bits)) - } -} -impl core::ops::Deref for GPIO15_EDGE_HIGH_R { - type Target = crate::FieldReader; - #[inline(always)] - fn deref(&self) -> &Self::Target { - &self.0 - } -} -#[doc = "Field `GPIO15_EDGE_HIGH` writer - "] -pub struct GPIO15_EDGE_HIGH_W<'a> { - w: &'a mut W, -} -impl<'a> GPIO15_EDGE_HIGH_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 << 31)) | ((value as u32 & 0x01) << 31); - self.w - } -} -#[doc = "Field `GPIO15_EDGE_LOW` reader - "] -pub struct GPIO15_EDGE_LOW_R(crate::FieldReader); -impl GPIO15_EDGE_LOW_R { - pub(crate) fn new(bits: bool) -> Self { - GPIO15_EDGE_LOW_R(crate::FieldReader::new(bits)) - } -} -impl core::ops::Deref for GPIO15_EDGE_LOW_R { - type Target = crate::FieldReader; - #[inline(always)] - fn deref(&self) -> &Self::Target { - &self.0 - } -} -#[doc = "Field `GPIO15_EDGE_LOW` writer - "] -pub struct GPIO15_EDGE_LOW_W<'a> { - w: &'a mut W, -} -impl<'a> GPIO15_EDGE_LOW_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 << 30)) | ((value as u32 & 0x01) << 30); - self.w - } -} -#[doc = "Field `GPIO15_LEVEL_HIGH` reader - "] -pub struct GPIO15_LEVEL_HIGH_R(crate::FieldReader); -impl GPIO15_LEVEL_HIGH_R { - pub(crate) fn new(bits: bool) -> Self { - GPIO15_LEVEL_HIGH_R(crate::FieldReader::new(bits)) - } -} -impl core::ops::Deref for GPIO15_LEVEL_HIGH_R { - type Target = crate::FieldReader; - #[inline(always)] - fn deref(&self) -> &Self::Target { - &self.0 - } -} -#[doc = "Field `GPIO15_LEVEL_HIGH` writer - "] -pub struct GPIO15_LEVEL_HIGH_W<'a> { - w: &'a mut W, -} -impl<'a> GPIO15_LEVEL_HIGH_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 << 29)) | ((value as u32 & 0x01) << 29); - self.w - } -} -#[doc = "Field `GPIO15_LEVEL_LOW` reader - "] -pub struct GPIO15_LEVEL_LOW_R(crate::FieldReader); -impl GPIO15_LEVEL_LOW_R { - pub(crate) fn new(bits: bool) -> Self { - GPIO15_LEVEL_LOW_R(crate::FieldReader::new(bits)) - } -} -impl core::ops::Deref for GPIO15_LEVEL_LOW_R { - type Target = crate::FieldReader; - #[inline(always)] - fn deref(&self) -> &Self::Target { - &self.0 - } -} -#[doc = "Field `GPIO15_LEVEL_LOW` writer - "] -pub struct GPIO15_LEVEL_LOW_W<'a> { - w: &'a mut W, -} -impl<'a> GPIO15_LEVEL_LOW_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 << 28)) | ((value as u32 & 0x01) << 28); - self.w - } -} -#[doc = "Field `GPIO14_EDGE_HIGH` reader - "] -pub struct GPIO14_EDGE_HIGH_R(crate::FieldReader); -impl GPIO14_EDGE_HIGH_R { - pub(crate) fn new(bits: bool) -> Self { - GPIO14_EDGE_HIGH_R(crate::FieldReader::new(bits)) - } -} -impl core::ops::Deref for GPIO14_EDGE_HIGH_R { - type Target = crate::FieldReader; - #[inline(always)] - fn deref(&self) -> &Self::Target { - &self.0 - } -} -#[doc = "Field `GPIO14_EDGE_HIGH` writer - "] -pub struct GPIO14_EDGE_HIGH_W<'a> { - w: &'a mut W, -} -impl<'a> GPIO14_EDGE_HIGH_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 - } -} -#[doc = "Field `GPIO14_EDGE_LOW` reader - "] -pub struct GPIO14_EDGE_LOW_R(crate::FieldReader); -impl GPIO14_EDGE_LOW_R { - pub(crate) fn new(bits: bool) -> Self { - GPIO14_EDGE_LOW_R(crate::FieldReader::new(bits)) - } -} -impl core::ops::Deref for GPIO14_EDGE_LOW_R { - type Target = crate::FieldReader; - #[inline(always)] - fn deref(&self) -> &Self::Target { - &self.0 - } -} -#[doc = "Field `GPIO14_EDGE_LOW` writer - "] -pub struct GPIO14_EDGE_LOW_W<'a> { - w: &'a mut W, -} -impl<'a> GPIO14_EDGE_LOW_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 `GPIO14_LEVEL_HIGH` reader - "] -pub struct GPIO14_LEVEL_HIGH_R(crate::FieldReader); -impl GPIO14_LEVEL_HIGH_R { - pub(crate) fn new(bits: bool) -> Self { - GPIO14_LEVEL_HIGH_R(crate::FieldReader::new(bits)) - } -} -impl core::ops::Deref for GPIO14_LEVEL_HIGH_R { - type Target = crate::FieldReader; - #[inline(always)] - fn deref(&self) -> &Self::Target { - &self.0 - } -} -#[doc = "Field `GPIO14_LEVEL_HIGH` writer - "] -pub struct GPIO14_LEVEL_HIGH_W<'a> { - w: &'a mut W, -} -impl<'a> GPIO14_LEVEL_HIGH_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 `GPIO14_LEVEL_LOW` reader - "] -pub struct GPIO14_LEVEL_LOW_R(crate::FieldReader); -impl GPIO14_LEVEL_LOW_R { - pub(crate) fn new(bits: bool) -> Self { - GPIO14_LEVEL_LOW_R(crate::FieldReader::new(bits)) - } -} -impl core::ops::Deref for GPIO14_LEVEL_LOW_R { - type Target = crate::FieldReader; - #[inline(always)] - fn deref(&self) -> &Self::Target { - &self.0 - } -} -#[doc = "Field `GPIO14_LEVEL_LOW` writer - "] -pub struct GPIO14_LEVEL_LOW_W<'a> { - w: &'a mut W, -} -impl<'a> GPIO14_LEVEL_LOW_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 `GPIO13_EDGE_HIGH` reader - "] -pub struct GPIO13_EDGE_HIGH_R(crate::FieldReader); -impl GPIO13_EDGE_HIGH_R { - pub(crate) fn new(bits: bool) -> Self { - GPIO13_EDGE_HIGH_R(crate::FieldReader::new(bits)) - } -} -impl core::ops::Deref for GPIO13_EDGE_HIGH_R { - type Target = crate::FieldReader; - #[inline(always)] - fn deref(&self) -> &Self::Target { - &self.0 - } -} -#[doc = "Field `GPIO13_EDGE_HIGH` writer - "] -pub struct GPIO13_EDGE_HIGH_W<'a> { - w: &'a mut W, -} -impl<'a> GPIO13_EDGE_HIGH_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 `GPIO13_EDGE_LOW` reader - "] -pub struct GPIO13_EDGE_LOW_R(crate::FieldReader); -impl GPIO13_EDGE_LOW_R { - pub(crate) fn new(bits: bool) -> Self { - GPIO13_EDGE_LOW_R(crate::FieldReader::new(bits)) - } -} -impl core::ops::Deref for GPIO13_EDGE_LOW_R { - type Target = crate::FieldReader; - #[inline(always)] - fn deref(&self) -> &Self::Target { - &self.0 - } -} -#[doc = "Field `GPIO13_EDGE_LOW` writer - "] -pub struct GPIO13_EDGE_LOW_W<'a> { - w: &'a mut W, -} -impl<'a> GPIO13_EDGE_LOW_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 `GPIO13_LEVEL_HIGH` reader - "] -pub struct GPIO13_LEVEL_HIGH_R(crate::FieldReader); -impl GPIO13_LEVEL_HIGH_R { - pub(crate) fn new(bits: bool) -> Self { - GPIO13_LEVEL_HIGH_R(crate::FieldReader::new(bits)) - } -} -impl core::ops::Deref for GPIO13_LEVEL_HIGH_R { - type Target = crate::FieldReader; - #[inline(always)] - fn deref(&self) -> &Self::Target { - &self.0 - } -} -#[doc = "Field `GPIO13_LEVEL_HIGH` writer - "] -pub struct GPIO13_LEVEL_HIGH_W<'a> { - w: &'a mut W, -} -impl<'a> GPIO13_LEVEL_HIGH_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 `GPIO13_LEVEL_LOW` reader - "] -pub struct GPIO13_LEVEL_LOW_R(crate::FieldReader); -impl GPIO13_LEVEL_LOW_R { - pub(crate) fn new(bits: bool) -> Self { - GPIO13_LEVEL_LOW_R(crate::FieldReader::new(bits)) - } -} -impl core::ops::Deref for GPIO13_LEVEL_LOW_R { - type Target = crate::FieldReader; - #[inline(always)] - fn deref(&self) -> &Self::Target { - &self.0 - } -} -#[doc = "Field `GPIO13_LEVEL_LOW` writer - "] -pub struct GPIO13_LEVEL_LOW_W<'a> { - w: &'a mut W, -} -impl<'a> GPIO13_LEVEL_LOW_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 `GPIO12_EDGE_HIGH` reader - "] -pub struct GPIO12_EDGE_HIGH_R(crate::FieldReader); -impl GPIO12_EDGE_HIGH_R { - pub(crate) fn new(bits: bool) -> Self { - GPIO12_EDGE_HIGH_R(crate::FieldReader::new(bits)) - } -} -impl core::ops::Deref for GPIO12_EDGE_HIGH_R { - type Target = crate::FieldReader; - #[inline(always)] - fn deref(&self) -> &Self::Target { - &self.0 - } -} -#[doc = "Field `GPIO12_EDGE_HIGH` writer - "] -pub struct GPIO12_EDGE_HIGH_W<'a> { - w: &'a mut W, -} -impl<'a> GPIO12_EDGE_HIGH_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 `GPIO12_EDGE_LOW` reader - "] -pub struct GPIO12_EDGE_LOW_R(crate::FieldReader); -impl GPIO12_EDGE_LOW_R { - pub(crate) fn new(bits: bool) -> Self { - GPIO12_EDGE_LOW_R(crate::FieldReader::new(bits)) - } -} -impl core::ops::Deref for GPIO12_EDGE_LOW_R { - type Target = crate::FieldReader; - #[inline(always)] - fn deref(&self) -> &Self::Target { - &self.0 - } -} -#[doc = "Field `GPIO12_EDGE_LOW` writer - "] -pub struct GPIO12_EDGE_LOW_W<'a> { - w: &'a mut W, -} -impl<'a> GPIO12_EDGE_LOW_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 `GPIO12_LEVEL_HIGH` reader - "] -pub struct GPIO12_LEVEL_HIGH_R(crate::FieldReader); -impl GPIO12_LEVEL_HIGH_R { - pub(crate) fn new(bits: bool) -> Self { - GPIO12_LEVEL_HIGH_R(crate::FieldReader::new(bits)) - } -} -impl core::ops::Deref for GPIO12_LEVEL_HIGH_R { - type Target = crate::FieldReader; - #[inline(always)] - fn deref(&self) -> &Self::Target { - &self.0 - } -} -#[doc = "Field `GPIO12_LEVEL_HIGH` writer - "] -pub struct GPIO12_LEVEL_HIGH_W<'a> { - w: &'a mut W, -} -impl<'a> GPIO12_LEVEL_HIGH_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 `GPIO12_LEVEL_LOW` reader - "] -pub struct GPIO12_LEVEL_LOW_R(crate::FieldReader); -impl GPIO12_LEVEL_LOW_R { - pub(crate) fn new(bits: bool) -> Self { - GPIO12_LEVEL_LOW_R(crate::FieldReader::new(bits)) - } -} -impl core::ops::Deref for GPIO12_LEVEL_LOW_R { - type Target = crate::FieldReader; - #[inline(always)] - fn deref(&self) -> &Self::Target { - &self.0 - } -} -#[doc = "Field `GPIO12_LEVEL_LOW` writer - "] -pub struct GPIO12_LEVEL_LOW_W<'a> { - w: &'a mut W, -} -impl<'a> GPIO12_LEVEL_LOW_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 `GPIO11_EDGE_HIGH` reader - "] -pub struct GPIO11_EDGE_HIGH_R(crate::FieldReader); -impl GPIO11_EDGE_HIGH_R { - pub(crate) fn new(bits: bool) -> Self { - GPIO11_EDGE_HIGH_R(crate::FieldReader::new(bits)) - } -} -impl core::ops::Deref for GPIO11_EDGE_HIGH_R { - type Target = crate::FieldReader; - #[inline(always)] - fn deref(&self) -> &Self::Target { - &self.0 - } -} -#[doc = "Field `GPIO11_EDGE_HIGH` writer - "] -pub struct GPIO11_EDGE_HIGH_W<'a> { - w: &'a mut W, -} -impl<'a> GPIO11_EDGE_HIGH_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 - } -} -#[doc = "Field `GPIO11_EDGE_LOW` reader - "] -pub struct GPIO11_EDGE_LOW_R(crate::FieldReader); -impl GPIO11_EDGE_LOW_R { - pub(crate) fn new(bits: bool) -> Self { - GPIO11_EDGE_LOW_R(crate::FieldReader::new(bits)) - } -} -impl core::ops::Deref for GPIO11_EDGE_LOW_R { - type Target = crate::FieldReader; - #[inline(always)] - fn deref(&self) -> &Self::Target { - &self.0 - } -} -#[doc = "Field `GPIO11_EDGE_LOW` writer - "] -pub struct GPIO11_EDGE_LOW_W<'a> { - w: &'a mut W, -} -impl<'a> GPIO11_EDGE_LOW_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 `GPIO11_LEVEL_HIGH` reader - "] -pub struct GPIO11_LEVEL_HIGH_R(crate::FieldReader); -impl GPIO11_LEVEL_HIGH_R { - pub(crate) fn new(bits: bool) -> Self { - GPIO11_LEVEL_HIGH_R(crate::FieldReader::new(bits)) - } -} -impl core::ops::Deref for GPIO11_LEVEL_HIGH_R { - type Target = crate::FieldReader; - #[inline(always)] - fn deref(&self) -> &Self::Target { - &self.0 - } -} -#[doc = "Field `GPIO11_LEVEL_HIGH` writer - "] -pub struct GPIO11_LEVEL_HIGH_W<'a> { - w: &'a mut W, -} -impl<'a> GPIO11_LEVEL_HIGH_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 << 13)) | ((value as u32 & 0x01) << 13); - self.w - } -} -#[doc = "Field `GPIO11_LEVEL_LOW` reader - "] -pub struct GPIO11_LEVEL_LOW_R(crate::FieldReader); -impl GPIO11_LEVEL_LOW_R { - pub(crate) fn new(bits: bool) -> Self { - GPIO11_LEVEL_LOW_R(crate::FieldReader::new(bits)) - } -} -impl core::ops::Deref for GPIO11_LEVEL_LOW_R { - type Target = crate::FieldReader; - #[inline(always)] - fn deref(&self) -> &Self::Target { - &self.0 - } -} -#[doc = "Field `GPIO11_LEVEL_LOW` writer - "] -pub struct GPIO11_LEVEL_LOW_W<'a> { - w: &'a mut W, -} -impl<'a> GPIO11_LEVEL_LOW_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 << 12)) | ((value as u32 & 0x01) << 12); - self.w - } -} -#[doc = "Field `GPIO10_EDGE_HIGH` reader - "] -pub struct GPIO10_EDGE_HIGH_R(crate::FieldReader); -impl GPIO10_EDGE_HIGH_R { - pub(crate) fn new(bits: bool) -> Self { - GPIO10_EDGE_HIGH_R(crate::FieldReader::new(bits)) - } -} -impl core::ops::Deref for GPIO10_EDGE_HIGH_R { - type Target = crate::FieldReader; - #[inline(always)] - fn deref(&self) -> &Self::Target { - &self.0 - } -} -#[doc = "Field `GPIO10_EDGE_HIGH` writer - "] -pub struct GPIO10_EDGE_HIGH_W<'a> { - w: &'a mut W, -} -impl<'a> GPIO10_EDGE_HIGH_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 `GPIO10_EDGE_LOW` reader - "] -pub struct GPIO10_EDGE_LOW_R(crate::FieldReader); -impl GPIO10_EDGE_LOW_R { - pub(crate) fn new(bits: bool) -> Self { - GPIO10_EDGE_LOW_R(crate::FieldReader::new(bits)) - } -} -impl core::ops::Deref for GPIO10_EDGE_LOW_R { - type Target = crate::FieldReader; - #[inline(always)] - fn deref(&self) -> &Self::Target { - &self.0 - } -} -#[doc = "Field `GPIO10_EDGE_LOW` writer - "] -pub struct GPIO10_EDGE_LOW_W<'a> { - w: &'a mut W, -} -impl<'a> GPIO10_EDGE_LOW_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 `GPIO10_LEVEL_HIGH` reader - "] -pub struct GPIO10_LEVEL_HIGH_R(crate::FieldReader); -impl GPIO10_LEVEL_HIGH_R { - pub(crate) fn new(bits: bool) -> Self { - GPIO10_LEVEL_HIGH_R(crate::FieldReader::new(bits)) - } -} -impl core::ops::Deref for GPIO10_LEVEL_HIGH_R { - type Target = crate::FieldReader; - #[inline(always)] - fn deref(&self) -> &Self::Target { - &self.0 - } -} -#[doc = "Field `GPIO10_LEVEL_HIGH` writer - "] -pub struct GPIO10_LEVEL_HIGH_W<'a> { - w: &'a mut W, -} -impl<'a> GPIO10_LEVEL_HIGH_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 `GPIO10_LEVEL_LOW` reader - "] -pub struct GPIO10_LEVEL_LOW_R(crate::FieldReader); -impl GPIO10_LEVEL_LOW_R { - pub(crate) fn new(bits: bool) -> Self { - GPIO10_LEVEL_LOW_R(crate::FieldReader::new(bits)) - } -} -impl core::ops::Deref for GPIO10_LEVEL_LOW_R { - type Target = crate::FieldReader; - #[inline(always)] - fn deref(&self) -> &Self::Target { - &self.0 - } -} -#[doc = "Field `GPIO10_LEVEL_LOW` writer - "] -pub struct GPIO10_LEVEL_LOW_W<'a> { - w: &'a mut W, -} -impl<'a> GPIO10_LEVEL_LOW_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 `GPIO9_EDGE_HIGH` reader - "] -pub struct GPIO9_EDGE_HIGH_R(crate::FieldReader); -impl GPIO9_EDGE_HIGH_R { - pub(crate) fn new(bits: bool) -> Self { - GPIO9_EDGE_HIGH_R(crate::FieldReader::new(bits)) - } -} -impl core::ops::Deref for GPIO9_EDGE_HIGH_R { - type Target = crate::FieldReader; - #[inline(always)] - fn deref(&self) -> &Self::Target { - &self.0 - } -} -#[doc = "Field `GPIO9_EDGE_HIGH` writer - "] -pub struct GPIO9_EDGE_HIGH_W<'a> { - w: &'a mut W, -} -impl<'a> GPIO9_EDGE_HIGH_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 `GPIO9_EDGE_LOW` reader - "] -pub struct GPIO9_EDGE_LOW_R(crate::FieldReader); -impl GPIO9_EDGE_LOW_R { - pub(crate) fn new(bits: bool) -> Self { - GPIO9_EDGE_LOW_R(crate::FieldReader::new(bits)) - } -} -impl core::ops::Deref for GPIO9_EDGE_LOW_R { - type Target = crate::FieldReader; - #[inline(always)] - fn deref(&self) -> &Self::Target { - &self.0 - } -} -#[doc = "Field `GPIO9_EDGE_LOW` writer - "] -pub struct GPIO9_EDGE_LOW_W<'a> { - w: &'a mut W, -} -impl<'a> GPIO9_EDGE_LOW_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 `GPIO9_LEVEL_HIGH` reader - "] -pub struct GPIO9_LEVEL_HIGH_R(crate::FieldReader); -impl GPIO9_LEVEL_HIGH_R { - pub(crate) fn new(bits: bool) -> Self { - GPIO9_LEVEL_HIGH_R(crate::FieldReader::new(bits)) - } -} -impl core::ops::Deref for GPIO9_LEVEL_HIGH_R { - type Target = crate::FieldReader; - #[inline(always)] - fn deref(&self) -> &Self::Target { - &self.0 - } -} -#[doc = "Field `GPIO9_LEVEL_HIGH` writer - "] -pub struct GPIO9_LEVEL_HIGH_W<'a> { - w: &'a mut W, -} -impl<'a> GPIO9_LEVEL_HIGH_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 `GPIO9_LEVEL_LOW` reader - "] -pub struct GPIO9_LEVEL_LOW_R(crate::FieldReader); -impl GPIO9_LEVEL_LOW_R { - pub(crate) fn new(bits: bool) -> Self { - GPIO9_LEVEL_LOW_R(crate::FieldReader::new(bits)) - } -} -impl core::ops::Deref for GPIO9_LEVEL_LOW_R { - type Target = crate::FieldReader; - #[inline(always)] - fn deref(&self) -> &Self::Target { - &self.0 - } -} -#[doc = "Field `GPIO9_LEVEL_LOW` writer - "] -pub struct GPIO9_LEVEL_LOW_W<'a> { - w: &'a mut W, -} -impl<'a> GPIO9_LEVEL_LOW_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 `GPIO8_EDGE_HIGH` reader - "] -pub struct GPIO8_EDGE_HIGH_R(crate::FieldReader); -impl GPIO8_EDGE_HIGH_R { - pub(crate) fn new(bits: bool) -> Self { - GPIO8_EDGE_HIGH_R(crate::FieldReader::new(bits)) - } -} -impl core::ops::Deref for GPIO8_EDGE_HIGH_R { - type Target = crate::FieldReader; - #[inline(always)] - fn deref(&self) -> &Self::Target { - &self.0 - } -} -#[doc = "Field `GPIO8_EDGE_HIGH` writer - "] -pub struct GPIO8_EDGE_HIGH_W<'a> { - w: &'a mut W, -} -impl<'a> GPIO8_EDGE_HIGH_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 `GPIO8_EDGE_LOW` reader - "] -pub struct GPIO8_EDGE_LOW_R(crate::FieldReader); -impl GPIO8_EDGE_LOW_R { - pub(crate) fn new(bits: bool) -> Self { - GPIO8_EDGE_LOW_R(crate::FieldReader::new(bits)) - } -} -impl core::ops::Deref for GPIO8_EDGE_LOW_R { - type Target = crate::FieldReader; - #[inline(always)] - fn deref(&self) -> &Self::Target { - &self.0 - } -} -#[doc = "Field `GPIO8_EDGE_LOW` writer - "] -pub struct GPIO8_EDGE_LOW_W<'a> { - w: &'a mut W, -} -impl<'a> GPIO8_EDGE_LOW_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 `GPIO8_LEVEL_HIGH` reader - "] -pub struct GPIO8_LEVEL_HIGH_R(crate::FieldReader); -impl GPIO8_LEVEL_HIGH_R { - pub(crate) fn new(bits: bool) -> Self { - GPIO8_LEVEL_HIGH_R(crate::FieldReader::new(bits)) - } -} -impl core::ops::Deref for GPIO8_LEVEL_HIGH_R { - type Target = crate::FieldReader; - #[inline(always)] - fn deref(&self) -> &Self::Target { - &self.0 - } -} -#[doc = "Field `GPIO8_LEVEL_HIGH` writer - "] -pub struct GPIO8_LEVEL_HIGH_W<'a> { - w: &'a mut W, -} -impl<'a> GPIO8_LEVEL_HIGH_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 `GPIO8_LEVEL_LOW` reader - "] -pub struct GPIO8_LEVEL_LOW_R(crate::FieldReader); -impl GPIO8_LEVEL_LOW_R { - pub(crate) fn new(bits: bool) -> Self { - GPIO8_LEVEL_LOW_R(crate::FieldReader::new(bits)) - } -} -impl core::ops::Deref for GPIO8_LEVEL_LOW_R { - type Target = crate::FieldReader; - #[inline(always)] - fn deref(&self) -> &Self::Target { - &self.0 - } -} -#[doc = "Field `GPIO8_LEVEL_LOW` writer - "] -pub struct GPIO8_LEVEL_LOW_W<'a> { - w: &'a mut W, -} -impl<'a> GPIO8_LEVEL_LOW_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 - } -} -impl R { - #[doc = "Bit 31"] - #[inline(always)] - pub fn gpio15_edge_high(&self) -> GPIO15_EDGE_HIGH_R { - GPIO15_EDGE_HIGH_R::new(((self.bits >> 31) & 0x01) != 0) - } - #[doc = "Bit 30"] - #[inline(always)] - pub fn gpio15_edge_low(&self) -> GPIO15_EDGE_LOW_R { - GPIO15_EDGE_LOW_R::new(((self.bits >> 30) & 0x01) != 0) - } - #[doc = "Bit 29"] - #[inline(always)] - pub fn gpio15_level_high(&self) -> GPIO15_LEVEL_HIGH_R { - GPIO15_LEVEL_HIGH_R::new(((self.bits >> 29) & 0x01) != 0) - } - #[doc = "Bit 28"] - #[inline(always)] - pub fn gpio15_level_low(&self) -> GPIO15_LEVEL_LOW_R { - GPIO15_LEVEL_LOW_R::new(((self.bits >> 28) & 0x01) != 0) - } - #[doc = "Bit 27"] - #[inline(always)] - pub fn gpio14_edge_high(&self) -> GPIO14_EDGE_HIGH_R { - GPIO14_EDGE_HIGH_R::new(((self.bits >> 27) & 0x01) != 0) - } - #[doc = "Bit 26"] - #[inline(always)] - pub fn gpio14_edge_low(&self) -> GPIO14_EDGE_LOW_R { - GPIO14_EDGE_LOW_R::new(((self.bits >> 26) & 0x01) != 0) - } - #[doc = "Bit 25"] - #[inline(always)] - pub fn gpio14_level_high(&self) -> GPIO14_LEVEL_HIGH_R { - GPIO14_LEVEL_HIGH_R::new(((self.bits >> 25) & 0x01) != 0) - } - #[doc = "Bit 24"] - #[inline(always)] - pub fn gpio14_level_low(&self) -> GPIO14_LEVEL_LOW_R { - GPIO14_LEVEL_LOW_R::new(((self.bits >> 24) & 0x01) != 0) - } - #[doc = "Bit 23"] - #[inline(always)] - pub fn gpio13_edge_high(&self) -> GPIO13_EDGE_HIGH_R { - GPIO13_EDGE_HIGH_R::new(((self.bits >> 23) & 0x01) != 0) - } - #[doc = "Bit 22"] - #[inline(always)] - pub fn gpio13_edge_low(&self) -> GPIO13_EDGE_LOW_R { - GPIO13_EDGE_LOW_R::new(((self.bits >> 22) & 0x01) != 0) - } - #[doc = "Bit 21"] - #[inline(always)] - pub fn gpio13_level_high(&self) -> GPIO13_LEVEL_HIGH_R { - GPIO13_LEVEL_HIGH_R::new(((self.bits >> 21) & 0x01) != 0) - } - #[doc = "Bit 20"] - #[inline(always)] - pub fn gpio13_level_low(&self) -> GPIO13_LEVEL_LOW_R { - GPIO13_LEVEL_LOW_R::new(((self.bits >> 20) & 0x01) != 0) - } - #[doc = "Bit 19"] - #[inline(always)] - pub fn gpio12_edge_high(&self) -> GPIO12_EDGE_HIGH_R { - GPIO12_EDGE_HIGH_R::new(((self.bits >> 19) & 0x01) != 0) - } - #[doc = "Bit 18"] - #[inline(always)] - pub fn gpio12_edge_low(&self) -> GPIO12_EDGE_LOW_R { - GPIO12_EDGE_LOW_R::new(((self.bits >> 18) & 0x01) != 0) - } - #[doc = "Bit 17"] - #[inline(always)] - pub fn gpio12_level_high(&self) -> GPIO12_LEVEL_HIGH_R { - GPIO12_LEVEL_HIGH_R::new(((self.bits >> 17) & 0x01) != 0) - } - #[doc = "Bit 16"] - #[inline(always)] - pub fn gpio12_level_low(&self) -> GPIO12_LEVEL_LOW_R { - GPIO12_LEVEL_LOW_R::new(((self.bits >> 16) & 0x01) != 0) - } - #[doc = "Bit 15"] - #[inline(always)] - pub fn gpio11_edge_high(&self) -> GPIO11_EDGE_HIGH_R { - GPIO11_EDGE_HIGH_R::new(((self.bits >> 15) & 0x01) != 0) - } - #[doc = "Bit 14"] - #[inline(always)] - pub fn gpio11_edge_low(&self) -> GPIO11_EDGE_LOW_R { - GPIO11_EDGE_LOW_R::new(((self.bits >> 14) & 0x01) != 0) - } - #[doc = "Bit 13"] - #[inline(always)] - pub fn gpio11_level_high(&self) -> GPIO11_LEVEL_HIGH_R { - GPIO11_LEVEL_HIGH_R::new(((self.bits >> 13) & 0x01) != 0) - } - #[doc = "Bit 12"] - #[inline(always)] - pub fn gpio11_level_low(&self) -> GPIO11_LEVEL_LOW_R { - GPIO11_LEVEL_LOW_R::new(((self.bits >> 12) & 0x01) != 0) - } - #[doc = "Bit 11"] - #[inline(always)] - pub fn gpio10_edge_high(&self) -> GPIO10_EDGE_HIGH_R { - GPIO10_EDGE_HIGH_R::new(((self.bits >> 11) & 0x01) != 0) - } - #[doc = "Bit 10"] - #[inline(always)] - pub fn gpio10_edge_low(&self) -> GPIO10_EDGE_LOW_R { - GPIO10_EDGE_LOW_R::new(((self.bits >> 10) & 0x01) != 0) - } - #[doc = "Bit 9"] - #[inline(always)] - pub fn gpio10_level_high(&self) -> GPIO10_LEVEL_HIGH_R { - GPIO10_LEVEL_HIGH_R::new(((self.bits >> 9) & 0x01) != 0) - } - #[doc = "Bit 8"] - #[inline(always)] - pub fn gpio10_level_low(&self) -> GPIO10_LEVEL_LOW_R { - GPIO10_LEVEL_LOW_R::new(((self.bits >> 8) & 0x01) != 0) - } - #[doc = "Bit 7"] - #[inline(always)] - pub fn gpio9_edge_high(&self) -> GPIO9_EDGE_HIGH_R { - GPIO9_EDGE_HIGH_R::new(((self.bits >> 7) & 0x01) != 0) - } - #[doc = "Bit 6"] - #[inline(always)] - pub fn gpio9_edge_low(&self) -> GPIO9_EDGE_LOW_R { - GPIO9_EDGE_LOW_R::new(((self.bits >> 6) & 0x01) != 0) - } - #[doc = "Bit 5"] - #[inline(always)] - pub fn gpio9_level_high(&self) -> GPIO9_LEVEL_HIGH_R { - GPIO9_LEVEL_HIGH_R::new(((self.bits >> 5) & 0x01) != 0) - } - #[doc = "Bit 4"] - #[inline(always)] - pub fn gpio9_level_low(&self) -> GPIO9_LEVEL_LOW_R { - GPIO9_LEVEL_LOW_R::new(((self.bits >> 4) & 0x01) != 0) - } - #[doc = "Bit 3"] - #[inline(always)] - pub fn gpio8_edge_high(&self) -> GPIO8_EDGE_HIGH_R { - GPIO8_EDGE_HIGH_R::new(((self.bits >> 3) & 0x01) != 0) - } - #[doc = "Bit 2"] - #[inline(always)] - pub fn gpio8_edge_low(&self) -> GPIO8_EDGE_LOW_R { - GPIO8_EDGE_LOW_R::new(((self.bits >> 2) & 0x01) != 0) - } - #[doc = "Bit 1"] - #[inline(always)] - pub fn gpio8_level_high(&self) -> GPIO8_LEVEL_HIGH_R { - GPIO8_LEVEL_HIGH_R::new(((self.bits >> 1) & 0x01) != 0) - } - #[doc = "Bit 0"] - #[inline(always)] - pub fn gpio8_level_low(&self) -> GPIO8_LEVEL_LOW_R { - GPIO8_LEVEL_LOW_R::new((self.bits & 0x01) != 0) - } -} -impl W { - #[doc = "Bit 31"] - #[inline(always)] - pub fn gpio15_edge_high(&mut self) -> GPIO15_EDGE_HIGH_W { - GPIO15_EDGE_HIGH_W { w: self } - } - #[doc = "Bit 30"] - #[inline(always)] - pub fn gpio15_edge_low(&mut self) -> GPIO15_EDGE_LOW_W { - GPIO15_EDGE_LOW_W { w: self } - } - #[doc = "Bit 29"] - #[inline(always)] - pub fn gpio15_level_high(&mut self) -> GPIO15_LEVEL_HIGH_W { - GPIO15_LEVEL_HIGH_W { w: self } - } - #[doc = "Bit 28"] - #[inline(always)] - pub fn gpio15_level_low(&mut self) -> GPIO15_LEVEL_LOW_W { - GPIO15_LEVEL_LOW_W { w: self } - } - #[doc = "Bit 27"] - #[inline(always)] - pub fn gpio14_edge_high(&mut self) -> GPIO14_EDGE_HIGH_W { - GPIO14_EDGE_HIGH_W { w: self } - } - #[doc = "Bit 26"] - #[inline(always)] - pub fn gpio14_edge_low(&mut self) -> GPIO14_EDGE_LOW_W { - GPIO14_EDGE_LOW_W { w: self } - } - #[doc = "Bit 25"] - #[inline(always)] - pub fn gpio14_level_high(&mut self) -> GPIO14_LEVEL_HIGH_W { - GPIO14_LEVEL_HIGH_W { w: self } - } - #[doc = "Bit 24"] - #[inline(always)] - pub fn gpio14_level_low(&mut self) -> GPIO14_LEVEL_LOW_W { - GPIO14_LEVEL_LOW_W { w: self } - } - #[doc = "Bit 23"] - #[inline(always)] - pub fn gpio13_edge_high(&mut self) -> GPIO13_EDGE_HIGH_W { - GPIO13_EDGE_HIGH_W { w: self } - } - #[doc = "Bit 22"] - #[inline(always)] - pub fn gpio13_edge_low(&mut self) -> GPIO13_EDGE_LOW_W { - GPIO13_EDGE_LOW_W { w: self } - } - #[doc = "Bit 21"] - #[inline(always)] - pub fn gpio13_level_high(&mut self) -> GPIO13_LEVEL_HIGH_W { - GPIO13_LEVEL_HIGH_W { w: self } - } - #[doc = "Bit 20"] - #[inline(always)] - pub fn gpio13_level_low(&mut self) -> GPIO13_LEVEL_LOW_W { - GPIO13_LEVEL_LOW_W { w: self } - } - #[doc = "Bit 19"] - #[inline(always)] - pub fn gpio12_edge_high(&mut self) -> GPIO12_EDGE_HIGH_W { - GPIO12_EDGE_HIGH_W { w: self } - } - #[doc = "Bit 18"] - #[inline(always)] - pub fn gpio12_edge_low(&mut self) -> GPIO12_EDGE_LOW_W { - GPIO12_EDGE_LOW_W { w: self } - } - #[doc = "Bit 17"] - #[inline(always)] - pub fn gpio12_level_high(&mut self) -> GPIO12_LEVEL_HIGH_W { - GPIO12_LEVEL_HIGH_W { w: self } - } - #[doc = "Bit 16"] - #[inline(always)] - pub fn gpio12_level_low(&mut self) -> GPIO12_LEVEL_LOW_W { - GPIO12_LEVEL_LOW_W { w: self } - } - #[doc = "Bit 15"] - #[inline(always)] - pub fn gpio11_edge_high(&mut self) -> GPIO11_EDGE_HIGH_W { - GPIO11_EDGE_HIGH_W { w: self } - } - #[doc = "Bit 14"] - #[inline(always)] - pub fn gpio11_edge_low(&mut self) -> GPIO11_EDGE_LOW_W { - GPIO11_EDGE_LOW_W { w: self } - } - #[doc = "Bit 13"] - #[inline(always)] - pub fn gpio11_level_high(&mut self) -> GPIO11_LEVEL_HIGH_W { - GPIO11_LEVEL_HIGH_W { w: self } - } - #[doc = "Bit 12"] - #[inline(always)] - pub fn gpio11_level_low(&mut self) -> GPIO11_LEVEL_LOW_W { - GPIO11_LEVEL_LOW_W { w: self } - } - #[doc = "Bit 11"] - #[inline(always)] - pub fn gpio10_edge_high(&mut self) -> GPIO10_EDGE_HIGH_W { - GPIO10_EDGE_HIGH_W { w: self } - } - #[doc = "Bit 10"] - #[inline(always)] - pub fn gpio10_edge_low(&mut self) -> GPIO10_EDGE_LOW_W { - GPIO10_EDGE_LOW_W { w: self } - } - #[doc = "Bit 9"] - #[inline(always)] - pub fn gpio10_level_high(&mut self) -> GPIO10_LEVEL_HIGH_W { - GPIO10_LEVEL_HIGH_W { w: self } - } - #[doc = "Bit 8"] - #[inline(always)] - pub fn gpio10_level_low(&mut self) -> GPIO10_LEVEL_LOW_W { - GPIO10_LEVEL_LOW_W { w: self } - } - #[doc = "Bit 7"] - #[inline(always)] - pub fn gpio9_edge_high(&mut self) -> GPIO9_EDGE_HIGH_W { - GPIO9_EDGE_HIGH_W { w: self } - } - #[doc = "Bit 6"] - #[inline(always)] - pub fn gpio9_edge_low(&mut self) -> GPIO9_EDGE_LOW_W { - GPIO9_EDGE_LOW_W { w: self } - } - #[doc = "Bit 5"] - #[inline(always)] - pub fn gpio9_level_high(&mut self) -> GPIO9_LEVEL_HIGH_W { - GPIO9_LEVEL_HIGH_W { w: self } - } - #[doc = "Bit 4"] - #[inline(always)] - pub fn gpio9_level_low(&mut self) -> GPIO9_LEVEL_LOW_W { - GPIO9_LEVEL_LOW_W { w: self } - } - #[doc = "Bit 3"] - #[inline(always)] - pub fn gpio8_edge_high(&mut self) -> GPIO8_EDGE_HIGH_W { - GPIO8_EDGE_HIGH_W { w: self } - } - #[doc = "Bit 2"] - #[inline(always)] - pub fn gpio8_edge_low(&mut self) -> GPIO8_EDGE_LOW_W { - GPIO8_EDGE_LOW_W { w: self } - } - #[doc = "Bit 1"] - #[inline(always)] - pub fn gpio8_level_high(&mut self) -> GPIO8_LEVEL_HIGH_W { - GPIO8_LEVEL_HIGH_W { w: self } - } - #[doc = "Bit 0"] - #[inline(always)] - pub fn gpio8_level_low(&mut self) -> GPIO8_LEVEL_LOW_W { - GPIO8_LEVEL_LOW_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 Force for dormant_wake - -This 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). - -For information about available fields see [dormant_wake_intf1](index.html) module"] -pub struct DORMANT_WAKE_INTF1_SPEC; -impl crate::RegisterSpec for DORMANT_WAKE_INTF1_SPEC { - type Ux = u32; -} -#[doc = "`read()` method returns [dormant_wake_intf1::R](R) reader structure"] -impl crate::Readable for DORMANT_WAKE_INTF1_SPEC { - type Reader = R; -} -#[doc = "`write(|w| ..)` method takes [dormant_wake_intf1::W](W) writer structure"] -impl crate::Writable for DORMANT_WAKE_INTF1_SPEC { - type Writer = W; -} -#[doc = "`reset()` method sets DORMANT_WAKE_INTF1 to value 0"] -impl crate::Resettable for DORMANT_WAKE_INTF1_SPEC { - #[inline(always)] - fn reset_value() -> Self::Ux { - 0 - } -} diff --git a/src/io_bank0/dormant_wake_intf2.rs b/src/io_bank0/dormant_wake_intf2.rs deleted file mode 100644 index a02ac7543..000000000 --- a/src/io_bank0/dormant_wake_intf2.rs +++ /dev/null @@ -1,1542 +0,0 @@ -#[doc = "Register `DORMANT_WAKE_INTF2` reader"] -pub struct R(crate::R); -impl core::ops::Deref for R { - type Target = crate::R; - #[inline(always)] - fn deref(&self) -> &Self::Target { - &self.0 - } -} -impl From> for R { - #[inline(always)] - fn from(reader: crate::R) -> Self { - R(reader) - } -} -#[doc = "Register `DORMANT_WAKE_INTF2` writer"] -pub struct W(crate::W); -impl core::ops::Deref for W { - type Target = crate::W; - #[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> for W { - #[inline(always)] - fn from(writer: crate::W) -> Self { - W(writer) - } -} -#[doc = "Field `GPIO23_EDGE_HIGH` reader - "] -pub struct GPIO23_EDGE_HIGH_R(crate::FieldReader); -impl GPIO23_EDGE_HIGH_R { - pub(crate) fn new(bits: bool) -> Self { - GPIO23_EDGE_HIGH_R(crate::FieldReader::new(bits)) - } -} -impl core::ops::Deref for GPIO23_EDGE_HIGH_R { - type Target = crate::FieldReader; - #[inline(always)] - fn deref(&self) -> &Self::Target { - &self.0 - } -} -#[doc = "Field `GPIO23_EDGE_HIGH` writer - "] -pub struct GPIO23_EDGE_HIGH_W<'a> { - w: &'a mut W, -} -impl<'a> GPIO23_EDGE_HIGH_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 << 31)) | ((value as u32 & 0x01) << 31); - self.w - } -} -#[doc = "Field `GPIO23_EDGE_LOW` reader - "] -pub struct GPIO23_EDGE_LOW_R(crate::FieldReader); -impl GPIO23_EDGE_LOW_R { - pub(crate) fn new(bits: bool) -> Self { - GPIO23_EDGE_LOW_R(crate::FieldReader::new(bits)) - } -} -impl core::ops::Deref for GPIO23_EDGE_LOW_R { - type Target = crate::FieldReader; - #[inline(always)] - fn deref(&self) -> &Self::Target { - &self.0 - } -} -#[doc = "Field `GPIO23_EDGE_LOW` writer - "] -pub struct GPIO23_EDGE_LOW_W<'a> { - w: &'a mut W, -} -impl<'a> GPIO23_EDGE_LOW_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 << 30)) | ((value as u32 & 0x01) << 30); - self.w - } -} -#[doc = "Field `GPIO23_LEVEL_HIGH` reader - "] -pub struct GPIO23_LEVEL_HIGH_R(crate::FieldReader); -impl GPIO23_LEVEL_HIGH_R { - pub(crate) fn new(bits: bool) -> Self { - GPIO23_LEVEL_HIGH_R(crate::FieldReader::new(bits)) - } -} -impl core::ops::Deref for GPIO23_LEVEL_HIGH_R { - type Target = crate::FieldReader; - #[inline(always)] - fn deref(&self) -> &Self::Target { - &self.0 - } -} -#[doc = "Field `GPIO23_LEVEL_HIGH` writer - "] -pub struct GPIO23_LEVEL_HIGH_W<'a> { - w: &'a mut W, -} -impl<'a> GPIO23_LEVEL_HIGH_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 << 29)) | ((value as u32 & 0x01) << 29); - self.w - } -} -#[doc = "Field `GPIO23_LEVEL_LOW` reader - "] -pub struct GPIO23_LEVEL_LOW_R(crate::FieldReader); -impl GPIO23_LEVEL_LOW_R { - pub(crate) fn new(bits: bool) -> Self { - GPIO23_LEVEL_LOW_R(crate::FieldReader::new(bits)) - } -} -impl core::ops::Deref for GPIO23_LEVEL_LOW_R { - type Target = crate::FieldReader; - #[inline(always)] - fn deref(&self) -> &Self::Target { - &self.0 - } -} -#[doc = "Field `GPIO23_LEVEL_LOW` writer - "] -pub struct GPIO23_LEVEL_LOW_W<'a> { - w: &'a mut W, -} -impl<'a> GPIO23_LEVEL_LOW_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 << 28)) | ((value as u32 & 0x01) << 28); - self.w - } -} -#[doc = "Field `GPIO22_EDGE_HIGH` reader - "] -pub struct GPIO22_EDGE_HIGH_R(crate::FieldReader); -impl GPIO22_EDGE_HIGH_R { - pub(crate) fn new(bits: bool) -> Self { - GPIO22_EDGE_HIGH_R(crate::FieldReader::new(bits)) - } -} -impl core::ops::Deref for GPIO22_EDGE_HIGH_R { - type Target = crate::FieldReader; - #[inline(always)] - fn deref(&self) -> &Self::Target { - &self.0 - } -} -#[doc = "Field `GPIO22_EDGE_HIGH` writer - "] -pub struct GPIO22_EDGE_HIGH_W<'a> { - w: &'a mut W, -} -impl<'a> GPIO22_EDGE_HIGH_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 - } -} -#[doc = "Field `GPIO22_EDGE_LOW` reader - "] -pub struct GPIO22_EDGE_LOW_R(crate::FieldReader); -impl GPIO22_EDGE_LOW_R { - pub(crate) fn new(bits: bool) -> Self { - GPIO22_EDGE_LOW_R(crate::FieldReader::new(bits)) - } -} -impl core::ops::Deref for GPIO22_EDGE_LOW_R { - type Target = crate::FieldReader; - #[inline(always)] - fn deref(&self) -> &Self::Target { - &self.0 - } -} -#[doc = "Field `GPIO22_EDGE_LOW` writer - "] -pub struct GPIO22_EDGE_LOW_W<'a> { - w: &'a mut W, -} -impl<'a> GPIO22_EDGE_LOW_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 `GPIO22_LEVEL_HIGH` reader - "] -pub struct GPIO22_LEVEL_HIGH_R(crate::FieldReader); -impl GPIO22_LEVEL_HIGH_R { - pub(crate) fn new(bits: bool) -> Self { - GPIO22_LEVEL_HIGH_R(crate::FieldReader::new(bits)) - } -} -impl core::ops::Deref for GPIO22_LEVEL_HIGH_R { - type Target = crate::FieldReader; - #[inline(always)] - fn deref(&self) -> &Self::Target { - &self.0 - } -} -#[doc = "Field `GPIO22_LEVEL_HIGH` writer - "] -pub struct GPIO22_LEVEL_HIGH_W<'a> { - w: &'a mut W, -} -impl<'a> GPIO22_LEVEL_HIGH_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 `GPIO22_LEVEL_LOW` reader - "] -pub struct GPIO22_LEVEL_LOW_R(crate::FieldReader); -impl GPIO22_LEVEL_LOW_R { - pub(crate) fn new(bits: bool) -> Self { - GPIO22_LEVEL_LOW_R(crate::FieldReader::new(bits)) - } -} -impl core::ops::Deref for GPIO22_LEVEL_LOW_R { - type Target = crate::FieldReader; - #[inline(always)] - fn deref(&self) -> &Self::Target { - &self.0 - } -} -#[doc = "Field `GPIO22_LEVEL_LOW` writer - "] -pub struct GPIO22_LEVEL_LOW_W<'a> { - w: &'a mut W, -} -impl<'a> GPIO22_LEVEL_LOW_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 `GPIO21_EDGE_HIGH` reader - "] -pub struct GPIO21_EDGE_HIGH_R(crate::FieldReader); -impl GPIO21_EDGE_HIGH_R { - pub(crate) fn new(bits: bool) -> Self { - GPIO21_EDGE_HIGH_R(crate::FieldReader::new(bits)) - } -} -impl core::ops::Deref for GPIO21_EDGE_HIGH_R { - type Target = crate::FieldReader; - #[inline(always)] - fn deref(&self) -> &Self::Target { - &self.0 - } -} -#[doc = "Field `GPIO21_EDGE_HIGH` writer - "] -pub struct GPIO21_EDGE_HIGH_W<'a> { - w: &'a mut W, -} -impl<'a> GPIO21_EDGE_HIGH_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 `GPIO21_EDGE_LOW` reader - "] -pub struct GPIO21_EDGE_LOW_R(crate::FieldReader); -impl GPIO21_EDGE_LOW_R { - pub(crate) fn new(bits: bool) -> Self { - GPIO21_EDGE_LOW_R(crate::FieldReader::new(bits)) - } -} -impl core::ops::Deref for GPIO21_EDGE_LOW_R { - type Target = crate::FieldReader; - #[inline(always)] - fn deref(&self) -> &Self::Target { - &self.0 - } -} -#[doc = "Field `GPIO21_EDGE_LOW` writer - "] -pub struct GPIO21_EDGE_LOW_W<'a> { - w: &'a mut W, -} -impl<'a> GPIO21_EDGE_LOW_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 `GPIO21_LEVEL_HIGH` reader - "] -pub struct GPIO21_LEVEL_HIGH_R(crate::FieldReader); -impl GPIO21_LEVEL_HIGH_R { - pub(crate) fn new(bits: bool) -> Self { - GPIO21_LEVEL_HIGH_R(crate::FieldReader::new(bits)) - } -} -impl core::ops::Deref for GPIO21_LEVEL_HIGH_R { - type Target = crate::FieldReader; - #[inline(always)] - fn deref(&self) -> &Self::Target { - &self.0 - } -} -#[doc = "Field `GPIO21_LEVEL_HIGH` writer - "] -pub struct GPIO21_LEVEL_HIGH_W<'a> { - w: &'a mut W, -} -impl<'a> GPIO21_LEVEL_HIGH_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 `GPIO21_LEVEL_LOW` reader - "] -pub struct GPIO21_LEVEL_LOW_R(crate::FieldReader); -impl GPIO21_LEVEL_LOW_R { - pub(crate) fn new(bits: bool) -> Self { - GPIO21_LEVEL_LOW_R(crate::FieldReader::new(bits)) - } -} -impl core::ops::Deref for GPIO21_LEVEL_LOW_R { - type Target = crate::FieldReader; - #[inline(always)] - fn deref(&self) -> &Self::Target { - &self.0 - } -} -#[doc = "Field `GPIO21_LEVEL_LOW` writer - "] -pub struct GPIO21_LEVEL_LOW_W<'a> { - w: &'a mut W, -} -impl<'a> GPIO21_LEVEL_LOW_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 `GPIO20_EDGE_HIGH` reader - "] -pub struct GPIO20_EDGE_HIGH_R(crate::FieldReader); -impl GPIO20_EDGE_HIGH_R { - pub(crate) fn new(bits: bool) -> Self { - GPIO20_EDGE_HIGH_R(crate::FieldReader::new(bits)) - } -} -impl core::ops::Deref for GPIO20_EDGE_HIGH_R { - type Target = crate::FieldReader; - #[inline(always)] - fn deref(&self) -> &Self::Target { - &self.0 - } -} -#[doc = "Field `GPIO20_EDGE_HIGH` writer - "] -pub struct GPIO20_EDGE_HIGH_W<'a> { - w: &'a mut W, -} -impl<'a> GPIO20_EDGE_HIGH_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 `GPIO20_EDGE_LOW` reader - "] -pub struct GPIO20_EDGE_LOW_R(crate::FieldReader); -impl GPIO20_EDGE_LOW_R { - pub(crate) fn new(bits: bool) -> Self { - GPIO20_EDGE_LOW_R(crate::FieldReader::new(bits)) - } -} -impl core::ops::Deref for GPIO20_EDGE_LOW_R { - type Target = crate::FieldReader; - #[inline(always)] - fn deref(&self) -> &Self::Target { - &self.0 - } -} -#[doc = "Field `GPIO20_EDGE_LOW` writer - "] -pub struct GPIO20_EDGE_LOW_W<'a> { - w: &'a mut W, -} -impl<'a> GPIO20_EDGE_LOW_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 `GPIO20_LEVEL_HIGH` reader - "] -pub struct GPIO20_LEVEL_HIGH_R(crate::FieldReader); -impl GPIO20_LEVEL_HIGH_R { - pub(crate) fn new(bits: bool) -> Self { - GPIO20_LEVEL_HIGH_R(crate::FieldReader::new(bits)) - } -} -impl core::ops::Deref for GPIO20_LEVEL_HIGH_R { - type Target = crate::FieldReader; - #[inline(always)] - fn deref(&self) -> &Self::Target { - &self.0 - } -} -#[doc = "Field `GPIO20_LEVEL_HIGH` writer - "] -pub struct GPIO20_LEVEL_HIGH_W<'a> { - w: &'a mut W, -} -impl<'a> GPIO20_LEVEL_HIGH_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 `GPIO20_LEVEL_LOW` reader - "] -pub struct GPIO20_LEVEL_LOW_R(crate::FieldReader); -impl GPIO20_LEVEL_LOW_R { - pub(crate) fn new(bits: bool) -> Self { - GPIO20_LEVEL_LOW_R(crate::FieldReader::new(bits)) - } -} -impl core::ops::Deref for GPIO20_LEVEL_LOW_R { - type Target = crate::FieldReader; - #[inline(always)] - fn deref(&self) -> &Self::Target { - &self.0 - } -} -#[doc = "Field `GPIO20_LEVEL_LOW` writer - "] -pub struct GPIO20_LEVEL_LOW_W<'a> { - w: &'a mut W, -} -impl<'a> GPIO20_LEVEL_LOW_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 `GPIO19_EDGE_HIGH` reader - "] -pub struct GPIO19_EDGE_HIGH_R(crate::FieldReader); -impl GPIO19_EDGE_HIGH_R { - pub(crate) fn new(bits: bool) -> Self { - GPIO19_EDGE_HIGH_R(crate::FieldReader::new(bits)) - } -} -impl core::ops::Deref for GPIO19_EDGE_HIGH_R { - type Target = crate::FieldReader; - #[inline(always)] - fn deref(&self) -> &Self::Target { - &self.0 - } -} -#[doc = "Field `GPIO19_EDGE_HIGH` writer - "] -pub struct GPIO19_EDGE_HIGH_W<'a> { - w: &'a mut W, -} -impl<'a> GPIO19_EDGE_HIGH_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 - } -} -#[doc = "Field `GPIO19_EDGE_LOW` reader - "] -pub struct GPIO19_EDGE_LOW_R(crate::FieldReader); -impl GPIO19_EDGE_LOW_R { - pub(crate) fn new(bits: bool) -> Self { - GPIO19_EDGE_LOW_R(crate::FieldReader::new(bits)) - } -} -impl core::ops::Deref for GPIO19_EDGE_LOW_R { - type Target = crate::FieldReader; - #[inline(always)] - fn deref(&self) -> &Self::Target { - &self.0 - } -} -#[doc = "Field `GPIO19_EDGE_LOW` writer - "] -pub struct GPIO19_EDGE_LOW_W<'a> { - w: &'a mut W, -} -impl<'a> GPIO19_EDGE_LOW_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 `GPIO19_LEVEL_HIGH` reader - "] -pub struct GPIO19_LEVEL_HIGH_R(crate::FieldReader); -impl GPIO19_LEVEL_HIGH_R { - pub(crate) fn new(bits: bool) -> Self { - GPIO19_LEVEL_HIGH_R(crate::FieldReader::new(bits)) - } -} -impl core::ops::Deref for GPIO19_LEVEL_HIGH_R { - type Target = crate::FieldReader; - #[inline(always)] - fn deref(&self) -> &Self::Target { - &self.0 - } -} -#[doc = "Field `GPIO19_LEVEL_HIGH` writer - "] -pub struct GPIO19_LEVEL_HIGH_W<'a> { - w: &'a mut W, -} -impl<'a> GPIO19_LEVEL_HIGH_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 << 13)) | ((value as u32 & 0x01) << 13); - self.w - } -} -#[doc = "Field `GPIO19_LEVEL_LOW` reader - "] -pub struct GPIO19_LEVEL_LOW_R(crate::FieldReader); -impl GPIO19_LEVEL_LOW_R { - pub(crate) fn new(bits: bool) -> Self { - GPIO19_LEVEL_LOW_R(crate::FieldReader::new(bits)) - } -} -impl core::ops::Deref for GPIO19_LEVEL_LOW_R { - type Target = crate::FieldReader; - #[inline(always)] - fn deref(&self) -> &Self::Target { - &self.0 - } -} -#[doc = "Field `GPIO19_LEVEL_LOW` writer - "] -pub struct GPIO19_LEVEL_LOW_W<'a> { - w: &'a mut W, -} -impl<'a> GPIO19_LEVEL_LOW_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 << 12)) | ((value as u32 & 0x01) << 12); - self.w - } -} -#[doc = "Field `GPIO18_EDGE_HIGH` reader - "] -pub struct GPIO18_EDGE_HIGH_R(crate::FieldReader); -impl GPIO18_EDGE_HIGH_R { - pub(crate) fn new(bits: bool) -> Self { - GPIO18_EDGE_HIGH_R(crate::FieldReader::new(bits)) - } -} -impl core::ops::Deref for GPIO18_EDGE_HIGH_R { - type Target = crate::FieldReader; - #[inline(always)] - fn deref(&self) -> &Self::Target { - &self.0 - } -} -#[doc = "Field `GPIO18_EDGE_HIGH` writer - "] -pub struct GPIO18_EDGE_HIGH_W<'a> { - w: &'a mut W, -} -impl<'a> GPIO18_EDGE_HIGH_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 `GPIO18_EDGE_LOW` reader - "] -pub struct GPIO18_EDGE_LOW_R(crate::FieldReader); -impl GPIO18_EDGE_LOW_R { - pub(crate) fn new(bits: bool) -> Self { - GPIO18_EDGE_LOW_R(crate::FieldReader::new(bits)) - } -} -impl core::ops::Deref for GPIO18_EDGE_LOW_R { - type Target = crate::FieldReader; - #[inline(always)] - fn deref(&self) -> &Self::Target { - &self.0 - } -} -#[doc = "Field `GPIO18_EDGE_LOW` writer - "] -pub struct GPIO18_EDGE_LOW_W<'a> { - w: &'a mut W, -} -impl<'a> GPIO18_EDGE_LOW_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 `GPIO18_LEVEL_HIGH` reader - "] -pub struct GPIO18_LEVEL_HIGH_R(crate::FieldReader); -impl GPIO18_LEVEL_HIGH_R { - pub(crate) fn new(bits: bool) -> Self { - GPIO18_LEVEL_HIGH_R(crate::FieldReader::new(bits)) - } -} -impl core::ops::Deref for GPIO18_LEVEL_HIGH_R { - type Target = crate::FieldReader; - #[inline(always)] - fn deref(&self) -> &Self::Target { - &self.0 - } -} -#[doc = "Field `GPIO18_LEVEL_HIGH` writer - "] -pub struct GPIO18_LEVEL_HIGH_W<'a> { - w: &'a mut W, -} -impl<'a> GPIO18_LEVEL_HIGH_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 `GPIO18_LEVEL_LOW` reader - "] -pub struct GPIO18_LEVEL_LOW_R(crate::FieldReader); -impl GPIO18_LEVEL_LOW_R { - pub(crate) fn new(bits: bool) -> Self { - GPIO18_LEVEL_LOW_R(crate::FieldReader::new(bits)) - } -} -impl core::ops::Deref for GPIO18_LEVEL_LOW_R { - type Target = crate::FieldReader; - #[inline(always)] - fn deref(&self) -> &Self::Target { - &self.0 - } -} -#[doc = "Field `GPIO18_LEVEL_LOW` writer - "] -pub struct GPIO18_LEVEL_LOW_W<'a> { - w: &'a mut W, -} -impl<'a> GPIO18_LEVEL_LOW_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 `GPIO17_EDGE_HIGH` reader - "] -pub struct GPIO17_EDGE_HIGH_R(crate::FieldReader); -impl GPIO17_EDGE_HIGH_R { - pub(crate) fn new(bits: bool) -> Self { - GPIO17_EDGE_HIGH_R(crate::FieldReader::new(bits)) - } -} -impl core::ops::Deref for GPIO17_EDGE_HIGH_R { - type Target = crate::FieldReader; - #[inline(always)] - fn deref(&self) -> &Self::Target { - &self.0 - } -} -#[doc = "Field `GPIO17_EDGE_HIGH` writer - "] -pub struct GPIO17_EDGE_HIGH_W<'a> { - w: &'a mut W, -} -impl<'a> GPIO17_EDGE_HIGH_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 `GPIO17_EDGE_LOW` reader - "] -pub struct GPIO17_EDGE_LOW_R(crate::FieldReader); -impl GPIO17_EDGE_LOW_R { - pub(crate) fn new(bits: bool) -> Self { - GPIO17_EDGE_LOW_R(crate::FieldReader::new(bits)) - } -} -impl core::ops::Deref for GPIO17_EDGE_LOW_R { - type Target = crate::FieldReader; - #[inline(always)] - fn deref(&self) -> &Self::Target { - &self.0 - } -} -#[doc = "Field `GPIO17_EDGE_LOW` writer - "] -pub struct GPIO17_EDGE_LOW_W<'a> { - w: &'a mut W, -} -impl<'a> GPIO17_EDGE_LOW_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 `GPIO17_LEVEL_HIGH` reader - "] -pub struct GPIO17_LEVEL_HIGH_R(crate::FieldReader); -impl GPIO17_LEVEL_HIGH_R { - pub(crate) fn new(bits: bool) -> Self { - GPIO17_LEVEL_HIGH_R(crate::FieldReader::new(bits)) - } -} -impl core::ops::Deref for GPIO17_LEVEL_HIGH_R { - type Target = crate::FieldReader; - #[inline(always)] - fn deref(&self) -> &Self::Target { - &self.0 - } -} -#[doc = "Field `GPIO17_LEVEL_HIGH` writer - "] -pub struct GPIO17_LEVEL_HIGH_W<'a> { - w: &'a mut W, -} -impl<'a> GPIO17_LEVEL_HIGH_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 `GPIO17_LEVEL_LOW` reader - "] -pub struct GPIO17_LEVEL_LOW_R(crate::FieldReader); -impl GPIO17_LEVEL_LOW_R { - pub(crate) fn new(bits: bool) -> Self { - GPIO17_LEVEL_LOW_R(crate::FieldReader::new(bits)) - } -} -impl core::ops::Deref for GPIO17_LEVEL_LOW_R { - type Target = crate::FieldReader; - #[inline(always)] - fn deref(&self) -> &Self::Target { - &self.0 - } -} -#[doc = "Field `GPIO17_LEVEL_LOW` writer - "] -pub struct GPIO17_LEVEL_LOW_W<'a> { - w: &'a mut W, -} -impl<'a> GPIO17_LEVEL_LOW_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 `GPIO16_EDGE_HIGH` reader - "] -pub struct GPIO16_EDGE_HIGH_R(crate::FieldReader); -impl GPIO16_EDGE_HIGH_R { - pub(crate) fn new(bits: bool) -> Self { - GPIO16_EDGE_HIGH_R(crate::FieldReader::new(bits)) - } -} -impl core::ops::Deref for GPIO16_EDGE_HIGH_R { - type Target = crate::FieldReader; - #[inline(always)] - fn deref(&self) -> &Self::Target { - &self.0 - } -} -#[doc = "Field `GPIO16_EDGE_HIGH` writer - "] -pub struct GPIO16_EDGE_HIGH_W<'a> { - w: &'a mut W, -} -impl<'a> GPIO16_EDGE_HIGH_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 `GPIO16_EDGE_LOW` reader - "] -pub struct GPIO16_EDGE_LOW_R(crate::FieldReader); -impl GPIO16_EDGE_LOW_R { - pub(crate) fn new(bits: bool) -> Self { - GPIO16_EDGE_LOW_R(crate::FieldReader::new(bits)) - } -} -impl core::ops::Deref for GPIO16_EDGE_LOW_R { - type Target = crate::FieldReader; - #[inline(always)] - fn deref(&self) -> &Self::Target { - &self.0 - } -} -#[doc = "Field `GPIO16_EDGE_LOW` writer - "] -pub struct GPIO16_EDGE_LOW_W<'a> { - w: &'a mut W, -} -impl<'a> GPIO16_EDGE_LOW_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 `GPIO16_LEVEL_HIGH` reader - "] -pub struct GPIO16_LEVEL_HIGH_R(crate::FieldReader); -impl GPIO16_LEVEL_HIGH_R { - pub(crate) fn new(bits: bool) -> Self { - GPIO16_LEVEL_HIGH_R(crate::FieldReader::new(bits)) - } -} -impl core::ops::Deref for GPIO16_LEVEL_HIGH_R { - type Target = crate::FieldReader; - #[inline(always)] - fn deref(&self) -> &Self::Target { - &self.0 - } -} -#[doc = "Field `GPIO16_LEVEL_HIGH` writer - "] -pub struct GPIO16_LEVEL_HIGH_W<'a> { - w: &'a mut W, -} -impl<'a> GPIO16_LEVEL_HIGH_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 `GPIO16_LEVEL_LOW` reader - "] -pub struct GPIO16_LEVEL_LOW_R(crate::FieldReader); -impl GPIO16_LEVEL_LOW_R { - pub(crate) fn new(bits: bool) -> Self { - GPIO16_LEVEL_LOW_R(crate::FieldReader::new(bits)) - } -} -impl core::ops::Deref for GPIO16_LEVEL_LOW_R { - type Target = crate::FieldReader; - #[inline(always)] - fn deref(&self) -> &Self::Target { - &self.0 - } -} -#[doc = "Field `GPIO16_LEVEL_LOW` writer - "] -pub struct GPIO16_LEVEL_LOW_W<'a> { - w: &'a mut W, -} -impl<'a> GPIO16_LEVEL_LOW_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 - } -} -impl R { - #[doc = "Bit 31"] - #[inline(always)] - pub fn gpio23_edge_high(&self) -> GPIO23_EDGE_HIGH_R { - GPIO23_EDGE_HIGH_R::new(((self.bits >> 31) & 0x01) != 0) - } - #[doc = "Bit 30"] - #[inline(always)] - pub fn gpio23_edge_low(&self) -> GPIO23_EDGE_LOW_R { - GPIO23_EDGE_LOW_R::new(((self.bits >> 30) & 0x01) != 0) - } - #[doc = "Bit 29"] - #[inline(always)] - pub fn gpio23_level_high(&self) -> GPIO23_LEVEL_HIGH_R { - GPIO23_LEVEL_HIGH_R::new(((self.bits >> 29) & 0x01) != 0) - } - #[doc = "Bit 28"] - #[inline(always)] - pub fn gpio23_level_low(&self) -> GPIO23_LEVEL_LOW_R { - GPIO23_LEVEL_LOW_R::new(((self.bits >> 28) & 0x01) != 0) - } - #[doc = "Bit 27"] - #[inline(always)] - pub fn gpio22_edge_high(&self) -> GPIO22_EDGE_HIGH_R { - GPIO22_EDGE_HIGH_R::new(((self.bits >> 27) & 0x01) != 0) - } - #[doc = "Bit 26"] - #[inline(always)] - pub fn gpio22_edge_low(&self) -> GPIO22_EDGE_LOW_R { - GPIO22_EDGE_LOW_R::new(((self.bits >> 26) & 0x01) != 0) - } - #[doc = "Bit 25"] - #[inline(always)] - pub fn gpio22_level_high(&self) -> GPIO22_LEVEL_HIGH_R { - GPIO22_LEVEL_HIGH_R::new(((self.bits >> 25) & 0x01) != 0) - } - #[doc = "Bit 24"] - #[inline(always)] - pub fn gpio22_level_low(&self) -> GPIO22_LEVEL_LOW_R { - GPIO22_LEVEL_LOW_R::new(((self.bits >> 24) & 0x01) != 0) - } - #[doc = "Bit 23"] - #[inline(always)] - pub fn gpio21_edge_high(&self) -> GPIO21_EDGE_HIGH_R { - GPIO21_EDGE_HIGH_R::new(((self.bits >> 23) & 0x01) != 0) - } - #[doc = "Bit 22"] - #[inline(always)] - pub fn gpio21_edge_low(&self) -> GPIO21_EDGE_LOW_R { - GPIO21_EDGE_LOW_R::new(((self.bits >> 22) & 0x01) != 0) - } - #[doc = "Bit 21"] - #[inline(always)] - pub fn gpio21_level_high(&self) -> GPIO21_LEVEL_HIGH_R { - GPIO21_LEVEL_HIGH_R::new(((self.bits >> 21) & 0x01) != 0) - } - #[doc = "Bit 20"] - #[inline(always)] - pub fn gpio21_level_low(&self) -> GPIO21_LEVEL_LOW_R { - GPIO21_LEVEL_LOW_R::new(((self.bits >> 20) & 0x01) != 0) - } - #[doc = "Bit 19"] - #[inline(always)] - pub fn gpio20_edge_high(&self) -> GPIO20_EDGE_HIGH_R { - GPIO20_EDGE_HIGH_R::new(((self.bits >> 19) & 0x01) != 0) - } - #[doc = "Bit 18"] - #[inline(always)] - pub fn gpio20_edge_low(&self) -> GPIO20_EDGE_LOW_R { - GPIO20_EDGE_LOW_R::new(((self.bits >> 18) & 0x01) != 0) - } - #[doc = "Bit 17"] - #[inline(always)] - pub fn gpio20_level_high(&self) -> GPIO20_LEVEL_HIGH_R { - GPIO20_LEVEL_HIGH_R::new(((self.bits >> 17) & 0x01) != 0) - } - #[doc = "Bit 16"] - #[inline(always)] - pub fn gpio20_level_low(&self) -> GPIO20_LEVEL_LOW_R { - GPIO20_LEVEL_LOW_R::new(((self.bits >> 16) & 0x01) != 0) - } - #[doc = "Bit 15"] - #[inline(always)] - pub fn gpio19_edge_high(&self) -> GPIO19_EDGE_HIGH_R { - GPIO19_EDGE_HIGH_R::new(((self.bits >> 15) & 0x01) != 0) - } - #[doc = "Bit 14"] - #[inline(always)] - pub fn gpio19_edge_low(&self) -> GPIO19_EDGE_LOW_R { - GPIO19_EDGE_LOW_R::new(((self.bits >> 14) & 0x01) != 0) - } - #[doc = "Bit 13"] - #[inline(always)] - pub fn gpio19_level_high(&self) -> GPIO19_LEVEL_HIGH_R { - GPIO19_LEVEL_HIGH_R::new(((self.bits >> 13) & 0x01) != 0) - } - #[doc = "Bit 12"] - #[inline(always)] - pub fn gpio19_level_low(&self) -> GPIO19_LEVEL_LOW_R { - GPIO19_LEVEL_LOW_R::new(((self.bits >> 12) & 0x01) != 0) - } - #[doc = "Bit 11"] - #[inline(always)] - pub fn gpio18_edge_high(&self) -> GPIO18_EDGE_HIGH_R { - GPIO18_EDGE_HIGH_R::new(((self.bits >> 11) & 0x01) != 0) - } - #[doc = "Bit 10"] - #[inline(always)] - pub fn gpio18_edge_low(&self) -> GPIO18_EDGE_LOW_R { - GPIO18_EDGE_LOW_R::new(((self.bits >> 10) & 0x01) != 0) - } - #[doc = "Bit 9"] - #[inline(always)] - pub fn gpio18_level_high(&self) -> GPIO18_LEVEL_HIGH_R { - GPIO18_LEVEL_HIGH_R::new(((self.bits >> 9) & 0x01) != 0) - } - #[doc = "Bit 8"] - #[inline(always)] - pub fn gpio18_level_low(&self) -> GPIO18_LEVEL_LOW_R { - GPIO18_LEVEL_LOW_R::new(((self.bits >> 8) & 0x01) != 0) - } - #[doc = "Bit 7"] - #[inline(always)] - pub fn gpio17_edge_high(&self) -> GPIO17_EDGE_HIGH_R { - GPIO17_EDGE_HIGH_R::new(((self.bits >> 7) & 0x01) != 0) - } - #[doc = "Bit 6"] - #[inline(always)] - pub fn gpio17_edge_low(&self) -> GPIO17_EDGE_LOW_R { - GPIO17_EDGE_LOW_R::new(((self.bits >> 6) & 0x01) != 0) - } - #[doc = "Bit 5"] - #[inline(always)] - pub fn gpio17_level_high(&self) -> GPIO17_LEVEL_HIGH_R { - GPIO17_LEVEL_HIGH_R::new(((self.bits >> 5) & 0x01) != 0) - } - #[doc = "Bit 4"] - #[inline(always)] - pub fn gpio17_level_low(&self) -> GPIO17_LEVEL_LOW_R { - GPIO17_LEVEL_LOW_R::new(((self.bits >> 4) & 0x01) != 0) - } - #[doc = "Bit 3"] - #[inline(always)] - pub fn gpio16_edge_high(&self) -> GPIO16_EDGE_HIGH_R { - GPIO16_EDGE_HIGH_R::new(((self.bits >> 3) & 0x01) != 0) - } - #[doc = "Bit 2"] - #[inline(always)] - pub fn gpio16_edge_low(&self) -> GPIO16_EDGE_LOW_R { - GPIO16_EDGE_LOW_R::new(((self.bits >> 2) & 0x01) != 0) - } - #[doc = "Bit 1"] - #[inline(always)] - pub fn gpio16_level_high(&self) -> GPIO16_LEVEL_HIGH_R { - GPIO16_LEVEL_HIGH_R::new(((self.bits >> 1) & 0x01) != 0) - } - #[doc = "Bit 0"] - #[inline(always)] - pub fn gpio16_level_low(&self) -> GPIO16_LEVEL_LOW_R { - GPIO16_LEVEL_LOW_R::new((self.bits & 0x01) != 0) - } -} -impl W { - #[doc = "Bit 31"] - #[inline(always)] - pub fn gpio23_edge_high(&mut self) -> GPIO23_EDGE_HIGH_W { - GPIO23_EDGE_HIGH_W { w: self } - } - #[doc = "Bit 30"] - #[inline(always)] - pub fn gpio23_edge_low(&mut self) -> GPIO23_EDGE_LOW_W { - GPIO23_EDGE_LOW_W { w: self } - } - #[doc = "Bit 29"] - #[inline(always)] - pub fn gpio23_level_high(&mut self) -> GPIO23_LEVEL_HIGH_W { - GPIO23_LEVEL_HIGH_W { w: self } - } - #[doc = "Bit 28"] - #[inline(always)] - pub fn gpio23_level_low(&mut self) -> GPIO23_LEVEL_LOW_W { - GPIO23_LEVEL_LOW_W { w: self } - } - #[doc = "Bit 27"] - #[inline(always)] - pub fn gpio22_edge_high(&mut self) -> GPIO22_EDGE_HIGH_W { - GPIO22_EDGE_HIGH_W { w: self } - } - #[doc = "Bit 26"] - #[inline(always)] - pub fn gpio22_edge_low(&mut self) -> GPIO22_EDGE_LOW_W { - GPIO22_EDGE_LOW_W { w: self } - } - #[doc = "Bit 25"] - #[inline(always)] - pub fn gpio22_level_high(&mut self) -> GPIO22_LEVEL_HIGH_W { - GPIO22_LEVEL_HIGH_W { w: self } - } - #[doc = "Bit 24"] - #[inline(always)] - pub fn gpio22_level_low(&mut self) -> GPIO22_LEVEL_LOW_W { - GPIO22_LEVEL_LOW_W { w: self } - } - #[doc = "Bit 23"] - #[inline(always)] - pub fn gpio21_edge_high(&mut self) -> GPIO21_EDGE_HIGH_W { - GPIO21_EDGE_HIGH_W { w: self } - } - #[doc = "Bit 22"] - #[inline(always)] - pub fn gpio21_edge_low(&mut self) -> GPIO21_EDGE_LOW_W { - GPIO21_EDGE_LOW_W { w: self } - } - #[doc = "Bit 21"] - #[inline(always)] - pub fn gpio21_level_high(&mut self) -> GPIO21_LEVEL_HIGH_W { - GPIO21_LEVEL_HIGH_W { w: self } - } - #[doc = "Bit 20"] - #[inline(always)] - pub fn gpio21_level_low(&mut self) -> GPIO21_LEVEL_LOW_W { - GPIO21_LEVEL_LOW_W { w: self } - } - #[doc = "Bit 19"] - #[inline(always)] - pub fn gpio20_edge_high(&mut self) -> GPIO20_EDGE_HIGH_W { - GPIO20_EDGE_HIGH_W { w: self } - } - #[doc = "Bit 18"] - #[inline(always)] - pub fn gpio20_edge_low(&mut self) -> GPIO20_EDGE_LOW_W { - GPIO20_EDGE_LOW_W { w: self } - } - #[doc = "Bit 17"] - #[inline(always)] - pub fn gpio20_level_high(&mut self) -> GPIO20_LEVEL_HIGH_W { - GPIO20_LEVEL_HIGH_W { w: self } - } - #[doc = "Bit 16"] - #[inline(always)] - pub fn gpio20_level_low(&mut self) -> GPIO20_LEVEL_LOW_W { - GPIO20_LEVEL_LOW_W { w: self } - } - #[doc = "Bit 15"] - #[inline(always)] - pub fn gpio19_edge_high(&mut self) -> GPIO19_EDGE_HIGH_W { - GPIO19_EDGE_HIGH_W { w: self } - } - #[doc = "Bit 14"] - #[inline(always)] - pub fn gpio19_edge_low(&mut self) -> GPIO19_EDGE_LOW_W { - GPIO19_EDGE_LOW_W { w: self } - } - #[doc = "Bit 13"] - #[inline(always)] - pub fn gpio19_level_high(&mut self) -> GPIO19_LEVEL_HIGH_W { - GPIO19_LEVEL_HIGH_W { w: self } - } - #[doc = "Bit 12"] - #[inline(always)] - pub fn gpio19_level_low(&mut self) -> GPIO19_LEVEL_LOW_W { - GPIO19_LEVEL_LOW_W { w: self } - } - #[doc = "Bit 11"] - #[inline(always)] - pub fn gpio18_edge_high(&mut self) -> GPIO18_EDGE_HIGH_W { - GPIO18_EDGE_HIGH_W { w: self } - } - #[doc = "Bit 10"] - #[inline(always)] - pub fn gpio18_edge_low(&mut self) -> GPIO18_EDGE_LOW_W { - GPIO18_EDGE_LOW_W { w: self } - } - #[doc = "Bit 9"] - #[inline(always)] - pub fn gpio18_level_high(&mut self) -> GPIO18_LEVEL_HIGH_W { - GPIO18_LEVEL_HIGH_W { w: self } - } - #[doc = "Bit 8"] - #[inline(always)] - pub fn gpio18_level_low(&mut self) -> GPIO18_LEVEL_LOW_W { - GPIO18_LEVEL_LOW_W { w: self } - } - #[doc = "Bit 7"] - #[inline(always)] - pub fn gpio17_edge_high(&mut self) -> GPIO17_EDGE_HIGH_W { - GPIO17_EDGE_HIGH_W { w: self } - } - #[doc = "Bit 6"] - #[inline(always)] - pub fn gpio17_edge_low(&mut self) -> GPIO17_EDGE_LOW_W { - GPIO17_EDGE_LOW_W { w: self } - } - #[doc = "Bit 5"] - #[inline(always)] - pub fn gpio17_level_high(&mut self) -> GPIO17_LEVEL_HIGH_W { - GPIO17_LEVEL_HIGH_W { w: self } - } - #[doc = "Bit 4"] - #[inline(always)] - pub fn gpio17_level_low(&mut self) -> GPIO17_LEVEL_LOW_W { - GPIO17_LEVEL_LOW_W { w: self } - } - #[doc = "Bit 3"] - #[inline(always)] - pub fn gpio16_edge_high(&mut self) -> GPIO16_EDGE_HIGH_W { - GPIO16_EDGE_HIGH_W { w: self } - } - #[doc = "Bit 2"] - #[inline(always)] - pub fn gpio16_edge_low(&mut self) -> GPIO16_EDGE_LOW_W { - GPIO16_EDGE_LOW_W { w: self } - } - #[doc = "Bit 1"] - #[inline(always)] - pub fn gpio16_level_high(&mut self) -> GPIO16_LEVEL_HIGH_W { - GPIO16_LEVEL_HIGH_W { w: self } - } - #[doc = "Bit 0"] - #[inline(always)] - pub fn gpio16_level_low(&mut self) -> GPIO16_LEVEL_LOW_W { - GPIO16_LEVEL_LOW_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 Force for dormant_wake - -This 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). - -For information about available fields see [dormant_wake_intf2](index.html) module"] -pub struct DORMANT_WAKE_INTF2_SPEC; -impl crate::RegisterSpec for DORMANT_WAKE_INTF2_SPEC { - type Ux = u32; -} -#[doc = "`read()` method returns [dormant_wake_intf2::R](R) reader structure"] -impl crate::Readable for DORMANT_WAKE_INTF2_SPEC { - type Reader = R; -} -#[doc = "`write(|w| ..)` method takes [dormant_wake_intf2::W](W) writer structure"] -impl crate::Writable for DORMANT_WAKE_INTF2_SPEC { - type Writer = W; -} -#[doc = "`reset()` method sets DORMANT_WAKE_INTF2 to value 0"] -impl crate::Resettable for DORMANT_WAKE_INTF2_SPEC { - #[inline(always)] - fn reset_value() -> Self::Ux { - 0 - } -} diff --git a/src/io_bank0/dormant_wake_intf3.rs b/src/io_bank0/dormant_wake_intf3.rs deleted file mode 100644 index 3cd167f2b..000000000 --- a/src/io_bank0/dormant_wake_intf3.rs +++ /dev/null @@ -1,1174 +0,0 @@ -#[doc = "Register `DORMANT_WAKE_INTF3` reader"] -pub struct R(crate::R); -impl core::ops::Deref for R { - type Target = crate::R; - #[inline(always)] - fn deref(&self) -> &Self::Target { - &self.0 - } -} -impl From> for R { - #[inline(always)] - fn from(reader: crate::R) -> Self { - R(reader) - } -} -#[doc = "Register `DORMANT_WAKE_INTF3` writer"] -pub struct W(crate::W); -impl core::ops::Deref for W { - type Target = crate::W; - #[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> for W { - #[inline(always)] - fn from(writer: crate::W) -> Self { - W(writer) - } -} -#[doc = "Field `GPIO29_EDGE_HIGH` reader - "] -pub struct GPIO29_EDGE_HIGH_R(crate::FieldReader); -impl GPIO29_EDGE_HIGH_R { - pub(crate) fn new(bits: bool) -> Self { - GPIO29_EDGE_HIGH_R(crate::FieldReader::new(bits)) - } -} -impl core::ops::Deref for GPIO29_EDGE_HIGH_R { - type Target = crate::FieldReader; - #[inline(always)] - fn deref(&self) -> &Self::Target { - &self.0 - } -} -#[doc = "Field `GPIO29_EDGE_HIGH` writer - "] -pub struct GPIO29_EDGE_HIGH_W<'a> { - w: &'a mut W, -} -impl<'a> GPIO29_EDGE_HIGH_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 `GPIO29_EDGE_LOW` reader - "] -pub struct GPIO29_EDGE_LOW_R(crate::FieldReader); -impl GPIO29_EDGE_LOW_R { - pub(crate) fn new(bits: bool) -> Self { - GPIO29_EDGE_LOW_R(crate::FieldReader::new(bits)) - } -} -impl core::ops::Deref for GPIO29_EDGE_LOW_R { - type Target = crate::FieldReader; - #[inline(always)] - fn deref(&self) -> &Self::Target { - &self.0 - } -} -#[doc = "Field `GPIO29_EDGE_LOW` writer - "] -pub struct GPIO29_EDGE_LOW_W<'a> { - w: &'a mut W, -} -impl<'a> GPIO29_EDGE_LOW_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 `GPIO29_LEVEL_HIGH` reader - "] -pub struct GPIO29_LEVEL_HIGH_R(crate::FieldReader); -impl GPIO29_LEVEL_HIGH_R { - pub(crate) fn new(bits: bool) -> Self { - GPIO29_LEVEL_HIGH_R(crate::FieldReader::new(bits)) - } -} -impl core::ops::Deref for GPIO29_LEVEL_HIGH_R { - type Target = crate::FieldReader; - #[inline(always)] - fn deref(&self) -> &Self::Target { - &self.0 - } -} -#[doc = "Field `GPIO29_LEVEL_HIGH` writer - "] -pub struct GPIO29_LEVEL_HIGH_W<'a> { - w: &'a mut W, -} -impl<'a> GPIO29_LEVEL_HIGH_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 `GPIO29_LEVEL_LOW` reader - "] -pub struct GPIO29_LEVEL_LOW_R(crate::FieldReader); -impl GPIO29_LEVEL_LOW_R { - pub(crate) fn new(bits: bool) -> Self { - GPIO29_LEVEL_LOW_R(crate::FieldReader::new(bits)) - } -} -impl core::ops::Deref for GPIO29_LEVEL_LOW_R { - type Target = crate::FieldReader; - #[inline(always)] - fn deref(&self) -> &Self::Target { - &self.0 - } -} -#[doc = "Field `GPIO29_LEVEL_LOW` writer - "] -pub struct GPIO29_LEVEL_LOW_W<'a> { - w: &'a mut W, -} -impl<'a> GPIO29_LEVEL_LOW_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 `GPIO28_EDGE_HIGH` reader - "] -pub struct GPIO28_EDGE_HIGH_R(crate::FieldReader); -impl GPIO28_EDGE_HIGH_R { - pub(crate) fn new(bits: bool) -> Self { - GPIO28_EDGE_HIGH_R(crate::FieldReader::new(bits)) - } -} -impl core::ops::Deref for GPIO28_EDGE_HIGH_R { - type Target = crate::FieldReader; - #[inline(always)] - fn deref(&self) -> &Self::Target { - &self.0 - } -} -#[doc = "Field `GPIO28_EDGE_HIGH` writer - "] -pub struct GPIO28_EDGE_HIGH_W<'a> { - w: &'a mut W, -} -impl<'a> GPIO28_EDGE_HIGH_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 `GPIO28_EDGE_LOW` reader - "] -pub struct GPIO28_EDGE_LOW_R(crate::FieldReader); -impl GPIO28_EDGE_LOW_R { - pub(crate) fn new(bits: bool) -> Self { - GPIO28_EDGE_LOW_R(crate::FieldReader::new(bits)) - } -} -impl core::ops::Deref for GPIO28_EDGE_LOW_R { - type Target = crate::FieldReader; - #[inline(always)] - fn deref(&self) -> &Self::Target { - &self.0 - } -} -#[doc = "Field `GPIO28_EDGE_LOW` writer - "] -pub struct GPIO28_EDGE_LOW_W<'a> { - w: &'a mut W, -} -impl<'a> GPIO28_EDGE_LOW_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 `GPIO28_LEVEL_HIGH` reader - "] -pub struct GPIO28_LEVEL_HIGH_R(crate::FieldReader); -impl GPIO28_LEVEL_HIGH_R { - pub(crate) fn new(bits: bool) -> Self { - GPIO28_LEVEL_HIGH_R(crate::FieldReader::new(bits)) - } -} -impl core::ops::Deref for GPIO28_LEVEL_HIGH_R { - type Target = crate::FieldReader; - #[inline(always)] - fn deref(&self) -> &Self::Target { - &self.0 - } -} -#[doc = "Field `GPIO28_LEVEL_HIGH` writer - "] -pub struct GPIO28_LEVEL_HIGH_W<'a> { - w: &'a mut W, -} -impl<'a> GPIO28_LEVEL_HIGH_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 `GPIO28_LEVEL_LOW` reader - "] -pub struct GPIO28_LEVEL_LOW_R(crate::FieldReader); -impl GPIO28_LEVEL_LOW_R { - pub(crate) fn new(bits: bool) -> Self { - GPIO28_LEVEL_LOW_R(crate::FieldReader::new(bits)) - } -} -impl core::ops::Deref for GPIO28_LEVEL_LOW_R { - type Target = crate::FieldReader; - #[inline(always)] - fn deref(&self) -> &Self::Target { - &self.0 - } -} -#[doc = "Field `GPIO28_LEVEL_LOW` writer - "] -pub struct GPIO28_LEVEL_LOW_W<'a> { - w: &'a mut W, -} -impl<'a> GPIO28_LEVEL_LOW_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 `GPIO27_EDGE_HIGH` reader - "] -pub struct GPIO27_EDGE_HIGH_R(crate::FieldReader); -impl GPIO27_EDGE_HIGH_R { - pub(crate) fn new(bits: bool) -> Self { - GPIO27_EDGE_HIGH_R(crate::FieldReader::new(bits)) - } -} -impl core::ops::Deref for GPIO27_EDGE_HIGH_R { - type Target = crate::FieldReader; - #[inline(always)] - fn deref(&self) -> &Self::Target { - &self.0 - } -} -#[doc = "Field `GPIO27_EDGE_HIGH` writer - "] -pub struct GPIO27_EDGE_HIGH_W<'a> { - w: &'a mut W, -} -impl<'a> GPIO27_EDGE_HIGH_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 - } -} -#[doc = "Field `GPIO27_EDGE_LOW` reader - "] -pub struct GPIO27_EDGE_LOW_R(crate::FieldReader); -impl GPIO27_EDGE_LOW_R { - pub(crate) fn new(bits: bool) -> Self { - GPIO27_EDGE_LOW_R(crate::FieldReader::new(bits)) - } -} -impl core::ops::Deref for GPIO27_EDGE_LOW_R { - type Target = crate::FieldReader; - #[inline(always)] - fn deref(&self) -> &Self::Target { - &self.0 - } -} -#[doc = "Field `GPIO27_EDGE_LOW` writer - "] -pub struct GPIO27_EDGE_LOW_W<'a> { - w: &'a mut W, -} -impl<'a> GPIO27_EDGE_LOW_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 `GPIO27_LEVEL_HIGH` reader - "] -pub struct GPIO27_LEVEL_HIGH_R(crate::FieldReader); -impl GPIO27_LEVEL_HIGH_R { - pub(crate) fn new(bits: bool) -> Self { - GPIO27_LEVEL_HIGH_R(crate::FieldReader::new(bits)) - } -} -impl core::ops::Deref for GPIO27_LEVEL_HIGH_R { - type Target = crate::FieldReader; - #[inline(always)] - fn deref(&self) -> &Self::Target { - &self.0 - } -} -#[doc = "Field `GPIO27_LEVEL_HIGH` writer - "] -pub struct GPIO27_LEVEL_HIGH_W<'a> { - w: &'a mut W, -} -impl<'a> GPIO27_LEVEL_HIGH_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 << 13)) | ((value as u32 & 0x01) << 13); - self.w - } -} -#[doc = "Field `GPIO27_LEVEL_LOW` reader - "] -pub struct GPIO27_LEVEL_LOW_R(crate::FieldReader); -impl GPIO27_LEVEL_LOW_R { - pub(crate) fn new(bits: bool) -> Self { - GPIO27_LEVEL_LOW_R(crate::FieldReader::new(bits)) - } -} -impl core::ops::Deref for GPIO27_LEVEL_LOW_R { - type Target = crate::FieldReader; - #[inline(always)] - fn deref(&self) -> &Self::Target { - &self.0 - } -} -#[doc = "Field `GPIO27_LEVEL_LOW` writer - "] -pub struct GPIO27_LEVEL_LOW_W<'a> { - w: &'a mut W, -} -impl<'a> GPIO27_LEVEL_LOW_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 << 12)) | ((value as u32 & 0x01) << 12); - self.w - } -} -#[doc = "Field `GPIO26_EDGE_HIGH` reader - "] -pub struct GPIO26_EDGE_HIGH_R(crate::FieldReader); -impl GPIO26_EDGE_HIGH_R { - pub(crate) fn new(bits: bool) -> Self { - GPIO26_EDGE_HIGH_R(crate::FieldReader::new(bits)) - } -} -impl core::ops::Deref for GPIO26_EDGE_HIGH_R { - type Target = crate::FieldReader; - #[inline(always)] - fn deref(&self) -> &Self::Target { - &self.0 - } -} -#[doc = "Field `GPIO26_EDGE_HIGH` writer - "] -pub struct GPIO26_EDGE_HIGH_W<'a> { - w: &'a mut W, -} -impl<'a> GPIO26_EDGE_HIGH_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 `GPIO26_EDGE_LOW` reader - "] -pub struct GPIO26_EDGE_LOW_R(crate::FieldReader); -impl GPIO26_EDGE_LOW_R { - pub(crate) fn new(bits: bool) -> Self { - GPIO26_EDGE_LOW_R(crate::FieldReader::new(bits)) - } -} -impl core::ops::Deref for GPIO26_EDGE_LOW_R { - type Target = crate::FieldReader; - #[inline(always)] - fn deref(&self) -> &Self::Target { - &self.0 - } -} -#[doc = "Field `GPIO26_EDGE_LOW` writer - "] -pub struct GPIO26_EDGE_LOW_W<'a> { - w: &'a mut W, -} -impl<'a> GPIO26_EDGE_LOW_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 `GPIO26_LEVEL_HIGH` reader - "] -pub struct GPIO26_LEVEL_HIGH_R(crate::FieldReader); -impl GPIO26_LEVEL_HIGH_R { - pub(crate) fn new(bits: bool) -> Self { - GPIO26_LEVEL_HIGH_R(crate::FieldReader::new(bits)) - } -} -impl core::ops::Deref for GPIO26_LEVEL_HIGH_R { - type Target = crate::FieldReader; - #[inline(always)] - fn deref(&self) -> &Self::Target { - &self.0 - } -} -#[doc = "Field `GPIO26_LEVEL_HIGH` writer - "] -pub struct GPIO26_LEVEL_HIGH_W<'a> { - w: &'a mut W, -} -impl<'a> GPIO26_LEVEL_HIGH_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 `GPIO26_LEVEL_LOW` reader - "] -pub struct GPIO26_LEVEL_LOW_R(crate::FieldReader); -impl GPIO26_LEVEL_LOW_R { - pub(crate) fn new(bits: bool) -> Self { - GPIO26_LEVEL_LOW_R(crate::FieldReader::new(bits)) - } -} -impl core::ops::Deref for GPIO26_LEVEL_LOW_R { - type Target = crate::FieldReader; - #[inline(always)] - fn deref(&self) -> &Self::Target { - &self.0 - } -} -#[doc = "Field `GPIO26_LEVEL_LOW` writer - "] -pub struct GPIO26_LEVEL_LOW_W<'a> { - w: &'a mut W, -} -impl<'a> GPIO26_LEVEL_LOW_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 `GPIO25_EDGE_HIGH` reader - "] -pub struct GPIO25_EDGE_HIGH_R(crate::FieldReader); -impl GPIO25_EDGE_HIGH_R { - pub(crate) fn new(bits: bool) -> Self { - GPIO25_EDGE_HIGH_R(crate::FieldReader::new(bits)) - } -} -impl core::ops::Deref for GPIO25_EDGE_HIGH_R { - type Target = crate::FieldReader; - #[inline(always)] - fn deref(&self) -> &Self::Target { - &self.0 - } -} -#[doc = "Field `GPIO25_EDGE_HIGH` writer - "] -pub struct GPIO25_EDGE_HIGH_W<'a> { - w: &'a mut W, -} -impl<'a> GPIO25_EDGE_HIGH_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 `GPIO25_EDGE_LOW` reader - "] -pub struct GPIO25_EDGE_LOW_R(crate::FieldReader); -impl GPIO25_EDGE_LOW_R { - pub(crate) fn new(bits: bool) -> Self { - GPIO25_EDGE_LOW_R(crate::FieldReader::new(bits)) - } -} -impl core::ops::Deref for GPIO25_EDGE_LOW_R { - type Target = crate::FieldReader; - #[inline(always)] - fn deref(&self) -> &Self::Target { - &self.0 - } -} -#[doc = "Field `GPIO25_EDGE_LOW` writer - "] -pub struct GPIO25_EDGE_LOW_W<'a> { - w: &'a mut W, -} -impl<'a> GPIO25_EDGE_LOW_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 `GPIO25_LEVEL_HIGH` reader - "] -pub struct GPIO25_LEVEL_HIGH_R(crate::FieldReader); -impl GPIO25_LEVEL_HIGH_R { - pub(crate) fn new(bits: bool) -> Self { - GPIO25_LEVEL_HIGH_R(crate::FieldReader::new(bits)) - } -} -impl core::ops::Deref for GPIO25_LEVEL_HIGH_R { - type Target = crate::FieldReader; - #[inline(always)] - fn deref(&self) -> &Self::Target { - &self.0 - } -} -#[doc = "Field `GPIO25_LEVEL_HIGH` writer - "] -pub struct GPIO25_LEVEL_HIGH_W<'a> { - w: &'a mut W, -} -impl<'a> GPIO25_LEVEL_HIGH_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 `GPIO25_LEVEL_LOW` reader - "] -pub struct GPIO25_LEVEL_LOW_R(crate::FieldReader); -impl GPIO25_LEVEL_LOW_R { - pub(crate) fn new(bits: bool) -> Self { - GPIO25_LEVEL_LOW_R(crate::FieldReader::new(bits)) - } -} -impl core::ops::Deref for GPIO25_LEVEL_LOW_R { - type Target = crate::FieldReader; - #[inline(always)] - fn deref(&self) -> &Self::Target { - &self.0 - } -} -#[doc = "Field `GPIO25_LEVEL_LOW` writer - "] -pub struct GPIO25_LEVEL_LOW_W<'a> { - w: &'a mut W, -} -impl<'a> GPIO25_LEVEL_LOW_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 `GPIO24_EDGE_HIGH` reader - "] -pub struct GPIO24_EDGE_HIGH_R(crate::FieldReader); -impl GPIO24_EDGE_HIGH_R { - pub(crate) fn new(bits: bool) -> Self { - GPIO24_EDGE_HIGH_R(crate::FieldReader::new(bits)) - } -} -impl core::ops::Deref for GPIO24_EDGE_HIGH_R { - type Target = crate::FieldReader; - #[inline(always)] - fn deref(&self) -> &Self::Target { - &self.0 - } -} -#[doc = "Field `GPIO24_EDGE_HIGH` writer - "] -pub struct GPIO24_EDGE_HIGH_W<'a> { - w: &'a mut W, -} -impl<'a> GPIO24_EDGE_HIGH_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 `GPIO24_EDGE_LOW` reader - "] -pub struct GPIO24_EDGE_LOW_R(crate::FieldReader); -impl GPIO24_EDGE_LOW_R { - pub(crate) fn new(bits: bool) -> Self { - GPIO24_EDGE_LOW_R(crate::FieldReader::new(bits)) - } -} -impl core::ops::Deref for GPIO24_EDGE_LOW_R { - type Target = crate::FieldReader; - #[inline(always)] - fn deref(&self) -> &Self::Target { - &self.0 - } -} -#[doc = "Field `GPIO24_EDGE_LOW` writer - "] -pub struct GPIO24_EDGE_LOW_W<'a> { - w: &'a mut W, -} -impl<'a> GPIO24_EDGE_LOW_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 `GPIO24_LEVEL_HIGH` reader - "] -pub struct GPIO24_LEVEL_HIGH_R(crate::FieldReader); -impl GPIO24_LEVEL_HIGH_R { - pub(crate) fn new(bits: bool) -> Self { - GPIO24_LEVEL_HIGH_R(crate::FieldReader::new(bits)) - } -} -impl core::ops::Deref for GPIO24_LEVEL_HIGH_R { - type Target = crate::FieldReader; - #[inline(always)] - fn deref(&self) -> &Self::Target { - &self.0 - } -} -#[doc = "Field `GPIO24_LEVEL_HIGH` writer - "] -pub struct GPIO24_LEVEL_HIGH_W<'a> { - w: &'a mut W, -} -impl<'a> GPIO24_LEVEL_HIGH_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 `GPIO24_LEVEL_LOW` reader - "] -pub struct GPIO24_LEVEL_LOW_R(crate::FieldReader); -impl GPIO24_LEVEL_LOW_R { - pub(crate) fn new(bits: bool) -> Self { - GPIO24_LEVEL_LOW_R(crate::FieldReader::new(bits)) - } -} -impl core::ops::Deref for GPIO24_LEVEL_LOW_R { - type Target = crate::FieldReader; - #[inline(always)] - fn deref(&self) -> &Self::Target { - &self.0 - } -} -#[doc = "Field `GPIO24_LEVEL_LOW` writer - "] -pub struct GPIO24_LEVEL_LOW_W<'a> { - w: &'a mut W, -} -impl<'a> GPIO24_LEVEL_LOW_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 - } -} -impl R { - #[doc = "Bit 23"] - #[inline(always)] - pub fn gpio29_edge_high(&self) -> GPIO29_EDGE_HIGH_R { - GPIO29_EDGE_HIGH_R::new(((self.bits >> 23) & 0x01) != 0) - } - #[doc = "Bit 22"] - #[inline(always)] - pub fn gpio29_edge_low(&self) -> GPIO29_EDGE_LOW_R { - GPIO29_EDGE_LOW_R::new(((self.bits >> 22) & 0x01) != 0) - } - #[doc = "Bit 21"] - #[inline(always)] - pub fn gpio29_level_high(&self) -> GPIO29_LEVEL_HIGH_R { - GPIO29_LEVEL_HIGH_R::new(((self.bits >> 21) & 0x01) != 0) - } - #[doc = "Bit 20"] - #[inline(always)] - pub fn gpio29_level_low(&self) -> GPIO29_LEVEL_LOW_R { - GPIO29_LEVEL_LOW_R::new(((self.bits >> 20) & 0x01) != 0) - } - #[doc = "Bit 19"] - #[inline(always)] - pub fn gpio28_edge_high(&self) -> GPIO28_EDGE_HIGH_R { - GPIO28_EDGE_HIGH_R::new(((self.bits >> 19) & 0x01) != 0) - } - #[doc = "Bit 18"] - #[inline(always)] - pub fn gpio28_edge_low(&self) -> GPIO28_EDGE_LOW_R { - GPIO28_EDGE_LOW_R::new(((self.bits >> 18) & 0x01) != 0) - } - #[doc = "Bit 17"] - #[inline(always)] - pub fn gpio28_level_high(&self) -> GPIO28_LEVEL_HIGH_R { - GPIO28_LEVEL_HIGH_R::new(((self.bits >> 17) & 0x01) != 0) - } - #[doc = "Bit 16"] - #[inline(always)] - pub fn gpio28_level_low(&self) -> GPIO28_LEVEL_LOW_R { - GPIO28_LEVEL_LOW_R::new(((self.bits >> 16) & 0x01) != 0) - } - #[doc = "Bit 15"] - #[inline(always)] - pub fn gpio27_edge_high(&self) -> GPIO27_EDGE_HIGH_R { - GPIO27_EDGE_HIGH_R::new(((self.bits >> 15) & 0x01) != 0) - } - #[doc = "Bit 14"] - #[inline(always)] - pub fn gpio27_edge_low(&self) -> GPIO27_EDGE_LOW_R { - GPIO27_EDGE_LOW_R::new(((self.bits >> 14) & 0x01) != 0) - } - #[doc = "Bit 13"] - #[inline(always)] - pub fn gpio27_level_high(&self) -> GPIO27_LEVEL_HIGH_R { - GPIO27_LEVEL_HIGH_R::new(((self.bits >> 13) & 0x01) != 0) - } - #[doc = "Bit 12"] - #[inline(always)] - pub fn gpio27_level_low(&self) -> GPIO27_LEVEL_LOW_R { - GPIO27_LEVEL_LOW_R::new(((self.bits >> 12) & 0x01) != 0) - } - #[doc = "Bit 11"] - #[inline(always)] - pub fn gpio26_edge_high(&self) -> GPIO26_EDGE_HIGH_R { - GPIO26_EDGE_HIGH_R::new(((self.bits >> 11) & 0x01) != 0) - } - #[doc = "Bit 10"] - #[inline(always)] - pub fn gpio26_edge_low(&self) -> GPIO26_EDGE_LOW_R { - GPIO26_EDGE_LOW_R::new(((self.bits >> 10) & 0x01) != 0) - } - #[doc = "Bit 9"] - #[inline(always)] - pub fn gpio26_level_high(&self) -> GPIO26_LEVEL_HIGH_R { - GPIO26_LEVEL_HIGH_R::new(((self.bits >> 9) & 0x01) != 0) - } - #[doc = "Bit 8"] - #[inline(always)] - pub fn gpio26_level_low(&self) -> GPIO26_LEVEL_LOW_R { - GPIO26_LEVEL_LOW_R::new(((self.bits >> 8) & 0x01) != 0) - } - #[doc = "Bit 7"] - #[inline(always)] - pub fn gpio25_edge_high(&self) -> GPIO25_EDGE_HIGH_R { - GPIO25_EDGE_HIGH_R::new(((self.bits >> 7) & 0x01) != 0) - } - #[doc = "Bit 6"] - #[inline(always)] - pub fn gpio25_edge_low(&self) -> GPIO25_EDGE_LOW_R { - GPIO25_EDGE_LOW_R::new(((self.bits >> 6) & 0x01) != 0) - } - #[doc = "Bit 5"] - #[inline(always)] - pub fn gpio25_level_high(&self) -> GPIO25_LEVEL_HIGH_R { - GPIO25_LEVEL_HIGH_R::new(((self.bits >> 5) & 0x01) != 0) - } - #[doc = "Bit 4"] - #[inline(always)] - pub fn gpio25_level_low(&self) -> GPIO25_LEVEL_LOW_R { - GPIO25_LEVEL_LOW_R::new(((self.bits >> 4) & 0x01) != 0) - } - #[doc = "Bit 3"] - #[inline(always)] - pub fn gpio24_edge_high(&self) -> GPIO24_EDGE_HIGH_R { - GPIO24_EDGE_HIGH_R::new(((self.bits >> 3) & 0x01) != 0) - } - #[doc = "Bit 2"] - #[inline(always)] - pub fn gpio24_edge_low(&self) -> GPIO24_EDGE_LOW_R { - GPIO24_EDGE_LOW_R::new(((self.bits >> 2) & 0x01) != 0) - } - #[doc = "Bit 1"] - #[inline(always)] - pub fn gpio24_level_high(&self) -> GPIO24_LEVEL_HIGH_R { - GPIO24_LEVEL_HIGH_R::new(((self.bits >> 1) & 0x01) != 0) - } - #[doc = "Bit 0"] - #[inline(always)] - pub fn gpio24_level_low(&self) -> GPIO24_LEVEL_LOW_R { - GPIO24_LEVEL_LOW_R::new((self.bits & 0x01) != 0) - } -} -impl W { - #[doc = "Bit 23"] - #[inline(always)] - pub fn gpio29_edge_high(&mut self) -> GPIO29_EDGE_HIGH_W { - GPIO29_EDGE_HIGH_W { w: self } - } - #[doc = "Bit 22"] - #[inline(always)] - pub fn gpio29_edge_low(&mut self) -> GPIO29_EDGE_LOW_W { - GPIO29_EDGE_LOW_W { w: self } - } - #[doc = "Bit 21"] - #[inline(always)] - pub fn gpio29_level_high(&mut self) -> GPIO29_LEVEL_HIGH_W { - GPIO29_LEVEL_HIGH_W { w: self } - } - #[doc = "Bit 20"] - #[inline(always)] - pub fn gpio29_level_low(&mut self) -> GPIO29_LEVEL_LOW_W { - GPIO29_LEVEL_LOW_W { w: self } - } - #[doc = "Bit 19"] - #[inline(always)] - pub fn gpio28_edge_high(&mut self) -> GPIO28_EDGE_HIGH_W { - GPIO28_EDGE_HIGH_W { w: self } - } - #[doc = "Bit 18"] - #[inline(always)] - pub fn gpio28_edge_low(&mut self) -> GPIO28_EDGE_LOW_W { - GPIO28_EDGE_LOW_W { w: self } - } - #[doc = "Bit 17"] - #[inline(always)] - pub fn gpio28_level_high(&mut self) -> GPIO28_LEVEL_HIGH_W { - GPIO28_LEVEL_HIGH_W { w: self } - } - #[doc = "Bit 16"] - #[inline(always)] - pub fn gpio28_level_low(&mut self) -> GPIO28_LEVEL_LOW_W { - GPIO28_LEVEL_LOW_W { w: self } - } - #[doc = "Bit 15"] - #[inline(always)] - pub fn gpio27_edge_high(&mut self) -> GPIO27_EDGE_HIGH_W { - GPIO27_EDGE_HIGH_W { w: self } - } - #[doc = "Bit 14"] - #[inline(always)] - pub fn gpio27_edge_low(&mut self) -> GPIO27_EDGE_LOW_W { - GPIO27_EDGE_LOW_W { w: self } - } - #[doc = "Bit 13"] - #[inline(always)] - pub fn gpio27_level_high(&mut self) -> GPIO27_LEVEL_HIGH_W { - GPIO27_LEVEL_HIGH_W { w: self } - } - #[doc = "Bit 12"] - #[inline(always)] - pub fn gpio27_level_low(&mut self) -> GPIO27_LEVEL_LOW_W { - GPIO27_LEVEL_LOW_W { w: self } - } - #[doc = "Bit 11"] - #[inline(always)] - pub fn gpio26_edge_high(&mut self) -> GPIO26_EDGE_HIGH_W { - GPIO26_EDGE_HIGH_W { w: self } - } - #[doc = "Bit 10"] - #[inline(always)] - pub fn gpio26_edge_low(&mut self) -> GPIO26_EDGE_LOW_W { - GPIO26_EDGE_LOW_W { w: self } - } - #[doc = "Bit 9"] - #[inline(always)] - pub fn gpio26_level_high(&mut self) -> GPIO26_LEVEL_HIGH_W { - GPIO26_LEVEL_HIGH_W { w: self } - } - #[doc = "Bit 8"] - #[inline(always)] - pub fn gpio26_level_low(&mut self) -> GPIO26_LEVEL_LOW_W { - GPIO26_LEVEL_LOW_W { w: self } - } - #[doc = "Bit 7"] - #[inline(always)] - pub fn gpio25_edge_high(&mut self) -> GPIO25_EDGE_HIGH_W { - GPIO25_EDGE_HIGH_W { w: self } - } - #[doc = "Bit 6"] - #[inline(always)] - pub fn gpio25_edge_low(&mut self) -> GPIO25_EDGE_LOW_W { - GPIO25_EDGE_LOW_W { w: self } - } - #[doc = "Bit 5"] - #[inline(always)] - pub fn gpio25_level_high(&mut self) -> GPIO25_LEVEL_HIGH_W { - GPIO25_LEVEL_HIGH_W { w: self } - } - #[doc = "Bit 4"] - #[inline(always)] - pub fn gpio25_level_low(&mut self) -> GPIO25_LEVEL_LOW_W { - GPIO25_LEVEL_LOW_W { w: self } - } - #[doc = "Bit 3"] - #[inline(always)] - pub fn gpio24_edge_high(&mut self) -> GPIO24_EDGE_HIGH_W { - GPIO24_EDGE_HIGH_W { w: self } - } - #[doc = "Bit 2"] - #[inline(always)] - pub fn gpio24_edge_low(&mut self) -> GPIO24_EDGE_LOW_W { - GPIO24_EDGE_LOW_W { w: self } - } - #[doc = "Bit 1"] - #[inline(always)] - pub fn gpio24_level_high(&mut self) -> GPIO24_LEVEL_HIGH_W { - GPIO24_LEVEL_HIGH_W { w: self } - } - #[doc = "Bit 0"] - #[inline(always)] - pub fn gpio24_level_low(&mut self) -> GPIO24_LEVEL_LOW_W { - GPIO24_LEVEL_LOW_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 Force for dormant_wake - -This 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). - -For information about available fields see [dormant_wake_intf3](index.html) module"] -pub struct DORMANT_WAKE_INTF3_SPEC; -impl crate::RegisterSpec for DORMANT_WAKE_INTF3_SPEC { - type Ux = u32; -} -#[doc = "`read()` method returns [dormant_wake_intf3::R](R) reader structure"] -impl crate::Readable for DORMANT_WAKE_INTF3_SPEC { - type Reader = R; -} -#[doc = "`write(|w| ..)` method takes [dormant_wake_intf3::W](W) writer structure"] -impl crate::Writable for DORMANT_WAKE_INTF3_SPEC { - type Writer = W; -} -#[doc = "`reset()` method sets DORMANT_WAKE_INTF3 to value 0"] -impl crate::Resettable for DORMANT_WAKE_INTF3_SPEC { - #[inline(always)] - fn reset_value() -> Self::Ux { - 0 - } -} diff --git a/src/io_bank0/dormant_wake_ints0.rs b/src/io_bank0/dormant_wake_ints.rs similarity index 96% rename from src/io_bank0/dormant_wake_ints0.rs rename to src/io_bank0/dormant_wake_ints.rs index aa1d373ce..8fcf83694 100644 --- a/src/io_bank0/dormant_wake_ints0.rs +++ b/src/io_bank0/dormant_wake_ints.rs @@ -1,15 +1,15 @@ -#[doc = "Register `DORMANT_WAKE_INTS0` reader"] -pub struct R(crate::R); +#[doc = "Register `DORMANT_WAKE_INTS%s` reader"] +pub struct R(crate::R); impl core::ops::Deref for R { - type Target = crate::R; + type Target = crate::R; #[inline(always)] fn deref(&self) -> &Self::Target { &self.0 } } -impl From> for R { +impl From> for R { #[inline(always)] - fn from(reader: crate::R) -> Self { + fn from(reader: crate::R) -> Self { R(reader) } } @@ -627,17 +627,17 @@ impl R { This register you can [`read`](crate::generic::Reg::read). See [API](https://docs.rs/svd2rust/#read--modify--write-api). -For information about available fields see [dormant_wake_ints0](index.html) module"] -pub struct DORMANT_WAKE_INTS0_SPEC; -impl crate::RegisterSpec for DORMANT_WAKE_INTS0_SPEC { +For information about available fields see [dormant_wake_ints](index.html) module"] +pub struct DORMANT_WAKE_INTS_SPEC; +impl crate::RegisterSpec for DORMANT_WAKE_INTS_SPEC { type Ux = u32; } -#[doc = "`read()` method returns [dormant_wake_ints0::R](R) reader structure"] -impl crate::Readable for DORMANT_WAKE_INTS0_SPEC { +#[doc = "`read()` method returns [dormant_wake_ints::R](R) reader structure"] +impl crate::Readable for DORMANT_WAKE_INTS_SPEC { type Reader = R; } -#[doc = "`reset()` method sets DORMANT_WAKE_INTS0 to value 0"] -impl crate::Resettable for DORMANT_WAKE_INTS0_SPEC { +#[doc = "`reset()` method sets DORMANT_WAKE_INTS%s to value 0"] +impl crate::Resettable for DORMANT_WAKE_INTS_SPEC { #[inline(always)] fn reset_value() -> Self::Ux { 0 diff --git a/src/io_bank0/dormant_wake_ints1.rs b/src/io_bank0/dormant_wake_ints1.rs deleted file mode 100644 index 0f8388b02..000000000 --- a/src/io_bank0/dormant_wake_ints1.rs +++ /dev/null @@ -1,645 +0,0 @@ -#[doc = "Register `DORMANT_WAKE_INTS1` reader"] -pub struct R(crate::R); -impl core::ops::Deref for R { - type Target = crate::R; - #[inline(always)] - fn deref(&self) -> &Self::Target { - &self.0 - } -} -impl From> for R { - #[inline(always)] - fn from(reader: crate::R) -> Self { - R(reader) - } -} -#[doc = "Field `GPIO15_EDGE_HIGH` reader - "] -pub struct GPIO15_EDGE_HIGH_R(crate::FieldReader); -impl GPIO15_EDGE_HIGH_R { - pub(crate) fn new(bits: bool) -> Self { - GPIO15_EDGE_HIGH_R(crate::FieldReader::new(bits)) - } -} -impl core::ops::Deref for GPIO15_EDGE_HIGH_R { - type Target = crate::FieldReader; - #[inline(always)] - fn deref(&self) -> &Self::Target { - &self.0 - } -} -#[doc = "Field `GPIO15_EDGE_LOW` reader - "] -pub struct GPIO15_EDGE_LOW_R(crate::FieldReader); -impl GPIO15_EDGE_LOW_R { - pub(crate) fn new(bits: bool) -> Self { - GPIO15_EDGE_LOW_R(crate::FieldReader::new(bits)) - } -} -impl core::ops::Deref for GPIO15_EDGE_LOW_R { - type Target = crate::FieldReader; - #[inline(always)] - fn deref(&self) -> &Self::Target { - &self.0 - } -} -#[doc = "Field `GPIO15_LEVEL_HIGH` reader - "] -pub struct GPIO15_LEVEL_HIGH_R(crate::FieldReader); -impl GPIO15_LEVEL_HIGH_R { - pub(crate) fn new(bits: bool) -> Self { - GPIO15_LEVEL_HIGH_R(crate::FieldReader::new(bits)) - } -} -impl core::ops::Deref for GPIO15_LEVEL_HIGH_R { - type Target = crate::FieldReader; - #[inline(always)] - fn deref(&self) -> &Self::Target { - &self.0 - } -} -#[doc = "Field `GPIO15_LEVEL_LOW` reader - "] -pub struct GPIO15_LEVEL_LOW_R(crate::FieldReader); -impl GPIO15_LEVEL_LOW_R { - pub(crate) fn new(bits: bool) -> Self { - GPIO15_LEVEL_LOW_R(crate::FieldReader::new(bits)) - } -} -impl core::ops::Deref for GPIO15_LEVEL_LOW_R { - type Target = crate::FieldReader; - #[inline(always)] - fn deref(&self) -> &Self::Target { - &self.0 - } -} -#[doc = "Field `GPIO14_EDGE_HIGH` reader - "] -pub struct GPIO14_EDGE_HIGH_R(crate::FieldReader); -impl GPIO14_EDGE_HIGH_R { - pub(crate) fn new(bits: bool) -> Self { - GPIO14_EDGE_HIGH_R(crate::FieldReader::new(bits)) - } -} -impl core::ops::Deref for GPIO14_EDGE_HIGH_R { - type Target = crate::FieldReader; - #[inline(always)] - fn deref(&self) -> &Self::Target { - &self.0 - } -} -#[doc = "Field `GPIO14_EDGE_LOW` reader - "] -pub struct GPIO14_EDGE_LOW_R(crate::FieldReader); -impl GPIO14_EDGE_LOW_R { - pub(crate) fn new(bits: bool) -> Self { - GPIO14_EDGE_LOW_R(crate::FieldReader::new(bits)) - } -} -impl core::ops::Deref for GPIO14_EDGE_LOW_R { - type Target = crate::FieldReader; - #[inline(always)] - fn deref(&self) -> &Self::Target { - &self.0 - } -} -#[doc = "Field `GPIO14_LEVEL_HIGH` reader - "] -pub struct GPIO14_LEVEL_HIGH_R(crate::FieldReader); -impl GPIO14_LEVEL_HIGH_R { - pub(crate) fn new(bits: bool) -> Self { - GPIO14_LEVEL_HIGH_R(crate::FieldReader::new(bits)) - } -} -impl core::ops::Deref for GPIO14_LEVEL_HIGH_R { - type Target = crate::FieldReader; - #[inline(always)] - fn deref(&self) -> &Self::Target { - &self.0 - } -} -#[doc = "Field `GPIO14_LEVEL_LOW` reader - "] -pub struct GPIO14_LEVEL_LOW_R(crate::FieldReader); -impl GPIO14_LEVEL_LOW_R { - pub(crate) fn new(bits: bool) -> Self { - GPIO14_LEVEL_LOW_R(crate::FieldReader::new(bits)) - } -} -impl core::ops::Deref for GPIO14_LEVEL_LOW_R { - type Target = crate::FieldReader; - #[inline(always)] - fn deref(&self) -> &Self::Target { - &self.0 - } -} -#[doc = "Field `GPIO13_EDGE_HIGH` reader - "] -pub struct GPIO13_EDGE_HIGH_R(crate::FieldReader); -impl GPIO13_EDGE_HIGH_R { - pub(crate) fn new(bits: bool) -> Self { - GPIO13_EDGE_HIGH_R(crate::FieldReader::new(bits)) - } -} -impl core::ops::Deref for GPIO13_EDGE_HIGH_R { - type Target = crate::FieldReader; - #[inline(always)] - fn deref(&self) -> &Self::Target { - &self.0 - } -} -#[doc = "Field `GPIO13_EDGE_LOW` reader - "] -pub struct GPIO13_EDGE_LOW_R(crate::FieldReader); -impl GPIO13_EDGE_LOW_R { - pub(crate) fn new(bits: bool) -> Self { - GPIO13_EDGE_LOW_R(crate::FieldReader::new(bits)) - } -} -impl core::ops::Deref for GPIO13_EDGE_LOW_R { - type Target = crate::FieldReader; - #[inline(always)] - fn deref(&self) -> &Self::Target { - &self.0 - } -} -#[doc = "Field `GPIO13_LEVEL_HIGH` reader - "] -pub struct GPIO13_LEVEL_HIGH_R(crate::FieldReader); -impl GPIO13_LEVEL_HIGH_R { - pub(crate) fn new(bits: bool) -> Self { - GPIO13_LEVEL_HIGH_R(crate::FieldReader::new(bits)) - } -} -impl core::ops::Deref for GPIO13_LEVEL_HIGH_R { - type Target = crate::FieldReader; - #[inline(always)] - fn deref(&self) -> &Self::Target { - &self.0 - } -} -#[doc = "Field `GPIO13_LEVEL_LOW` reader - "] -pub struct GPIO13_LEVEL_LOW_R(crate::FieldReader); -impl GPIO13_LEVEL_LOW_R { - pub(crate) fn new(bits: bool) -> Self { - GPIO13_LEVEL_LOW_R(crate::FieldReader::new(bits)) - } -} -impl core::ops::Deref for GPIO13_LEVEL_LOW_R { - type Target = crate::FieldReader; - #[inline(always)] - fn deref(&self) -> &Self::Target { - &self.0 - } -} -#[doc = "Field `GPIO12_EDGE_HIGH` reader - "] -pub struct GPIO12_EDGE_HIGH_R(crate::FieldReader); -impl GPIO12_EDGE_HIGH_R { - pub(crate) fn new(bits: bool) -> Self { - GPIO12_EDGE_HIGH_R(crate::FieldReader::new(bits)) - } -} -impl core::ops::Deref for GPIO12_EDGE_HIGH_R { - type Target = crate::FieldReader; - #[inline(always)] - fn deref(&self) -> &Self::Target { - &self.0 - } -} -#[doc = "Field `GPIO12_EDGE_LOW` reader - "] -pub struct GPIO12_EDGE_LOW_R(crate::FieldReader); -impl GPIO12_EDGE_LOW_R { - pub(crate) fn new(bits: bool) -> Self { - GPIO12_EDGE_LOW_R(crate::FieldReader::new(bits)) - } -} -impl core::ops::Deref for GPIO12_EDGE_LOW_R { - type Target = crate::FieldReader; - #[inline(always)] - fn deref(&self) -> &Self::Target { - &self.0 - } -} -#[doc = "Field `GPIO12_LEVEL_HIGH` reader - "] -pub struct GPIO12_LEVEL_HIGH_R(crate::FieldReader); -impl GPIO12_LEVEL_HIGH_R { - pub(crate) fn new(bits: bool) -> Self { - GPIO12_LEVEL_HIGH_R(crate::FieldReader::new(bits)) - } -} -impl core::ops::Deref for GPIO12_LEVEL_HIGH_R { - type Target = crate::FieldReader; - #[inline(always)] - fn deref(&self) -> &Self::Target { - &self.0 - } -} -#[doc = "Field `GPIO12_LEVEL_LOW` reader - "] -pub struct GPIO12_LEVEL_LOW_R(crate::FieldReader); -impl GPIO12_LEVEL_LOW_R { - pub(crate) fn new(bits: bool) -> Self { - GPIO12_LEVEL_LOW_R(crate::FieldReader::new(bits)) - } -} -impl core::ops::Deref for GPIO12_LEVEL_LOW_R { - type Target = crate::FieldReader; - #[inline(always)] - fn deref(&self) -> &Self::Target { - &self.0 - } -} -#[doc = "Field `GPIO11_EDGE_HIGH` reader - "] -pub struct GPIO11_EDGE_HIGH_R(crate::FieldReader); -impl GPIO11_EDGE_HIGH_R { - pub(crate) fn new(bits: bool) -> Self { - GPIO11_EDGE_HIGH_R(crate::FieldReader::new(bits)) - } -} -impl core::ops::Deref for GPIO11_EDGE_HIGH_R { - type Target = crate::FieldReader; - #[inline(always)] - fn deref(&self) -> &Self::Target { - &self.0 - } -} -#[doc = "Field `GPIO11_EDGE_LOW` reader - "] -pub struct GPIO11_EDGE_LOW_R(crate::FieldReader); -impl GPIO11_EDGE_LOW_R { - pub(crate) fn new(bits: bool) -> Self { - GPIO11_EDGE_LOW_R(crate::FieldReader::new(bits)) - } -} -impl core::ops::Deref for GPIO11_EDGE_LOW_R { - type Target = crate::FieldReader; - #[inline(always)] - fn deref(&self) -> &Self::Target { - &self.0 - } -} -#[doc = "Field `GPIO11_LEVEL_HIGH` reader - "] -pub struct GPIO11_LEVEL_HIGH_R(crate::FieldReader); -impl GPIO11_LEVEL_HIGH_R { - pub(crate) fn new(bits: bool) -> Self { - GPIO11_LEVEL_HIGH_R(crate::FieldReader::new(bits)) - } -} -impl core::ops::Deref for GPIO11_LEVEL_HIGH_R { - type Target = crate::FieldReader; - #[inline(always)] - fn deref(&self) -> &Self::Target { - &self.0 - } -} -#[doc = "Field `GPIO11_LEVEL_LOW` reader - "] -pub struct GPIO11_LEVEL_LOW_R(crate::FieldReader); -impl GPIO11_LEVEL_LOW_R { - pub(crate) fn new(bits: bool) -> Self { - GPIO11_LEVEL_LOW_R(crate::FieldReader::new(bits)) - } -} -impl core::ops::Deref for GPIO11_LEVEL_LOW_R { - type Target = crate::FieldReader; - #[inline(always)] - fn deref(&self) -> &Self::Target { - &self.0 - } -} -#[doc = "Field `GPIO10_EDGE_HIGH` reader - "] -pub struct GPIO10_EDGE_HIGH_R(crate::FieldReader); -impl GPIO10_EDGE_HIGH_R { - pub(crate) fn new(bits: bool) -> Self { - GPIO10_EDGE_HIGH_R(crate::FieldReader::new(bits)) - } -} -impl core::ops::Deref for GPIO10_EDGE_HIGH_R { - type Target = crate::FieldReader; - #[inline(always)] - fn deref(&self) -> &Self::Target { - &self.0 - } -} -#[doc = "Field `GPIO10_EDGE_LOW` reader - "] -pub struct GPIO10_EDGE_LOW_R(crate::FieldReader); -impl GPIO10_EDGE_LOW_R { - pub(crate) fn new(bits: bool) -> Self { - GPIO10_EDGE_LOW_R(crate::FieldReader::new(bits)) - } -} -impl core::ops::Deref for GPIO10_EDGE_LOW_R { - type Target = crate::FieldReader; - #[inline(always)] - fn deref(&self) -> &Self::Target { - &self.0 - } -} -#[doc = "Field `GPIO10_LEVEL_HIGH` reader - "] -pub struct GPIO10_LEVEL_HIGH_R(crate::FieldReader); -impl GPIO10_LEVEL_HIGH_R { - pub(crate) fn new(bits: bool) -> Self { - GPIO10_LEVEL_HIGH_R(crate::FieldReader::new(bits)) - } -} -impl core::ops::Deref for GPIO10_LEVEL_HIGH_R { - type Target = crate::FieldReader; - #[inline(always)] - fn deref(&self) -> &Self::Target { - &self.0 - } -} -#[doc = "Field `GPIO10_LEVEL_LOW` reader - "] -pub struct GPIO10_LEVEL_LOW_R(crate::FieldReader); -impl GPIO10_LEVEL_LOW_R { - pub(crate) fn new(bits: bool) -> Self { - GPIO10_LEVEL_LOW_R(crate::FieldReader::new(bits)) - } -} -impl core::ops::Deref for GPIO10_LEVEL_LOW_R { - type Target = crate::FieldReader; - #[inline(always)] - fn deref(&self) -> &Self::Target { - &self.0 - } -} -#[doc = "Field `GPIO9_EDGE_HIGH` reader - "] -pub struct GPIO9_EDGE_HIGH_R(crate::FieldReader); -impl GPIO9_EDGE_HIGH_R { - pub(crate) fn new(bits: bool) -> Self { - GPIO9_EDGE_HIGH_R(crate::FieldReader::new(bits)) - } -} -impl core::ops::Deref for GPIO9_EDGE_HIGH_R { - type Target = crate::FieldReader; - #[inline(always)] - fn deref(&self) -> &Self::Target { - &self.0 - } -} -#[doc = "Field `GPIO9_EDGE_LOW` reader - "] -pub struct GPIO9_EDGE_LOW_R(crate::FieldReader); -impl GPIO9_EDGE_LOW_R { - pub(crate) fn new(bits: bool) -> Self { - GPIO9_EDGE_LOW_R(crate::FieldReader::new(bits)) - } -} -impl core::ops::Deref for GPIO9_EDGE_LOW_R { - type Target = crate::FieldReader; - #[inline(always)] - fn deref(&self) -> &Self::Target { - &self.0 - } -} -#[doc = "Field `GPIO9_LEVEL_HIGH` reader - "] -pub struct GPIO9_LEVEL_HIGH_R(crate::FieldReader); -impl GPIO9_LEVEL_HIGH_R { - pub(crate) fn new(bits: bool) -> Self { - GPIO9_LEVEL_HIGH_R(crate::FieldReader::new(bits)) - } -} -impl core::ops::Deref for GPIO9_LEVEL_HIGH_R { - type Target = crate::FieldReader; - #[inline(always)] - fn deref(&self) -> &Self::Target { - &self.0 - } -} -#[doc = "Field `GPIO9_LEVEL_LOW` reader - "] -pub struct GPIO9_LEVEL_LOW_R(crate::FieldReader); -impl GPIO9_LEVEL_LOW_R { - pub(crate) fn new(bits: bool) -> Self { - GPIO9_LEVEL_LOW_R(crate::FieldReader::new(bits)) - } -} -impl core::ops::Deref for GPIO9_LEVEL_LOW_R { - type Target = crate::FieldReader; - #[inline(always)] - fn deref(&self) -> &Self::Target { - &self.0 - } -} -#[doc = "Field `GPIO8_EDGE_HIGH` reader - "] -pub struct GPIO8_EDGE_HIGH_R(crate::FieldReader); -impl GPIO8_EDGE_HIGH_R { - pub(crate) fn new(bits: bool) -> Self { - GPIO8_EDGE_HIGH_R(crate::FieldReader::new(bits)) - } -} -impl core::ops::Deref for GPIO8_EDGE_HIGH_R { - type Target = crate::FieldReader; - #[inline(always)] - fn deref(&self) -> &Self::Target { - &self.0 - } -} -#[doc = "Field `GPIO8_EDGE_LOW` reader - "] -pub struct GPIO8_EDGE_LOW_R(crate::FieldReader); -impl GPIO8_EDGE_LOW_R { - pub(crate) fn new(bits: bool) -> Self { - GPIO8_EDGE_LOW_R(crate::FieldReader::new(bits)) - } -} -impl core::ops::Deref for GPIO8_EDGE_LOW_R { - type Target = crate::FieldReader; - #[inline(always)] - fn deref(&self) -> &Self::Target { - &self.0 - } -} -#[doc = "Field `GPIO8_LEVEL_HIGH` reader - "] -pub struct GPIO8_LEVEL_HIGH_R(crate::FieldReader); -impl GPIO8_LEVEL_HIGH_R { - pub(crate) fn new(bits: bool) -> Self { - GPIO8_LEVEL_HIGH_R(crate::FieldReader::new(bits)) - } -} -impl core::ops::Deref for GPIO8_LEVEL_HIGH_R { - type Target = crate::FieldReader; - #[inline(always)] - fn deref(&self) -> &Self::Target { - &self.0 - } -} -#[doc = "Field `GPIO8_LEVEL_LOW` reader - "] -pub struct GPIO8_LEVEL_LOW_R(crate::FieldReader); -impl GPIO8_LEVEL_LOW_R { - pub(crate) fn new(bits: bool) -> Self { - GPIO8_LEVEL_LOW_R(crate::FieldReader::new(bits)) - } -} -impl core::ops::Deref for GPIO8_LEVEL_LOW_R { - type Target = crate::FieldReader; - #[inline(always)] - fn deref(&self) -> &Self::Target { - &self.0 - } -} -impl R { - #[doc = "Bit 31"] - #[inline(always)] - pub fn gpio15_edge_high(&self) -> GPIO15_EDGE_HIGH_R { - GPIO15_EDGE_HIGH_R::new(((self.bits >> 31) & 0x01) != 0) - } - #[doc = "Bit 30"] - #[inline(always)] - pub fn gpio15_edge_low(&self) -> GPIO15_EDGE_LOW_R { - GPIO15_EDGE_LOW_R::new(((self.bits >> 30) & 0x01) != 0) - } - #[doc = "Bit 29"] - #[inline(always)] - pub fn gpio15_level_high(&self) -> GPIO15_LEVEL_HIGH_R { - GPIO15_LEVEL_HIGH_R::new(((self.bits >> 29) & 0x01) != 0) - } - #[doc = "Bit 28"] - #[inline(always)] - pub fn gpio15_level_low(&self) -> GPIO15_LEVEL_LOW_R { - GPIO15_LEVEL_LOW_R::new(((self.bits >> 28) & 0x01) != 0) - } - #[doc = "Bit 27"] - #[inline(always)] - pub fn gpio14_edge_high(&self) -> GPIO14_EDGE_HIGH_R { - GPIO14_EDGE_HIGH_R::new(((self.bits >> 27) & 0x01) != 0) - } - #[doc = "Bit 26"] - #[inline(always)] - pub fn gpio14_edge_low(&self) -> GPIO14_EDGE_LOW_R { - GPIO14_EDGE_LOW_R::new(((self.bits >> 26) & 0x01) != 0) - } - #[doc = "Bit 25"] - #[inline(always)] - pub fn gpio14_level_high(&self) -> GPIO14_LEVEL_HIGH_R { - GPIO14_LEVEL_HIGH_R::new(((self.bits >> 25) & 0x01) != 0) - } - #[doc = "Bit 24"] - #[inline(always)] - pub fn gpio14_level_low(&self) -> GPIO14_LEVEL_LOW_R { - GPIO14_LEVEL_LOW_R::new(((self.bits >> 24) & 0x01) != 0) - } - #[doc = "Bit 23"] - #[inline(always)] - pub fn gpio13_edge_high(&self) -> GPIO13_EDGE_HIGH_R { - GPIO13_EDGE_HIGH_R::new(((self.bits >> 23) & 0x01) != 0) - } - #[doc = "Bit 22"] - #[inline(always)] - pub fn gpio13_edge_low(&self) -> GPIO13_EDGE_LOW_R { - GPIO13_EDGE_LOW_R::new(((self.bits >> 22) & 0x01) != 0) - } - #[doc = "Bit 21"] - #[inline(always)] - pub fn gpio13_level_high(&self) -> GPIO13_LEVEL_HIGH_R { - GPIO13_LEVEL_HIGH_R::new(((self.bits >> 21) & 0x01) != 0) - } - #[doc = "Bit 20"] - #[inline(always)] - pub fn gpio13_level_low(&self) -> GPIO13_LEVEL_LOW_R { - GPIO13_LEVEL_LOW_R::new(((self.bits >> 20) & 0x01) != 0) - } - #[doc = "Bit 19"] - #[inline(always)] - pub fn gpio12_edge_high(&self) -> GPIO12_EDGE_HIGH_R { - GPIO12_EDGE_HIGH_R::new(((self.bits >> 19) & 0x01) != 0) - } - #[doc = "Bit 18"] - #[inline(always)] - pub fn gpio12_edge_low(&self) -> GPIO12_EDGE_LOW_R { - GPIO12_EDGE_LOW_R::new(((self.bits >> 18) & 0x01) != 0) - } - #[doc = "Bit 17"] - #[inline(always)] - pub fn gpio12_level_high(&self) -> GPIO12_LEVEL_HIGH_R { - GPIO12_LEVEL_HIGH_R::new(((self.bits >> 17) & 0x01) != 0) - } - #[doc = "Bit 16"] - #[inline(always)] - pub fn gpio12_level_low(&self) -> GPIO12_LEVEL_LOW_R { - GPIO12_LEVEL_LOW_R::new(((self.bits >> 16) & 0x01) != 0) - } - #[doc = "Bit 15"] - #[inline(always)] - pub fn gpio11_edge_high(&self) -> GPIO11_EDGE_HIGH_R { - GPIO11_EDGE_HIGH_R::new(((self.bits >> 15) & 0x01) != 0) - } - #[doc = "Bit 14"] - #[inline(always)] - pub fn gpio11_edge_low(&self) -> GPIO11_EDGE_LOW_R { - GPIO11_EDGE_LOW_R::new(((self.bits >> 14) & 0x01) != 0) - } - #[doc = "Bit 13"] - #[inline(always)] - pub fn gpio11_level_high(&self) -> GPIO11_LEVEL_HIGH_R { - GPIO11_LEVEL_HIGH_R::new(((self.bits >> 13) & 0x01) != 0) - } - #[doc = "Bit 12"] - #[inline(always)] - pub fn gpio11_level_low(&self) -> GPIO11_LEVEL_LOW_R { - GPIO11_LEVEL_LOW_R::new(((self.bits >> 12) & 0x01) != 0) - } - #[doc = "Bit 11"] - #[inline(always)] - pub fn gpio10_edge_high(&self) -> GPIO10_EDGE_HIGH_R { - GPIO10_EDGE_HIGH_R::new(((self.bits >> 11) & 0x01) != 0) - } - #[doc = "Bit 10"] - #[inline(always)] - pub fn gpio10_edge_low(&self) -> GPIO10_EDGE_LOW_R { - GPIO10_EDGE_LOW_R::new(((self.bits >> 10) & 0x01) != 0) - } - #[doc = "Bit 9"] - #[inline(always)] - pub fn gpio10_level_high(&self) -> GPIO10_LEVEL_HIGH_R { - GPIO10_LEVEL_HIGH_R::new(((self.bits >> 9) & 0x01) != 0) - } - #[doc = "Bit 8"] - #[inline(always)] - pub fn gpio10_level_low(&self) -> GPIO10_LEVEL_LOW_R { - GPIO10_LEVEL_LOW_R::new(((self.bits >> 8) & 0x01) != 0) - } - #[doc = "Bit 7"] - #[inline(always)] - pub fn gpio9_edge_high(&self) -> GPIO9_EDGE_HIGH_R { - GPIO9_EDGE_HIGH_R::new(((self.bits >> 7) & 0x01) != 0) - } - #[doc = "Bit 6"] - #[inline(always)] - pub fn gpio9_edge_low(&self) -> GPIO9_EDGE_LOW_R { - GPIO9_EDGE_LOW_R::new(((self.bits >> 6) & 0x01) != 0) - } - #[doc = "Bit 5"] - #[inline(always)] - pub fn gpio9_level_high(&self) -> GPIO9_LEVEL_HIGH_R { - GPIO9_LEVEL_HIGH_R::new(((self.bits >> 5) & 0x01) != 0) - } - #[doc = "Bit 4"] - #[inline(always)] - pub fn gpio9_level_low(&self) -> GPIO9_LEVEL_LOW_R { - GPIO9_LEVEL_LOW_R::new(((self.bits >> 4) & 0x01) != 0) - } - #[doc = "Bit 3"] - #[inline(always)] - pub fn gpio8_edge_high(&self) -> GPIO8_EDGE_HIGH_R { - GPIO8_EDGE_HIGH_R::new(((self.bits >> 3) & 0x01) != 0) - } - #[doc = "Bit 2"] - #[inline(always)] - pub fn gpio8_edge_low(&self) -> GPIO8_EDGE_LOW_R { - GPIO8_EDGE_LOW_R::new(((self.bits >> 2) & 0x01) != 0) - } - #[doc = "Bit 1"] - #[inline(always)] - pub fn gpio8_level_high(&self) -> GPIO8_LEVEL_HIGH_R { - GPIO8_LEVEL_HIGH_R::new(((self.bits >> 1) & 0x01) != 0) - } - #[doc = "Bit 0"] - #[inline(always)] - pub fn gpio8_level_low(&self) -> GPIO8_LEVEL_LOW_R { - GPIO8_LEVEL_LOW_R::new((self.bits & 0x01) != 0) - } -} -#[doc = "Interrupt status after masking & forcing for dormant_wake - -This register you can [`read`](crate::generic::Reg::read). See [API](https://docs.rs/svd2rust/#read--modify--write-api). - -For information about available fields see [dormant_wake_ints1](index.html) module"] -pub struct DORMANT_WAKE_INTS1_SPEC; -impl crate::RegisterSpec for DORMANT_WAKE_INTS1_SPEC { - type Ux = u32; -} -#[doc = "`read()` method returns [dormant_wake_ints1::R](R) reader structure"] -impl crate::Readable for DORMANT_WAKE_INTS1_SPEC { - type Reader = R; -} -#[doc = "`reset()` method sets DORMANT_WAKE_INTS1 to value 0"] -impl crate::Resettable for DORMANT_WAKE_INTS1_SPEC { - #[inline(always)] - fn reset_value() -> Self::Ux { - 0 - } -} diff --git a/src/io_bank0/dormant_wake_ints2.rs b/src/io_bank0/dormant_wake_ints2.rs deleted file mode 100644 index c8ed614cc..000000000 --- a/src/io_bank0/dormant_wake_ints2.rs +++ /dev/null @@ -1,645 +0,0 @@ -#[doc = "Register `DORMANT_WAKE_INTS2` reader"] -pub struct R(crate::R); -impl core::ops::Deref for R { - type Target = crate::R; - #[inline(always)] - fn deref(&self) -> &Self::Target { - &self.0 - } -} -impl From> for R { - #[inline(always)] - fn from(reader: crate::R) -> Self { - R(reader) - } -} -#[doc = "Field `GPIO23_EDGE_HIGH` reader - "] -pub struct GPIO23_EDGE_HIGH_R(crate::FieldReader); -impl GPIO23_EDGE_HIGH_R { - pub(crate) fn new(bits: bool) -> Self { - GPIO23_EDGE_HIGH_R(crate::FieldReader::new(bits)) - } -} -impl core::ops::Deref for GPIO23_EDGE_HIGH_R { - type Target = crate::FieldReader; - #[inline(always)] - fn deref(&self) -> &Self::Target { - &self.0 - } -} -#[doc = "Field `GPIO23_EDGE_LOW` reader - "] -pub struct GPIO23_EDGE_LOW_R(crate::FieldReader); -impl GPIO23_EDGE_LOW_R { - pub(crate) fn new(bits: bool) -> Self { - GPIO23_EDGE_LOW_R(crate::FieldReader::new(bits)) - } -} -impl core::ops::Deref for GPIO23_EDGE_LOW_R { - type Target = crate::FieldReader; - #[inline(always)] - fn deref(&self) -> &Self::Target { - &self.0 - } -} -#[doc = "Field `GPIO23_LEVEL_HIGH` reader - "] -pub struct GPIO23_LEVEL_HIGH_R(crate::FieldReader); -impl GPIO23_LEVEL_HIGH_R { - pub(crate) fn new(bits: bool) -> Self { - GPIO23_LEVEL_HIGH_R(crate::FieldReader::new(bits)) - } -} -impl core::ops::Deref for GPIO23_LEVEL_HIGH_R { - type Target = crate::FieldReader; - #[inline(always)] - fn deref(&self) -> &Self::Target { - &self.0 - } -} -#[doc = "Field `GPIO23_LEVEL_LOW` reader - "] -pub struct GPIO23_LEVEL_LOW_R(crate::FieldReader); -impl GPIO23_LEVEL_LOW_R { - pub(crate) fn new(bits: bool) -> Self { - GPIO23_LEVEL_LOW_R(crate::FieldReader::new(bits)) - } -} -impl core::ops::Deref for GPIO23_LEVEL_LOW_R { - type Target = crate::FieldReader; - #[inline(always)] - fn deref(&self) -> &Self::Target { - &self.0 - } -} -#[doc = "Field `GPIO22_EDGE_HIGH` reader - "] -pub struct GPIO22_EDGE_HIGH_R(crate::FieldReader); -impl GPIO22_EDGE_HIGH_R { - pub(crate) fn new(bits: bool) -> Self { - GPIO22_EDGE_HIGH_R(crate::FieldReader::new(bits)) - } -} -impl core::ops::Deref for GPIO22_EDGE_HIGH_R { - type Target = crate::FieldReader; - #[inline(always)] - fn deref(&self) -> &Self::Target { - &self.0 - } -} -#[doc = "Field `GPIO22_EDGE_LOW` reader - "] -pub struct GPIO22_EDGE_LOW_R(crate::FieldReader); -impl GPIO22_EDGE_LOW_R { - pub(crate) fn new(bits: bool) -> Self { - GPIO22_EDGE_LOW_R(crate::FieldReader::new(bits)) - } -} -impl core::ops::Deref for GPIO22_EDGE_LOW_R { - type Target = crate::FieldReader; - #[inline(always)] - fn deref(&self) -> &Self::Target { - &self.0 - } -} -#[doc = "Field `GPIO22_LEVEL_HIGH` reader - "] -pub struct GPIO22_LEVEL_HIGH_R(crate::FieldReader); -impl GPIO22_LEVEL_HIGH_R { - pub(crate) fn new(bits: bool) -> Self { - GPIO22_LEVEL_HIGH_R(crate::FieldReader::new(bits)) - } -} -impl core::ops::Deref for GPIO22_LEVEL_HIGH_R { - type Target = crate::FieldReader; - #[inline(always)] - fn deref(&self) -> &Self::Target { - &self.0 - } -} -#[doc = "Field `GPIO22_LEVEL_LOW` reader - "] -pub struct GPIO22_LEVEL_LOW_R(crate::FieldReader); -impl GPIO22_LEVEL_LOW_R { - pub(crate) fn new(bits: bool) -> Self { - GPIO22_LEVEL_LOW_R(crate::FieldReader::new(bits)) - } -} -impl core::ops::Deref for GPIO22_LEVEL_LOW_R { - type Target = crate::FieldReader; - #[inline(always)] - fn deref(&self) -> &Self::Target { - &self.0 - } -} -#[doc = "Field `GPIO21_EDGE_HIGH` reader - "] -pub struct GPIO21_EDGE_HIGH_R(crate::FieldReader); -impl GPIO21_EDGE_HIGH_R { - pub(crate) fn new(bits: bool) -> Self { - GPIO21_EDGE_HIGH_R(crate::FieldReader::new(bits)) - } -} -impl core::ops::Deref for GPIO21_EDGE_HIGH_R { - type Target = crate::FieldReader; - #[inline(always)] - fn deref(&self) -> &Self::Target { - &self.0 - } -} -#[doc = "Field `GPIO21_EDGE_LOW` reader - "] -pub struct GPIO21_EDGE_LOW_R(crate::FieldReader); -impl GPIO21_EDGE_LOW_R { - pub(crate) fn new(bits: bool) -> Self { - GPIO21_EDGE_LOW_R(crate::FieldReader::new(bits)) - } -} -impl core::ops::Deref for GPIO21_EDGE_LOW_R { - type Target = crate::FieldReader; - #[inline(always)] - fn deref(&self) -> &Self::Target { - &self.0 - } -} -#[doc = "Field `GPIO21_LEVEL_HIGH` reader - "] -pub struct GPIO21_LEVEL_HIGH_R(crate::FieldReader); -impl GPIO21_LEVEL_HIGH_R { - pub(crate) fn new(bits: bool) -> Self { - GPIO21_LEVEL_HIGH_R(crate::FieldReader::new(bits)) - } -} -impl core::ops::Deref for GPIO21_LEVEL_HIGH_R { - type Target = crate::FieldReader; - #[inline(always)] - fn deref(&self) -> &Self::Target { - &self.0 - } -} -#[doc = "Field `GPIO21_LEVEL_LOW` reader - "] -pub struct GPIO21_LEVEL_LOW_R(crate::FieldReader); -impl GPIO21_LEVEL_LOW_R { - pub(crate) fn new(bits: bool) -> Self { - GPIO21_LEVEL_LOW_R(crate::FieldReader::new(bits)) - } -} -impl core::ops::Deref for GPIO21_LEVEL_LOW_R { - type Target = crate::FieldReader; - #[inline(always)] - fn deref(&self) -> &Self::Target { - &self.0 - } -} -#[doc = "Field `GPIO20_EDGE_HIGH` reader - "] -pub struct GPIO20_EDGE_HIGH_R(crate::FieldReader); -impl GPIO20_EDGE_HIGH_R { - pub(crate) fn new(bits: bool) -> Self { - GPIO20_EDGE_HIGH_R(crate::FieldReader::new(bits)) - } -} -impl core::ops::Deref for GPIO20_EDGE_HIGH_R { - type Target = crate::FieldReader; - #[inline(always)] - fn deref(&self) -> &Self::Target { - &self.0 - } -} -#[doc = "Field `GPIO20_EDGE_LOW` reader - "] -pub struct GPIO20_EDGE_LOW_R(crate::FieldReader); -impl GPIO20_EDGE_LOW_R { - pub(crate) fn new(bits: bool) -> Self { - GPIO20_EDGE_LOW_R(crate::FieldReader::new(bits)) - } -} -impl core::ops::Deref for GPIO20_EDGE_LOW_R { - type Target = crate::FieldReader; - #[inline(always)] - fn deref(&self) -> &Self::Target { - &self.0 - } -} -#[doc = "Field `GPIO20_LEVEL_HIGH` reader - "] -pub struct GPIO20_LEVEL_HIGH_R(crate::FieldReader); -impl GPIO20_LEVEL_HIGH_R { - pub(crate) fn new(bits: bool) -> Self { - GPIO20_LEVEL_HIGH_R(crate::FieldReader::new(bits)) - } -} -impl core::ops::Deref for GPIO20_LEVEL_HIGH_R { - type Target = crate::FieldReader; - #[inline(always)] - fn deref(&self) -> &Self::Target { - &self.0 - } -} -#[doc = "Field `GPIO20_LEVEL_LOW` reader - "] -pub struct GPIO20_LEVEL_LOW_R(crate::FieldReader); -impl GPIO20_LEVEL_LOW_R { - pub(crate) fn new(bits: bool) -> Self { - GPIO20_LEVEL_LOW_R(crate::FieldReader::new(bits)) - } -} -impl core::ops::Deref for GPIO20_LEVEL_LOW_R { - type Target = crate::FieldReader; - #[inline(always)] - fn deref(&self) -> &Self::Target { - &self.0 - } -} -#[doc = "Field `GPIO19_EDGE_HIGH` reader - "] -pub struct GPIO19_EDGE_HIGH_R(crate::FieldReader); -impl GPIO19_EDGE_HIGH_R { - pub(crate) fn new(bits: bool) -> Self { - GPIO19_EDGE_HIGH_R(crate::FieldReader::new(bits)) - } -} -impl core::ops::Deref for GPIO19_EDGE_HIGH_R { - type Target = crate::FieldReader; - #[inline(always)] - fn deref(&self) -> &Self::Target { - &self.0 - } -} -#[doc = "Field `GPIO19_EDGE_LOW` reader - "] -pub struct GPIO19_EDGE_LOW_R(crate::FieldReader); -impl GPIO19_EDGE_LOW_R { - pub(crate) fn new(bits: bool) -> Self { - GPIO19_EDGE_LOW_R(crate::FieldReader::new(bits)) - } -} -impl core::ops::Deref for GPIO19_EDGE_LOW_R { - type Target = crate::FieldReader; - #[inline(always)] - fn deref(&self) -> &Self::Target { - &self.0 - } -} -#[doc = "Field `GPIO19_LEVEL_HIGH` reader - "] -pub struct GPIO19_LEVEL_HIGH_R(crate::FieldReader); -impl GPIO19_LEVEL_HIGH_R { - pub(crate) fn new(bits: bool) -> Self { - GPIO19_LEVEL_HIGH_R(crate::FieldReader::new(bits)) - } -} -impl core::ops::Deref for GPIO19_LEVEL_HIGH_R { - type Target = crate::FieldReader; - #[inline(always)] - fn deref(&self) -> &Self::Target { - &self.0 - } -} -#[doc = "Field `GPIO19_LEVEL_LOW` reader - "] -pub struct GPIO19_LEVEL_LOW_R(crate::FieldReader); -impl GPIO19_LEVEL_LOW_R { - pub(crate) fn new(bits: bool) -> Self { - GPIO19_LEVEL_LOW_R(crate::FieldReader::new(bits)) - } -} -impl core::ops::Deref for GPIO19_LEVEL_LOW_R { - type Target = crate::FieldReader; - #[inline(always)] - fn deref(&self) -> &Self::Target { - &self.0 - } -} -#[doc = "Field `GPIO18_EDGE_HIGH` reader - "] -pub struct GPIO18_EDGE_HIGH_R(crate::FieldReader); -impl GPIO18_EDGE_HIGH_R { - pub(crate) fn new(bits: bool) -> Self { - GPIO18_EDGE_HIGH_R(crate::FieldReader::new(bits)) - } -} -impl core::ops::Deref for GPIO18_EDGE_HIGH_R { - type Target = crate::FieldReader; - #[inline(always)] - fn deref(&self) -> &Self::Target { - &self.0 - } -} -#[doc = "Field `GPIO18_EDGE_LOW` reader - "] -pub struct GPIO18_EDGE_LOW_R(crate::FieldReader); -impl GPIO18_EDGE_LOW_R { - pub(crate) fn new(bits: bool) -> Self { - GPIO18_EDGE_LOW_R(crate::FieldReader::new(bits)) - } -} -impl core::ops::Deref for GPIO18_EDGE_LOW_R { - type Target = crate::FieldReader; - #[inline(always)] - fn deref(&self) -> &Self::Target { - &self.0 - } -} -#[doc = "Field `GPIO18_LEVEL_HIGH` reader - "] -pub struct GPIO18_LEVEL_HIGH_R(crate::FieldReader); -impl GPIO18_LEVEL_HIGH_R { - pub(crate) fn new(bits: bool) -> Self { - GPIO18_LEVEL_HIGH_R(crate::FieldReader::new(bits)) - } -} -impl core::ops::Deref for GPIO18_LEVEL_HIGH_R { - type Target = crate::FieldReader; - #[inline(always)] - fn deref(&self) -> &Self::Target { - &self.0 - } -} -#[doc = "Field `GPIO18_LEVEL_LOW` reader - "] -pub struct GPIO18_LEVEL_LOW_R(crate::FieldReader); -impl GPIO18_LEVEL_LOW_R { - pub(crate) fn new(bits: bool) -> Self { - GPIO18_LEVEL_LOW_R(crate::FieldReader::new(bits)) - } -} -impl core::ops::Deref for GPIO18_LEVEL_LOW_R { - type Target = crate::FieldReader; - #[inline(always)] - fn deref(&self) -> &Self::Target { - &self.0 - } -} -#[doc = "Field `GPIO17_EDGE_HIGH` reader - "] -pub struct GPIO17_EDGE_HIGH_R(crate::FieldReader); -impl GPIO17_EDGE_HIGH_R { - pub(crate) fn new(bits: bool) -> Self { - GPIO17_EDGE_HIGH_R(crate::FieldReader::new(bits)) - } -} -impl core::ops::Deref for GPIO17_EDGE_HIGH_R { - type Target = crate::FieldReader; - #[inline(always)] - fn deref(&self) -> &Self::Target { - &self.0 - } -} -#[doc = "Field `GPIO17_EDGE_LOW` reader - "] -pub struct GPIO17_EDGE_LOW_R(crate::FieldReader); -impl GPIO17_EDGE_LOW_R { - pub(crate) fn new(bits: bool) -> Self { - GPIO17_EDGE_LOW_R(crate::FieldReader::new(bits)) - } -} -impl core::ops::Deref for GPIO17_EDGE_LOW_R { - type Target = crate::FieldReader; - #[inline(always)] - fn deref(&self) -> &Self::Target { - &self.0 - } -} -#[doc = "Field `GPIO17_LEVEL_HIGH` reader - "] -pub struct GPIO17_LEVEL_HIGH_R(crate::FieldReader); -impl GPIO17_LEVEL_HIGH_R { - pub(crate) fn new(bits: bool) -> Self { - GPIO17_LEVEL_HIGH_R(crate::FieldReader::new(bits)) - } -} -impl core::ops::Deref for GPIO17_LEVEL_HIGH_R { - type Target = crate::FieldReader; - #[inline(always)] - fn deref(&self) -> &Self::Target { - &self.0 - } -} -#[doc = "Field `GPIO17_LEVEL_LOW` reader - "] -pub struct GPIO17_LEVEL_LOW_R(crate::FieldReader); -impl GPIO17_LEVEL_LOW_R { - pub(crate) fn new(bits: bool) -> Self { - GPIO17_LEVEL_LOW_R(crate::FieldReader::new(bits)) - } -} -impl core::ops::Deref for GPIO17_LEVEL_LOW_R { - type Target = crate::FieldReader; - #[inline(always)] - fn deref(&self) -> &Self::Target { - &self.0 - } -} -#[doc = "Field `GPIO16_EDGE_HIGH` reader - "] -pub struct GPIO16_EDGE_HIGH_R(crate::FieldReader); -impl GPIO16_EDGE_HIGH_R { - pub(crate) fn new(bits: bool) -> Self { - GPIO16_EDGE_HIGH_R(crate::FieldReader::new(bits)) - } -} -impl core::ops::Deref for GPIO16_EDGE_HIGH_R { - type Target = crate::FieldReader; - #[inline(always)] - fn deref(&self) -> &Self::Target { - &self.0 - } -} -#[doc = "Field `GPIO16_EDGE_LOW` reader - "] -pub struct GPIO16_EDGE_LOW_R(crate::FieldReader); -impl GPIO16_EDGE_LOW_R { - pub(crate) fn new(bits: bool) -> Self { - GPIO16_EDGE_LOW_R(crate::FieldReader::new(bits)) - } -} -impl core::ops::Deref for GPIO16_EDGE_LOW_R { - type Target = crate::FieldReader; - #[inline(always)] - fn deref(&self) -> &Self::Target { - &self.0 - } -} -#[doc = "Field `GPIO16_LEVEL_HIGH` reader - "] -pub struct GPIO16_LEVEL_HIGH_R(crate::FieldReader); -impl GPIO16_LEVEL_HIGH_R { - pub(crate) fn new(bits: bool) -> Self { - GPIO16_LEVEL_HIGH_R(crate::FieldReader::new(bits)) - } -} -impl core::ops::Deref for GPIO16_LEVEL_HIGH_R { - type Target = crate::FieldReader; - #[inline(always)] - fn deref(&self) -> &Self::Target { - &self.0 - } -} -#[doc = "Field `GPIO16_LEVEL_LOW` reader - "] -pub struct GPIO16_LEVEL_LOW_R(crate::FieldReader); -impl GPIO16_LEVEL_LOW_R { - pub(crate) fn new(bits: bool) -> Self { - GPIO16_LEVEL_LOW_R(crate::FieldReader::new(bits)) - } -} -impl core::ops::Deref for GPIO16_LEVEL_LOW_R { - type Target = crate::FieldReader; - #[inline(always)] - fn deref(&self) -> &Self::Target { - &self.0 - } -} -impl R { - #[doc = "Bit 31"] - #[inline(always)] - pub fn gpio23_edge_high(&self) -> GPIO23_EDGE_HIGH_R { - GPIO23_EDGE_HIGH_R::new(((self.bits >> 31) & 0x01) != 0) - } - #[doc = "Bit 30"] - #[inline(always)] - pub fn gpio23_edge_low(&self) -> GPIO23_EDGE_LOW_R { - GPIO23_EDGE_LOW_R::new(((self.bits >> 30) & 0x01) != 0) - } - #[doc = "Bit 29"] - #[inline(always)] - pub fn gpio23_level_high(&self) -> GPIO23_LEVEL_HIGH_R { - GPIO23_LEVEL_HIGH_R::new(((self.bits >> 29) & 0x01) != 0) - } - #[doc = "Bit 28"] - #[inline(always)] - pub fn gpio23_level_low(&self) -> GPIO23_LEVEL_LOW_R { - GPIO23_LEVEL_LOW_R::new(((self.bits >> 28) & 0x01) != 0) - } - #[doc = "Bit 27"] - #[inline(always)] - pub fn gpio22_edge_high(&self) -> GPIO22_EDGE_HIGH_R { - GPIO22_EDGE_HIGH_R::new(((self.bits >> 27) & 0x01) != 0) - } - #[doc = "Bit 26"] - #[inline(always)] - pub fn gpio22_edge_low(&self) -> GPIO22_EDGE_LOW_R { - GPIO22_EDGE_LOW_R::new(((self.bits >> 26) & 0x01) != 0) - } - #[doc = "Bit 25"] - #[inline(always)] - pub fn gpio22_level_high(&self) -> GPIO22_LEVEL_HIGH_R { - GPIO22_LEVEL_HIGH_R::new(((self.bits >> 25) & 0x01) != 0) - } - #[doc = "Bit 24"] - #[inline(always)] - pub fn gpio22_level_low(&self) -> GPIO22_LEVEL_LOW_R { - GPIO22_LEVEL_LOW_R::new(((self.bits >> 24) & 0x01) != 0) - } - #[doc = "Bit 23"] - #[inline(always)] - pub fn gpio21_edge_high(&self) -> GPIO21_EDGE_HIGH_R { - GPIO21_EDGE_HIGH_R::new(((self.bits >> 23) & 0x01) != 0) - } - #[doc = "Bit 22"] - #[inline(always)] - pub fn gpio21_edge_low(&self) -> GPIO21_EDGE_LOW_R { - GPIO21_EDGE_LOW_R::new(((self.bits >> 22) & 0x01) != 0) - } - #[doc = "Bit 21"] - #[inline(always)] - pub fn gpio21_level_high(&self) -> GPIO21_LEVEL_HIGH_R { - GPIO21_LEVEL_HIGH_R::new(((self.bits >> 21) & 0x01) != 0) - } - #[doc = "Bit 20"] - #[inline(always)] - pub fn gpio21_level_low(&self) -> GPIO21_LEVEL_LOW_R { - GPIO21_LEVEL_LOW_R::new(((self.bits >> 20) & 0x01) != 0) - } - #[doc = "Bit 19"] - #[inline(always)] - pub fn gpio20_edge_high(&self) -> GPIO20_EDGE_HIGH_R { - GPIO20_EDGE_HIGH_R::new(((self.bits >> 19) & 0x01) != 0) - } - #[doc = "Bit 18"] - #[inline(always)] - pub fn gpio20_edge_low(&self) -> GPIO20_EDGE_LOW_R { - GPIO20_EDGE_LOW_R::new(((self.bits >> 18) & 0x01) != 0) - } - #[doc = "Bit 17"] - #[inline(always)] - pub fn gpio20_level_high(&self) -> GPIO20_LEVEL_HIGH_R { - GPIO20_LEVEL_HIGH_R::new(((self.bits >> 17) & 0x01) != 0) - } - #[doc = "Bit 16"] - #[inline(always)] - pub fn gpio20_level_low(&self) -> GPIO20_LEVEL_LOW_R { - GPIO20_LEVEL_LOW_R::new(((self.bits >> 16) & 0x01) != 0) - } - #[doc = "Bit 15"] - #[inline(always)] - pub fn gpio19_edge_high(&self) -> GPIO19_EDGE_HIGH_R { - GPIO19_EDGE_HIGH_R::new(((self.bits >> 15) & 0x01) != 0) - } - #[doc = "Bit 14"] - #[inline(always)] - pub fn gpio19_edge_low(&self) -> GPIO19_EDGE_LOW_R { - GPIO19_EDGE_LOW_R::new(((self.bits >> 14) & 0x01) != 0) - } - #[doc = "Bit 13"] - #[inline(always)] - pub fn gpio19_level_high(&self) -> GPIO19_LEVEL_HIGH_R { - GPIO19_LEVEL_HIGH_R::new(((self.bits >> 13) & 0x01) != 0) - } - #[doc = "Bit 12"] - #[inline(always)] - pub fn gpio19_level_low(&self) -> GPIO19_LEVEL_LOW_R { - GPIO19_LEVEL_LOW_R::new(((self.bits >> 12) & 0x01) != 0) - } - #[doc = "Bit 11"] - #[inline(always)] - pub fn gpio18_edge_high(&self) -> GPIO18_EDGE_HIGH_R { - GPIO18_EDGE_HIGH_R::new(((self.bits >> 11) & 0x01) != 0) - } - #[doc = "Bit 10"] - #[inline(always)] - pub fn gpio18_edge_low(&self) -> GPIO18_EDGE_LOW_R { - GPIO18_EDGE_LOW_R::new(((self.bits >> 10) & 0x01) != 0) - } - #[doc = "Bit 9"] - #[inline(always)] - pub fn gpio18_level_high(&self) -> GPIO18_LEVEL_HIGH_R { - GPIO18_LEVEL_HIGH_R::new(((self.bits >> 9) & 0x01) != 0) - } - #[doc = "Bit 8"] - #[inline(always)] - pub fn gpio18_level_low(&self) -> GPIO18_LEVEL_LOW_R { - GPIO18_LEVEL_LOW_R::new(((self.bits >> 8) & 0x01) != 0) - } - #[doc = "Bit 7"] - #[inline(always)] - pub fn gpio17_edge_high(&self) -> GPIO17_EDGE_HIGH_R { - GPIO17_EDGE_HIGH_R::new(((self.bits >> 7) & 0x01) != 0) - } - #[doc = "Bit 6"] - #[inline(always)] - pub fn gpio17_edge_low(&self) -> GPIO17_EDGE_LOW_R { - GPIO17_EDGE_LOW_R::new(((self.bits >> 6) & 0x01) != 0) - } - #[doc = "Bit 5"] - #[inline(always)] - pub fn gpio17_level_high(&self) -> GPIO17_LEVEL_HIGH_R { - GPIO17_LEVEL_HIGH_R::new(((self.bits >> 5) & 0x01) != 0) - } - #[doc = "Bit 4"] - #[inline(always)] - pub fn gpio17_level_low(&self) -> GPIO17_LEVEL_LOW_R { - GPIO17_LEVEL_LOW_R::new(((self.bits >> 4) & 0x01) != 0) - } - #[doc = "Bit 3"] - #[inline(always)] - pub fn gpio16_edge_high(&self) -> GPIO16_EDGE_HIGH_R { - GPIO16_EDGE_HIGH_R::new(((self.bits >> 3) & 0x01) != 0) - } - #[doc = "Bit 2"] - #[inline(always)] - pub fn gpio16_edge_low(&self) -> GPIO16_EDGE_LOW_R { - GPIO16_EDGE_LOW_R::new(((self.bits >> 2) & 0x01) != 0) - } - #[doc = "Bit 1"] - #[inline(always)] - pub fn gpio16_level_high(&self) -> GPIO16_LEVEL_HIGH_R { - GPIO16_LEVEL_HIGH_R::new(((self.bits >> 1) & 0x01) != 0) - } - #[doc = "Bit 0"] - #[inline(always)] - pub fn gpio16_level_low(&self) -> GPIO16_LEVEL_LOW_R { - GPIO16_LEVEL_LOW_R::new((self.bits & 0x01) != 0) - } -} -#[doc = "Interrupt status after masking & forcing for dormant_wake - -This register you can [`read`](crate::generic::Reg::read). See [API](https://docs.rs/svd2rust/#read--modify--write-api). - -For information about available fields see [dormant_wake_ints2](index.html) module"] -pub struct DORMANT_WAKE_INTS2_SPEC; -impl crate::RegisterSpec for DORMANT_WAKE_INTS2_SPEC { - type Ux = u32; -} -#[doc = "`read()` method returns [dormant_wake_ints2::R](R) reader structure"] -impl crate::Readable for DORMANT_WAKE_INTS2_SPEC { - type Reader = R; -} -#[doc = "`reset()` method sets DORMANT_WAKE_INTS2 to value 0"] -impl crate::Resettable for DORMANT_WAKE_INTS2_SPEC { - #[inline(always)] - fn reset_value() -> Self::Ux { - 0 - } -} diff --git a/src/io_bank0/dormant_wake_ints3.rs b/src/io_bank0/dormant_wake_ints3.rs deleted file mode 100644 index d6e0bd5cb..000000000 --- a/src/io_bank0/dormant_wake_ints3.rs +++ /dev/null @@ -1,493 +0,0 @@ -#[doc = "Register `DORMANT_WAKE_INTS3` reader"] -pub struct R(crate::R); -impl core::ops::Deref for R { - type Target = crate::R; - #[inline(always)] - fn deref(&self) -> &Self::Target { - &self.0 - } -} -impl From> for R { - #[inline(always)] - fn from(reader: crate::R) -> Self { - R(reader) - } -} -#[doc = "Field `GPIO29_EDGE_HIGH` reader - "] -pub struct GPIO29_EDGE_HIGH_R(crate::FieldReader); -impl GPIO29_EDGE_HIGH_R { - pub(crate) fn new(bits: bool) -> Self { - GPIO29_EDGE_HIGH_R(crate::FieldReader::new(bits)) - } -} -impl core::ops::Deref for GPIO29_EDGE_HIGH_R { - type Target = crate::FieldReader; - #[inline(always)] - fn deref(&self) -> &Self::Target { - &self.0 - } -} -#[doc = "Field `GPIO29_EDGE_LOW` reader - "] -pub struct GPIO29_EDGE_LOW_R(crate::FieldReader); -impl GPIO29_EDGE_LOW_R { - pub(crate) fn new(bits: bool) -> Self { - GPIO29_EDGE_LOW_R(crate::FieldReader::new(bits)) - } -} -impl core::ops::Deref for GPIO29_EDGE_LOW_R { - type Target = crate::FieldReader; - #[inline(always)] - fn deref(&self) -> &Self::Target { - &self.0 - } -} -#[doc = "Field `GPIO29_LEVEL_HIGH` reader - "] -pub struct GPIO29_LEVEL_HIGH_R(crate::FieldReader); -impl GPIO29_LEVEL_HIGH_R { - pub(crate) fn new(bits: bool) -> Self { - GPIO29_LEVEL_HIGH_R(crate::FieldReader::new(bits)) - } -} -impl core::ops::Deref for GPIO29_LEVEL_HIGH_R { - type Target = crate::FieldReader; - #[inline(always)] - fn deref(&self) -> &Self::Target { - &self.0 - } -} -#[doc = "Field `GPIO29_LEVEL_LOW` reader - "] -pub struct GPIO29_LEVEL_LOW_R(crate::FieldReader); -impl GPIO29_LEVEL_LOW_R { - pub(crate) fn new(bits: bool) -> Self { - GPIO29_LEVEL_LOW_R(crate::FieldReader::new(bits)) - } -} -impl core::ops::Deref for GPIO29_LEVEL_LOW_R { - type Target = crate::FieldReader; - #[inline(always)] - fn deref(&self) -> &Self::Target { - &self.0 - } -} -#[doc = "Field `GPIO28_EDGE_HIGH` reader - "] -pub struct GPIO28_EDGE_HIGH_R(crate::FieldReader); -impl GPIO28_EDGE_HIGH_R { - pub(crate) fn new(bits: bool) -> Self { - GPIO28_EDGE_HIGH_R(crate::FieldReader::new(bits)) - } -} -impl core::ops::Deref for GPIO28_EDGE_HIGH_R { - type Target = crate::FieldReader; - #[inline(always)] - fn deref(&self) -> &Self::Target { - &self.0 - } -} -#[doc = "Field `GPIO28_EDGE_LOW` reader - "] -pub struct GPIO28_EDGE_LOW_R(crate::FieldReader); -impl GPIO28_EDGE_LOW_R { - pub(crate) fn new(bits: bool) -> Self { - GPIO28_EDGE_LOW_R(crate::FieldReader::new(bits)) - } -} -impl core::ops::Deref for GPIO28_EDGE_LOW_R { - type Target = crate::FieldReader; - #[inline(always)] - fn deref(&self) -> &Self::Target { - &self.0 - } -} -#[doc = "Field `GPIO28_LEVEL_HIGH` reader - "] -pub struct GPIO28_LEVEL_HIGH_R(crate::FieldReader); -impl GPIO28_LEVEL_HIGH_R { - pub(crate) fn new(bits: bool) -> Self { - GPIO28_LEVEL_HIGH_R(crate::FieldReader::new(bits)) - } -} -impl core::ops::Deref for GPIO28_LEVEL_HIGH_R { - type Target = crate::FieldReader; - #[inline(always)] - fn deref(&self) -> &Self::Target { - &self.0 - } -} -#[doc = "Field `GPIO28_LEVEL_LOW` reader - "] -pub struct GPIO28_LEVEL_LOW_R(crate::FieldReader); -impl GPIO28_LEVEL_LOW_R { - pub(crate) fn new(bits: bool) -> Self { - GPIO28_LEVEL_LOW_R(crate::FieldReader::new(bits)) - } -} -impl core::ops::Deref for GPIO28_LEVEL_LOW_R { - type Target = crate::FieldReader; - #[inline(always)] - fn deref(&self) -> &Self::Target { - &self.0 - } -} -#[doc = "Field `GPIO27_EDGE_HIGH` reader - "] -pub struct GPIO27_EDGE_HIGH_R(crate::FieldReader); -impl GPIO27_EDGE_HIGH_R { - pub(crate) fn new(bits: bool) -> Self { - GPIO27_EDGE_HIGH_R(crate::FieldReader::new(bits)) - } -} -impl core::ops::Deref for GPIO27_EDGE_HIGH_R { - type Target = crate::FieldReader; - #[inline(always)] - fn deref(&self) -> &Self::Target { - &self.0 - } -} -#[doc = "Field `GPIO27_EDGE_LOW` reader - "] -pub struct GPIO27_EDGE_LOW_R(crate::FieldReader); -impl GPIO27_EDGE_LOW_R { - pub(crate) fn new(bits: bool) -> Self { - GPIO27_EDGE_LOW_R(crate::FieldReader::new(bits)) - } -} -impl core::ops::Deref for GPIO27_EDGE_LOW_R { - type Target = crate::FieldReader; - #[inline(always)] - fn deref(&self) -> &Self::Target { - &self.0 - } -} -#[doc = "Field `GPIO27_LEVEL_HIGH` reader - "] -pub struct GPIO27_LEVEL_HIGH_R(crate::FieldReader); -impl GPIO27_LEVEL_HIGH_R { - pub(crate) fn new(bits: bool) -> Self { - GPIO27_LEVEL_HIGH_R(crate::FieldReader::new(bits)) - } -} -impl core::ops::Deref for GPIO27_LEVEL_HIGH_R { - type Target = crate::FieldReader; - #[inline(always)] - fn deref(&self) -> &Self::Target { - &self.0 - } -} -#[doc = "Field `GPIO27_LEVEL_LOW` reader - "] -pub struct GPIO27_LEVEL_LOW_R(crate::FieldReader); -impl GPIO27_LEVEL_LOW_R { - pub(crate) fn new(bits: bool) -> Self { - GPIO27_LEVEL_LOW_R(crate::FieldReader::new(bits)) - } -} -impl core::ops::Deref for GPIO27_LEVEL_LOW_R { - type Target = crate::FieldReader; - #[inline(always)] - fn deref(&self) -> &Self::Target { - &self.0 - } -} -#[doc = "Field `GPIO26_EDGE_HIGH` reader - "] -pub struct GPIO26_EDGE_HIGH_R(crate::FieldReader); -impl GPIO26_EDGE_HIGH_R { - pub(crate) fn new(bits: bool) -> Self { - GPIO26_EDGE_HIGH_R(crate::FieldReader::new(bits)) - } -} -impl core::ops::Deref for GPIO26_EDGE_HIGH_R { - type Target = crate::FieldReader; - #[inline(always)] - fn deref(&self) -> &Self::Target { - &self.0 - } -} -#[doc = "Field `GPIO26_EDGE_LOW` reader - "] -pub struct GPIO26_EDGE_LOW_R(crate::FieldReader); -impl GPIO26_EDGE_LOW_R { - pub(crate) fn new(bits: bool) -> Self { - GPIO26_EDGE_LOW_R(crate::FieldReader::new(bits)) - } -} -impl core::ops::Deref for GPIO26_EDGE_LOW_R { - type Target = crate::FieldReader; - #[inline(always)] - fn deref(&self) -> &Self::Target { - &self.0 - } -} -#[doc = "Field `GPIO26_LEVEL_HIGH` reader - "] -pub struct GPIO26_LEVEL_HIGH_R(crate::FieldReader); -impl GPIO26_LEVEL_HIGH_R { - pub(crate) fn new(bits: bool) -> Self { - GPIO26_LEVEL_HIGH_R(crate::FieldReader::new(bits)) - } -} -impl core::ops::Deref for GPIO26_LEVEL_HIGH_R { - type Target = crate::FieldReader; - #[inline(always)] - fn deref(&self) -> &Self::Target { - &self.0 - } -} -#[doc = "Field `GPIO26_LEVEL_LOW` reader - "] -pub struct GPIO26_LEVEL_LOW_R(crate::FieldReader); -impl GPIO26_LEVEL_LOW_R { - pub(crate) fn new(bits: bool) -> Self { - GPIO26_LEVEL_LOW_R(crate::FieldReader::new(bits)) - } -} -impl core::ops::Deref for GPIO26_LEVEL_LOW_R { - type Target = crate::FieldReader; - #[inline(always)] - fn deref(&self) -> &Self::Target { - &self.0 - } -} -#[doc = "Field `GPIO25_EDGE_HIGH` reader - "] -pub struct GPIO25_EDGE_HIGH_R(crate::FieldReader); -impl GPIO25_EDGE_HIGH_R { - pub(crate) fn new(bits: bool) -> Self { - GPIO25_EDGE_HIGH_R(crate::FieldReader::new(bits)) - } -} -impl core::ops::Deref for GPIO25_EDGE_HIGH_R { - type Target = crate::FieldReader; - #[inline(always)] - fn deref(&self) -> &Self::Target { - &self.0 - } -} -#[doc = "Field `GPIO25_EDGE_LOW` reader - "] -pub struct GPIO25_EDGE_LOW_R(crate::FieldReader); -impl GPIO25_EDGE_LOW_R { - pub(crate) fn new(bits: bool) -> Self { - GPIO25_EDGE_LOW_R(crate::FieldReader::new(bits)) - } -} -impl core::ops::Deref for GPIO25_EDGE_LOW_R { - type Target = crate::FieldReader; - #[inline(always)] - fn deref(&self) -> &Self::Target { - &self.0 - } -} -#[doc = "Field `GPIO25_LEVEL_HIGH` reader - "] -pub struct GPIO25_LEVEL_HIGH_R(crate::FieldReader); -impl GPIO25_LEVEL_HIGH_R { - pub(crate) fn new(bits: bool) -> Self { - GPIO25_LEVEL_HIGH_R(crate::FieldReader::new(bits)) - } -} -impl core::ops::Deref for GPIO25_LEVEL_HIGH_R { - type Target = crate::FieldReader; - #[inline(always)] - fn deref(&self) -> &Self::Target { - &self.0 - } -} -#[doc = "Field `GPIO25_LEVEL_LOW` reader - "] -pub struct GPIO25_LEVEL_LOW_R(crate::FieldReader); -impl GPIO25_LEVEL_LOW_R { - pub(crate) fn new(bits: bool) -> Self { - GPIO25_LEVEL_LOW_R(crate::FieldReader::new(bits)) - } -} -impl core::ops::Deref for GPIO25_LEVEL_LOW_R { - type Target = crate::FieldReader; - #[inline(always)] - fn deref(&self) -> &Self::Target { - &self.0 - } -} -#[doc = "Field `GPIO24_EDGE_HIGH` reader - "] -pub struct GPIO24_EDGE_HIGH_R(crate::FieldReader); -impl GPIO24_EDGE_HIGH_R { - pub(crate) fn new(bits: bool) -> Self { - GPIO24_EDGE_HIGH_R(crate::FieldReader::new(bits)) - } -} -impl core::ops::Deref for GPIO24_EDGE_HIGH_R { - type Target = crate::FieldReader; - #[inline(always)] - fn deref(&self) -> &Self::Target { - &self.0 - } -} -#[doc = "Field `GPIO24_EDGE_LOW` reader - "] -pub struct GPIO24_EDGE_LOW_R(crate::FieldReader); -impl GPIO24_EDGE_LOW_R { - pub(crate) fn new(bits: bool) -> Self { - GPIO24_EDGE_LOW_R(crate::FieldReader::new(bits)) - } -} -impl core::ops::Deref for GPIO24_EDGE_LOW_R { - type Target = crate::FieldReader; - #[inline(always)] - fn deref(&self) -> &Self::Target { - &self.0 - } -} -#[doc = "Field `GPIO24_LEVEL_HIGH` reader - "] -pub struct GPIO24_LEVEL_HIGH_R(crate::FieldReader); -impl GPIO24_LEVEL_HIGH_R { - pub(crate) fn new(bits: bool) -> Self { - GPIO24_LEVEL_HIGH_R(crate::FieldReader::new(bits)) - } -} -impl core::ops::Deref for GPIO24_LEVEL_HIGH_R { - type Target = crate::FieldReader; - #[inline(always)] - fn deref(&self) -> &Self::Target { - &self.0 - } -} -#[doc = "Field `GPIO24_LEVEL_LOW` reader - "] -pub struct GPIO24_LEVEL_LOW_R(crate::FieldReader); -impl GPIO24_LEVEL_LOW_R { - pub(crate) fn new(bits: bool) -> Self { - GPIO24_LEVEL_LOW_R(crate::FieldReader::new(bits)) - } -} -impl core::ops::Deref for GPIO24_LEVEL_LOW_R { - type Target = crate::FieldReader; - #[inline(always)] - fn deref(&self) -> &Self::Target { - &self.0 - } -} -impl R { - #[doc = "Bit 23"] - #[inline(always)] - pub fn gpio29_edge_high(&self) -> GPIO29_EDGE_HIGH_R { - GPIO29_EDGE_HIGH_R::new(((self.bits >> 23) & 0x01) != 0) - } - #[doc = "Bit 22"] - #[inline(always)] - pub fn gpio29_edge_low(&self) -> GPIO29_EDGE_LOW_R { - GPIO29_EDGE_LOW_R::new(((self.bits >> 22) & 0x01) != 0) - } - #[doc = "Bit 21"] - #[inline(always)] - pub fn gpio29_level_high(&self) -> GPIO29_LEVEL_HIGH_R { - GPIO29_LEVEL_HIGH_R::new(((self.bits >> 21) & 0x01) != 0) - } - #[doc = "Bit 20"] - #[inline(always)] - pub fn gpio29_level_low(&self) -> GPIO29_LEVEL_LOW_R { - GPIO29_LEVEL_LOW_R::new(((self.bits >> 20) & 0x01) != 0) - } - #[doc = "Bit 19"] - #[inline(always)] - pub fn gpio28_edge_high(&self) -> GPIO28_EDGE_HIGH_R { - GPIO28_EDGE_HIGH_R::new(((self.bits >> 19) & 0x01) != 0) - } - #[doc = "Bit 18"] - #[inline(always)] - pub fn gpio28_edge_low(&self) -> GPIO28_EDGE_LOW_R { - GPIO28_EDGE_LOW_R::new(((self.bits >> 18) & 0x01) != 0) - } - #[doc = "Bit 17"] - #[inline(always)] - pub fn gpio28_level_high(&self) -> GPIO28_LEVEL_HIGH_R { - GPIO28_LEVEL_HIGH_R::new(((self.bits >> 17) & 0x01) != 0) - } - #[doc = "Bit 16"] - #[inline(always)] - pub fn gpio28_level_low(&self) -> GPIO28_LEVEL_LOW_R { - GPIO28_LEVEL_LOW_R::new(((self.bits >> 16) & 0x01) != 0) - } - #[doc = "Bit 15"] - #[inline(always)] - pub fn gpio27_edge_high(&self) -> GPIO27_EDGE_HIGH_R { - GPIO27_EDGE_HIGH_R::new(((self.bits >> 15) & 0x01) != 0) - } - #[doc = "Bit 14"] - #[inline(always)] - pub fn gpio27_edge_low(&self) -> GPIO27_EDGE_LOW_R { - GPIO27_EDGE_LOW_R::new(((self.bits >> 14) & 0x01) != 0) - } - #[doc = "Bit 13"] - #[inline(always)] - pub fn gpio27_level_high(&self) -> GPIO27_LEVEL_HIGH_R { - GPIO27_LEVEL_HIGH_R::new(((self.bits >> 13) & 0x01) != 0) - } - #[doc = "Bit 12"] - #[inline(always)] - pub fn gpio27_level_low(&self) -> GPIO27_LEVEL_LOW_R { - GPIO27_LEVEL_LOW_R::new(((self.bits >> 12) & 0x01) != 0) - } - #[doc = "Bit 11"] - #[inline(always)] - pub fn gpio26_edge_high(&self) -> GPIO26_EDGE_HIGH_R { - GPIO26_EDGE_HIGH_R::new(((self.bits >> 11) & 0x01) != 0) - } - #[doc = "Bit 10"] - #[inline(always)] - pub fn gpio26_edge_low(&self) -> GPIO26_EDGE_LOW_R { - GPIO26_EDGE_LOW_R::new(((self.bits >> 10) & 0x01) != 0) - } - #[doc = "Bit 9"] - #[inline(always)] - pub fn gpio26_level_high(&self) -> GPIO26_LEVEL_HIGH_R { - GPIO26_LEVEL_HIGH_R::new(((self.bits >> 9) & 0x01) != 0) - } - #[doc = "Bit 8"] - #[inline(always)] - pub fn gpio26_level_low(&self) -> GPIO26_LEVEL_LOW_R { - GPIO26_LEVEL_LOW_R::new(((self.bits >> 8) & 0x01) != 0) - } - #[doc = "Bit 7"] - #[inline(always)] - pub fn gpio25_edge_high(&self) -> GPIO25_EDGE_HIGH_R { - GPIO25_EDGE_HIGH_R::new(((self.bits >> 7) & 0x01) != 0) - } - #[doc = "Bit 6"] - #[inline(always)] - pub fn gpio25_edge_low(&self) -> GPIO25_EDGE_LOW_R { - GPIO25_EDGE_LOW_R::new(((self.bits >> 6) & 0x01) != 0) - } - #[doc = "Bit 5"] - #[inline(always)] - pub fn gpio25_level_high(&self) -> GPIO25_LEVEL_HIGH_R { - GPIO25_LEVEL_HIGH_R::new(((self.bits >> 5) & 0x01) != 0) - } - #[doc = "Bit 4"] - #[inline(always)] - pub fn gpio25_level_low(&self) -> GPIO25_LEVEL_LOW_R { - GPIO25_LEVEL_LOW_R::new(((self.bits >> 4) & 0x01) != 0) - } - #[doc = "Bit 3"] - #[inline(always)] - pub fn gpio24_edge_high(&self) -> GPIO24_EDGE_HIGH_R { - GPIO24_EDGE_HIGH_R::new(((self.bits >> 3) & 0x01) != 0) - } - #[doc = "Bit 2"] - #[inline(always)] - pub fn gpio24_edge_low(&self) -> GPIO24_EDGE_LOW_R { - GPIO24_EDGE_LOW_R::new(((self.bits >> 2) & 0x01) != 0) - } - #[doc = "Bit 1"] - #[inline(always)] - pub fn gpio24_level_high(&self) -> GPIO24_LEVEL_HIGH_R { - GPIO24_LEVEL_HIGH_R::new(((self.bits >> 1) & 0x01) != 0) - } - #[doc = "Bit 0"] - #[inline(always)] - pub fn gpio24_level_low(&self) -> GPIO24_LEVEL_LOW_R { - GPIO24_LEVEL_LOW_R::new((self.bits & 0x01) != 0) - } -} -#[doc = "Interrupt status after masking & forcing for dormant_wake - -This register you can [`read`](crate::generic::Reg::read). See [API](https://docs.rs/svd2rust/#read--modify--write-api). - -For information about available fields see [dormant_wake_ints3](index.html) module"] -pub struct DORMANT_WAKE_INTS3_SPEC; -impl crate::RegisterSpec for DORMANT_WAKE_INTS3_SPEC { - type Ux = u32; -} -#[doc = "`read()` method returns [dormant_wake_ints3::R](R) reader structure"] -impl crate::Readable for DORMANT_WAKE_INTS3_SPEC { - type Reader = R; -} -#[doc = "`reset()` method sets DORMANT_WAKE_INTS3 to value 0"] -impl crate::Resettable for DORMANT_WAKE_INTS3_SPEC { - #[inline(always)] - fn reset_value() -> Self::Ux { - 0 - } -}