#[doc = "Reader of register EEI"] pub type R = crate::R; #[doc = "Writer for register EEI"] pub type W = crate::W; #[doc = "Register EEI `reset()`'s with value 0"] impl crate::ResetValue for super::EEI { type Type = u32; #[inline(always)] fn reset_value() -> Self::Type { 0 } } #[doc = "Enable Error Interrupt 0\n\nValue on reset: 0"] #[derive(Clone, Copy, Debug, PartialEq)] pub enum EEI0_A { #[doc = "0: The error signal for corresponding channel does not generate an error interrupt"] _0 = 0, #[doc = "1: The assertion of the error signal for corresponding channel generates an error interrupt request"] _1 = 1, } impl From for bool { #[inline(always)] fn from(variant: EEI0_A) -> Self { variant as u8 != 0 } } #[doc = "Reader of field `EEI0`"] pub type EEI0_R = crate::R; impl EEI0_R { #[doc = r"Get enumerated values variant"] #[inline(always)] pub fn variant(&self) -> EEI0_A { match self.bits { false => EEI0_A::_0, true => EEI0_A::_1, } } #[doc = "Checks if the value of the field is `_0`"] #[inline(always)] pub fn is_0(&self) -> bool { *self == EEI0_A::_0 } #[doc = "Checks if the value of the field is `_1`"] #[inline(always)] pub fn is_1(&self) -> bool { *self == EEI0_A::_1 } } #[doc = "Write proxy for field `EEI0`"] pub struct EEI0_W<'a> { w: &'a mut W, } impl<'a> EEI0_W<'a> { #[doc = r"Writes `variant` to the field"] #[inline(always)] pub fn variant(self, variant: EEI0_A) -> &'a mut W { { self.bit(variant.into()) } } #[doc = "The error signal for corresponding channel does not generate an error interrupt"] #[inline(always)] pub fn _0(self) -> &'a mut W { self.variant(EEI0_A::_0) } #[doc = "The assertion of the error signal for corresponding channel generates an error interrupt request"] #[inline(always)] pub fn _1(self) -> &'a mut W { self.variant(EEI0_A::_1) } #[doc = r"Sets the field bit"] #[inline(always)] pub fn set_bit(self) -> &'a mut W { self.bit(true) } #[doc = r"Clears the field bit"] #[inline(always)] pub fn clear_bit(self) -> &'a mut W { self.bit(false) } #[doc = r"Writes raw bits to the field"] #[inline(always)] pub fn bit(self, value: bool) -> &'a mut W { self.w.bits = (self.w.bits & !0x01) | ((value as u32) & 0x01); self.w } } #[doc = "Enable Error Interrupt 1\n\nValue on reset: 0"] #[derive(Clone, Copy, Debug, PartialEq)] pub enum EEI1_A { #[doc = "0: The error signal for corresponding channel does not generate an error interrupt"] _0 = 0, #[doc = "1: The assertion of the error signal for corresponding channel generates an error interrupt request"] _1 = 1, } impl From for bool { #[inline(always)] fn from(variant: EEI1_A) -> Self { variant as u8 != 0 } } #[doc = "Reader of field `EEI1`"] pub type EEI1_R = crate::R; impl EEI1_R { #[doc = r"Get enumerated values variant"] #[inline(always)] pub fn variant(&self) -> EEI1_A { match self.bits { false => EEI1_A::_0, true => EEI1_A::_1, } } #[doc = "Checks if the value of the field is `_0`"] #[inline(always)] pub fn is_0(&self) -> bool { *self == EEI1_A::_0 } #[doc = "Checks if the value of the field is `_1`"] #[inline(always)] pub fn is_1(&self) -> bool { *self == EEI1_A::_1 } } #[doc = "Write proxy for field `EEI1`"] pub struct EEI1_W<'a> { w: &'a mut W, } impl<'a> EEI1_W<'a> { #[doc = r"Writes `variant` to the field"] #[inline(always)] pub fn variant(self, variant: EEI1_A) -> &'a mut W { { self.bit(variant.into()) } } #[doc = "The error signal for corresponding channel does not generate an error interrupt"] #[inline(always)] pub fn _0(self) -> &'a mut W { self.variant(EEI1_A::_0) } #[doc = "The assertion of the error signal for corresponding channel generates an error interrupt request"] #[inline(always)] pub fn _1(self) -> &'a mut W { self.variant(EEI1_A::_1) } #[doc = r"Sets the field bit"] #[inline(always)] pub fn set_bit(self) -> &'a mut W { self.bit(true) } #[doc = r"Clears the field bit"] #[inline(always)] pub fn clear_bit(self) -> &'a mut W { self.bit(false) } #[doc = r"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 = "Enable Error Interrupt 2\n\nValue on reset: 0"] #[derive(Clone, Copy, Debug, PartialEq)] pub enum EEI2_A { #[doc = "0: The error signal for corresponding channel does not generate an error interrupt"] _0 = 0, #[doc = "1: The assertion of the error signal for corresponding channel generates an error interrupt request"] _1 = 1, } impl From for bool { #[inline(always)] fn from(variant: EEI2_A) -> Self { variant as u8 != 0 } } #[doc = "Reader of field `EEI2`"] pub type EEI2_R = crate::R; impl EEI2_R { #[doc = r"Get enumerated values variant"] #[inline(always)] pub fn variant(&self) -> EEI2_A { match self.bits { false => EEI2_A::_0, true => EEI2_A::_1, } } #[doc = "Checks if the value of the field is `_0`"] #[inline(always)] pub fn is_0(&self) -> bool { *self == EEI2_A::_0 } #[doc = "Checks if the value of the field is `_1`"] #[inline(always)] pub fn is_1(&self) -> bool { *self == EEI2_A::_1 } } #[doc = "Write proxy for field `EEI2`"] pub struct EEI2_W<'a> { w: &'a mut W, } impl<'a> EEI2_W<'a> { #[doc = r"Writes `variant` to the field"] #[inline(always)] pub fn variant(self, variant: EEI2_A) -> &'a mut W { { self.bit(variant.into()) } } #[doc = "The error signal for corresponding channel does not generate an error interrupt"] #[inline(always)] pub fn _0(self) -> &'a mut W { self.variant(EEI2_A::_0) } #[doc = "The assertion of the error signal for corresponding channel generates an error interrupt request"] #[inline(always)] pub fn _1(self) -> &'a mut W { self.variant(EEI2_A::_1) } #[doc = r"Sets the field bit"] #[inline(always)] pub fn set_bit(self) -> &'a mut W { self.bit(true) } #[doc = r"Clears the field bit"] #[inline(always)] pub fn clear_bit(self) -> &'a mut W { self.bit(false) } #[doc = r"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 = "Enable Error Interrupt 3\n\nValue on reset: 0"] #[derive(Clone, Copy, Debug, PartialEq)] pub enum EEI3_A { #[doc = "0: The error signal for corresponding channel does not generate an error interrupt"] _0 = 0, #[doc = "1: The assertion of the error signal for corresponding channel generates an error interrupt request"] _1 = 1, } impl From for bool { #[inline(always)] fn from(variant: EEI3_A) -> Self { variant as u8 != 0 } } #[doc = "Reader of field `EEI3`"] pub type EEI3_R = crate::R; impl EEI3_R { #[doc = r"Get enumerated values variant"] #[inline(always)] pub fn variant(&self) -> EEI3_A { match self.bits { false => EEI3_A::_0, true => EEI3_A::_1, } } #[doc = "Checks if the value of the field is `_0`"] #[inline(always)] pub fn is_0(&self) -> bool { *self == EEI3_A::_0 } #[doc = "Checks if the value of the field is `_1`"] #[inline(always)] pub fn is_1(&self) -> bool { *self == EEI3_A::_1 } } #[doc = "Write proxy for field `EEI3`"] pub struct EEI3_W<'a> { w: &'a mut W, } impl<'a> EEI3_W<'a> { #[doc = r"Writes `variant` to the field"] #[inline(always)] pub fn variant(self, variant: EEI3_A) -> &'a mut W { { self.bit(variant.into()) } } #[doc = "The error signal for corresponding channel does not generate an error interrupt"] #[inline(always)] pub fn _0(self) -> &'a mut W { self.variant(EEI3_A::_0) } #[doc = "The assertion of the error signal for corresponding channel generates an error interrupt request"] #[inline(always)] pub fn _1(self) -> &'a mut W { self.variant(EEI3_A::_1) } #[doc = r"Sets the field bit"] #[inline(always)] pub fn set_bit(self) -> &'a mut W { self.bit(true) } #[doc = r"Clears the field bit"] #[inline(always)] pub fn clear_bit(self) -> &'a mut W { self.bit(false) } #[doc = r"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 = "Enable Error Interrupt 4\n\nValue on reset: 0"] #[derive(Clone, Copy, Debug, PartialEq)] pub enum EEI4_A { #[doc = "0: The error signal for corresponding channel does not generate an error interrupt"] _0 = 0, #[doc = "1: The assertion of the error signal for corresponding channel generates an error interrupt request"] _1 = 1, } impl From for bool { #[inline(always)] fn from(variant: EEI4_A) -> Self { variant as u8 != 0 } } #[doc = "Reader of field `EEI4`"] pub type EEI4_R = crate::R; impl EEI4_R { #[doc = r"Get enumerated values variant"] #[inline(always)] pub fn variant(&self) -> EEI4_A { match self.bits { false => EEI4_A::_0, true => EEI4_A::_1, } } #[doc = "Checks if the value of the field is `_0`"] #[inline(always)] pub fn is_0(&self) -> bool { *self == EEI4_A::_0 } #[doc = "Checks if the value of the field is `_1`"] #[inline(always)] pub fn is_1(&self) -> bool { *self == EEI4_A::_1 } } #[doc = "Write proxy for field `EEI4`"] pub struct EEI4_W<'a> { w: &'a mut W, } impl<'a> EEI4_W<'a> { #[doc = r"Writes `variant` to the field"] #[inline(always)] pub fn variant(self, variant: EEI4_A) -> &'a mut W { { self.bit(variant.into()) } } #[doc = "The error signal for corresponding channel does not generate an error interrupt"] #[inline(always)] pub fn _0(self) -> &'a mut W { self.variant(EEI4_A::_0) } #[doc = "The assertion of the error signal for corresponding channel generates an error interrupt request"] #[inline(always)] pub fn _1(self) -> &'a mut W { self.variant(EEI4_A::_1) } #[doc = r"Sets the field bit"] #[inline(always)] pub fn set_bit(self) -> &'a mut W { self.bit(true) } #[doc = r"Clears the field bit"] #[inline(always)] pub fn clear_bit(self) -> &'a mut W { self.bit(false) } #[doc = r"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 = "Enable Error Interrupt 5\n\nValue on reset: 0"] #[derive(Clone, Copy, Debug, PartialEq)] pub enum EEI5_A { #[doc = "0: The error signal for corresponding channel does not generate an error interrupt"] _0 = 0, #[doc = "1: The assertion of the error signal for corresponding channel generates an error interrupt request"] _1 = 1, } impl From for bool { #[inline(always)] fn from(variant: EEI5_A) -> Self { variant as u8 != 0 } } #[doc = "Reader of field `EEI5`"] pub type EEI5_R = crate::R; impl EEI5_R { #[doc = r"Get enumerated values variant"] #[inline(always)] pub fn variant(&self) -> EEI5_A { match self.bits { false => EEI5_A::_0, true => EEI5_A::_1, } } #[doc = "Checks if the value of the field is `_0`"] #[inline(always)] pub fn is_0(&self) -> bool { *self == EEI5_A::_0 } #[doc = "Checks if the value of the field is `_1`"] #[inline(always)] pub fn is_1(&self) -> bool { *self == EEI5_A::_1 } } #[doc = "Write proxy for field `EEI5`"] pub struct EEI5_W<'a> { w: &'a mut W, } impl<'a> EEI5_W<'a> { #[doc = r"Writes `variant` to the field"] #[inline(always)] pub fn variant(self, variant: EEI5_A) -> &'a mut W { { self.bit(variant.into()) } } #[doc = "The error signal for corresponding channel does not generate an error interrupt"] #[inline(always)] pub fn _0(self) -> &'a mut W { self.variant(EEI5_A::_0) } #[doc = "The assertion of the error signal for corresponding channel generates an error interrupt request"] #[inline(always)] pub fn _1(self) -> &'a mut W { self.variant(EEI5_A::_1) } #[doc = r"Sets the field bit"] #[inline(always)] pub fn set_bit(self) -> &'a mut W { self.bit(true) } #[doc = r"Clears the field bit"] #[inline(always)] pub fn clear_bit(self) -> &'a mut W { self.bit(false) } #[doc = r"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 = "Enable Error Interrupt 6\n\nValue on reset: 0"] #[derive(Clone, Copy, Debug, PartialEq)] pub enum EEI6_A { #[doc = "0: The error signal for corresponding channel does not generate an error interrupt"] _0 = 0, #[doc = "1: The assertion of the error signal for corresponding channel generates an error interrupt request"] _1 = 1, } impl From for bool { #[inline(always)] fn from(variant: EEI6_A) -> Self { variant as u8 != 0 } } #[doc = "Reader of field `EEI6`"] pub type EEI6_R = crate::R; impl EEI6_R { #[doc = r"Get enumerated values variant"] #[inline(always)] pub fn variant(&self) -> EEI6_A { match self.bits { false => EEI6_A::_0, true => EEI6_A::_1, } } #[doc = "Checks if the value of the field is `_0`"] #[inline(always)] pub fn is_0(&self) -> bool { *self == EEI6_A::_0 } #[doc = "Checks if the value of the field is `_1`"] #[inline(always)] pub fn is_1(&self) -> bool { *self == EEI6_A::_1 } } #[doc = "Write proxy for field `EEI6`"] pub struct EEI6_W<'a> { w: &'a mut W, } impl<'a> EEI6_W<'a> { #[doc = r"Writes `variant` to the field"] #[inline(always)] pub fn variant(self, variant: EEI6_A) -> &'a mut W { { self.bit(variant.into()) } } #[doc = "The error signal for corresponding channel does not generate an error interrupt"] #[inline(always)] pub fn _0(self) -> &'a mut W { self.variant(EEI6_A::_0) } #[doc = "The assertion of the error signal for corresponding channel generates an error interrupt request"] #[inline(always)] pub fn _1(self) -> &'a mut W { self.variant(EEI6_A::_1) } #[doc = r"Sets the field bit"] #[inline(always)] pub fn set_bit(self) -> &'a mut W { self.bit(true) } #[doc = r"Clears the field bit"] #[inline(always)] pub fn clear_bit(self) -> &'a mut W { self.bit(false) } #[doc = r"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 = "Enable Error Interrupt 7\n\nValue on reset: 0"] #[derive(Clone, Copy, Debug, PartialEq)] pub enum EEI7_A { #[doc = "0: The error signal for corresponding channel does not generate an error interrupt"] _0 = 0, #[doc = "1: The assertion of the error signal for corresponding channel generates an error interrupt request"] _1 = 1, } impl From for bool { #[inline(always)] fn from(variant: EEI7_A) -> Self { variant as u8 != 0 } } #[doc = "Reader of field `EEI7`"] pub type EEI7_R = crate::R; impl EEI7_R { #[doc = r"Get enumerated values variant"] #[inline(always)] pub fn variant(&self) -> EEI7_A { match self.bits { false => EEI7_A::_0, true => EEI7_A::_1, } } #[doc = "Checks if the value of the field is `_0`"] #[inline(always)] pub fn is_0(&self) -> bool { *self == EEI7_A::_0 } #[doc = "Checks if the value of the field is `_1`"] #[inline(always)] pub fn is_1(&self) -> bool { *self == EEI7_A::_1 } } #[doc = "Write proxy for field `EEI7`"] pub struct EEI7_W<'a> { w: &'a mut W, } impl<'a> EEI7_W<'a> { #[doc = r"Writes `variant` to the field"] #[inline(always)] pub fn variant(self, variant: EEI7_A) -> &'a mut W { { self.bit(variant.into()) } } #[doc = "The error signal for corresponding channel does not generate an error interrupt"] #[inline(always)] pub fn _0(self) -> &'a mut W { self.variant(EEI7_A::_0) } #[doc = "The assertion of the error signal for corresponding channel generates an error interrupt request"] #[inline(always)] pub fn _1(self) -> &'a mut W { self.variant(EEI7_A::_1) } #[doc = r"Sets the field bit"] #[inline(always)] pub fn set_bit(self) -> &'a mut W { self.bit(true) } #[doc = r"Clears the field bit"] #[inline(always)] pub fn clear_bit(self) -> &'a mut W { self.bit(false) } #[doc = r"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 = "Enable Error Interrupt 8\n\nValue on reset: 0"] #[derive(Clone, Copy, Debug, PartialEq)] pub enum EEI8_A { #[doc = "0: The error signal for corresponding channel does not generate an error interrupt"] _0 = 0, #[doc = "1: The assertion of the error signal for corresponding channel generates an error interrupt request"] _1 = 1, } impl From for bool { #[inline(always)] fn from(variant: EEI8_A) -> Self { variant as u8 != 0 } } #[doc = "Reader of field `EEI8`"] pub type EEI8_R = crate::R; impl EEI8_R { #[doc = r"Get enumerated values variant"] #[inline(always)] pub fn variant(&self) -> EEI8_A { match self.bits { false => EEI8_A::_0, true => EEI8_A::_1, } } #[doc = "Checks if the value of the field is `_0`"] #[inline(always)] pub fn is_0(&self) -> bool { *self == EEI8_A::_0 } #[doc = "Checks if the value of the field is `_1`"] #[inline(always)] pub fn is_1(&self) -> bool { *self == EEI8_A::_1 } } #[doc = "Write proxy for field `EEI8`"] pub struct EEI8_W<'a> { w: &'a mut W, } impl<'a> EEI8_W<'a> { #[doc = r"Writes `variant` to the field"] #[inline(always)] pub fn variant(self, variant: EEI8_A) -> &'a mut W { { self.bit(variant.into()) } } #[doc = "The error signal for corresponding channel does not generate an error interrupt"] #[inline(always)] pub fn _0(self) -> &'a mut W { self.variant(EEI8_A::_0) } #[doc = "The assertion of the error signal for corresponding channel generates an error interrupt request"] #[inline(always)] pub fn _1(self) -> &'a mut W { self.variant(EEI8_A::_1) } #[doc = r"Sets the field bit"] #[inline(always)] pub fn set_bit(self) -> &'a mut W { self.bit(true) } #[doc = r"Clears the field bit"] #[inline(always)] pub fn clear_bit(self) -> &'a mut W { self.bit(false) } #[doc = r"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 = "Enable Error Interrupt 9\n\nValue on reset: 0"] #[derive(Clone, Copy, Debug, PartialEq)] pub enum EEI9_A { #[doc = "0: The error signal for corresponding channel does not generate an error interrupt"] _0 = 0, #[doc = "1: The assertion of the error signal for corresponding channel generates an error interrupt request"] _1 = 1, } impl From for bool { #[inline(always)] fn from(variant: EEI9_A) -> Self { variant as u8 != 0 } } #[doc = "Reader of field `EEI9`"] pub type EEI9_R = crate::R; impl EEI9_R { #[doc = r"Get enumerated values variant"] #[inline(always)] pub fn variant(&self) -> EEI9_A { match self.bits { false => EEI9_A::_0, true => EEI9_A::_1, } } #[doc = "Checks if the value of the field is `_0`"] #[inline(always)] pub fn is_0(&self) -> bool { *self == EEI9_A::_0 } #[doc = "Checks if the value of the field is `_1`"] #[inline(always)] pub fn is_1(&self) -> bool { *self == EEI9_A::_1 } } #[doc = "Write proxy for field `EEI9`"] pub struct EEI9_W<'a> { w: &'a mut W, } impl<'a> EEI9_W<'a> { #[doc = r"Writes `variant` to the field"] #[inline(always)] pub fn variant(self, variant: EEI9_A) -> &'a mut W { { self.bit(variant.into()) } } #[doc = "The error signal for corresponding channel does not generate an error interrupt"] #[inline(always)] pub fn _0(self) -> &'a mut W { self.variant(EEI9_A::_0) } #[doc = "The assertion of the error signal for corresponding channel generates an error interrupt request"] #[inline(always)] pub fn _1(self) -> &'a mut W { self.variant(EEI9_A::_1) } #[doc = r"Sets the field bit"] #[inline(always)] pub fn set_bit(self) -> &'a mut W { self.bit(true) } #[doc = r"Clears the field bit"] #[inline(always)] pub fn clear_bit(self) -> &'a mut W { self.bit(false) } #[doc = r"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 = "Enable Error Interrupt 10\n\nValue on reset: 0"] #[derive(Clone, Copy, Debug, PartialEq)] pub enum EEI10_A { #[doc = "0: The error signal for corresponding channel does not generate an error interrupt"] _0 = 0, #[doc = "1: The assertion of the error signal for corresponding channel generates an error interrupt request"] _1 = 1, } impl From for bool { #[inline(always)] fn from(variant: EEI10_A) -> Self { variant as u8 != 0 } } #[doc = "Reader of field `EEI10`"] pub type EEI10_R = crate::R; impl EEI10_R { #[doc = r"Get enumerated values variant"] #[inline(always)] pub fn variant(&self) -> EEI10_A { match self.bits { false => EEI10_A::_0, true => EEI10_A::_1, } } #[doc = "Checks if the value of the field is `_0`"] #[inline(always)] pub fn is_0(&self) -> bool { *self == EEI10_A::_0 } #[doc = "Checks if the value of the field is `_1`"] #[inline(always)] pub fn is_1(&self) -> bool { *self == EEI10_A::_1 } } #[doc = "Write proxy for field `EEI10`"] pub struct EEI10_W<'a> { w: &'a mut W, } impl<'a> EEI10_W<'a> { #[doc = r"Writes `variant` to the field"] #[inline(always)] pub fn variant(self, variant: EEI10_A) -> &'a mut W { { self.bit(variant.into()) } } #[doc = "The error signal for corresponding channel does not generate an error interrupt"] #[inline(always)] pub fn _0(self) -> &'a mut W { self.variant(EEI10_A::_0) } #[doc = "The assertion of the error signal for corresponding channel generates an error interrupt request"] #[inline(always)] pub fn _1(self) -> &'a mut W { self.variant(EEI10_A::_1) } #[doc = r"Sets the field bit"] #[inline(always)] pub fn set_bit(self) -> &'a mut W { self.bit(true) } #[doc = r"Clears the field bit"] #[inline(always)] pub fn clear_bit(self) -> &'a mut W { self.bit(false) } #[doc = r"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 = "Enable Error Interrupt 11\n\nValue on reset: 0"] #[derive(Clone, Copy, Debug, PartialEq)] pub enum EEI11_A { #[doc = "0: The error signal for corresponding channel does not generate an error interrupt"] _0 = 0, #[doc = "1: The assertion of the error signal for corresponding channel generates an error interrupt request"] _1 = 1, } impl From for bool { #[inline(always)] fn from(variant: EEI11_A) -> Self { variant as u8 != 0 } } #[doc = "Reader of field `EEI11`"] pub type EEI11_R = crate::R; impl EEI11_R { #[doc = r"Get enumerated values variant"] #[inline(always)] pub fn variant(&self) -> EEI11_A { match self.bits { false => EEI11_A::_0, true => EEI11_A::_1, } } #[doc = "Checks if the value of the field is `_0`"] #[inline(always)] pub fn is_0(&self) -> bool { *self == EEI11_A::_0 } #[doc = "Checks if the value of the field is `_1`"] #[inline(always)] pub fn is_1(&self) -> bool { *self == EEI11_A::_1 } } #[doc = "Write proxy for field `EEI11`"] pub struct EEI11_W<'a> { w: &'a mut W, } impl<'a> EEI11_W<'a> { #[doc = r"Writes `variant` to the field"] #[inline(always)] pub fn variant(self, variant: EEI11_A) -> &'a mut W { { self.bit(variant.into()) } } #[doc = "The error signal for corresponding channel does not generate an error interrupt"] #[inline(always)] pub fn _0(self) -> &'a mut W { self.variant(EEI11_A::_0) } #[doc = "The assertion of the error signal for corresponding channel generates an error interrupt request"] #[inline(always)] pub fn _1(self) -> &'a mut W { self.variant(EEI11_A::_1) } #[doc = r"Sets the field bit"] #[inline(always)] pub fn set_bit(self) -> &'a mut W { self.bit(true) } #[doc = r"Clears the field bit"] #[inline(always)] pub fn clear_bit(self) -> &'a mut W { self.bit(false) } #[doc = r"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 = "Enable Error Interrupt 12\n\nValue on reset: 0"] #[derive(Clone, Copy, Debug, PartialEq)] pub enum EEI12_A { #[doc = "0: The error signal for corresponding channel does not generate an error interrupt"] _0 = 0, #[doc = "1: The assertion of the error signal for corresponding channel generates an error interrupt request"] _1 = 1, } impl From for bool { #[inline(always)] fn from(variant: EEI12_A) -> Self { variant as u8 != 0 } } #[doc = "Reader of field `EEI12`"] pub type EEI12_R = crate::R; impl EEI12_R { #[doc = r"Get enumerated values variant"] #[inline(always)] pub fn variant(&self) -> EEI12_A { match self.bits { false => EEI12_A::_0, true => EEI12_A::_1, } } #[doc = "Checks if the value of the field is `_0`"] #[inline(always)] pub fn is_0(&self) -> bool { *self == EEI12_A::_0 } #[doc = "Checks if the value of the field is `_1`"] #[inline(always)] pub fn is_1(&self) -> bool { *self == EEI12_A::_1 } } #[doc = "Write proxy for field `EEI12`"] pub struct EEI12_W<'a> { w: &'a mut W, } impl<'a> EEI12_W<'a> { #[doc = r"Writes `variant` to the field"] #[inline(always)] pub fn variant(self, variant: EEI12_A) -> &'a mut W { { self.bit(variant.into()) } } #[doc = "The error signal for corresponding channel does not generate an error interrupt"] #[inline(always)] pub fn _0(self) -> &'a mut W { self.variant(EEI12_A::_0) } #[doc = "The assertion of the error signal for corresponding channel generates an error interrupt request"] #[inline(always)] pub fn _1(self) -> &'a mut W { self.variant(EEI12_A::_1) } #[doc = r"Sets the field bit"] #[inline(always)] pub fn set_bit(self) -> &'a mut W { self.bit(true) } #[doc = r"Clears the field bit"] #[inline(always)] pub fn clear_bit(self) -> &'a mut W { self.bit(false) } #[doc = r"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 = "Enable Error Interrupt 13\n\nValue on reset: 0"] #[derive(Clone, Copy, Debug, PartialEq)] pub enum EEI13_A { #[doc = "0: The error signal for corresponding channel does not generate an error interrupt"] _0 = 0, #[doc = "1: The assertion of the error signal for corresponding channel generates an error interrupt request"] _1 = 1, } impl From for bool { #[inline(always)] fn from(variant: EEI13_A) -> Self { variant as u8 != 0 } } #[doc = "Reader of field `EEI13`"] pub type EEI13_R = crate::R; impl EEI13_R { #[doc = r"Get enumerated values variant"] #[inline(always)] pub fn variant(&self) -> EEI13_A { match self.bits { false => EEI13_A::_0, true => EEI13_A::_1, } } #[doc = "Checks if the value of the field is `_0`"] #[inline(always)] pub fn is_0(&self) -> bool { *self == EEI13_A::_0 } #[doc = "Checks if the value of the field is `_1`"] #[inline(always)] pub fn is_1(&self) -> bool { *self == EEI13_A::_1 } } #[doc = "Write proxy for field `EEI13`"] pub struct EEI13_W<'a> { w: &'a mut W, } impl<'a> EEI13_W<'a> { #[doc = r"Writes `variant` to the field"] #[inline(always)] pub fn variant(self, variant: EEI13_A) -> &'a mut W { { self.bit(variant.into()) } } #[doc = "The error signal for corresponding channel does not generate an error interrupt"] #[inline(always)] pub fn _0(self) -> &'a mut W { self.variant(EEI13_A::_0) } #[doc = "The assertion of the error signal for corresponding channel generates an error interrupt request"] #[inline(always)] pub fn _1(self) -> &'a mut W { self.variant(EEI13_A::_1) } #[doc = r"Sets the field bit"] #[inline(always)] pub fn set_bit(self) -> &'a mut W { self.bit(true) } #[doc = r"Clears the field bit"] #[inline(always)] pub fn clear_bit(self) -> &'a mut W { self.bit(false) } #[doc = r"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 = "Enable Error Interrupt 14\n\nValue on reset: 0"] #[derive(Clone, Copy, Debug, PartialEq)] pub enum EEI14_A { #[doc = "0: The error signal for corresponding channel does not generate an error interrupt"] _0 = 0, #[doc = "1: The assertion of the error signal for corresponding channel generates an error interrupt request"] _1 = 1, } impl From for bool { #[inline(always)] fn from(variant: EEI14_A) -> Self { variant as u8 != 0 } } #[doc = "Reader of field `EEI14`"] pub type EEI14_R = crate::R; impl EEI14_R { #[doc = r"Get enumerated values variant"] #[inline(always)] pub fn variant(&self) -> EEI14_A { match self.bits { false => EEI14_A::_0, true => EEI14_A::_1, } } #[doc = "Checks if the value of the field is `_0`"] #[inline(always)] pub fn is_0(&self) -> bool { *self == EEI14_A::_0 } #[doc = "Checks if the value of the field is `_1`"] #[inline(always)] pub fn is_1(&self) -> bool { *self == EEI14_A::_1 } } #[doc = "Write proxy for field `EEI14`"] pub struct EEI14_W<'a> { w: &'a mut W, } impl<'a> EEI14_W<'a> { #[doc = r"Writes `variant` to the field"] #[inline(always)] pub fn variant(self, variant: EEI14_A) -> &'a mut W { { self.bit(variant.into()) } } #[doc = "The error signal for corresponding channel does not generate an error interrupt"] #[inline(always)] pub fn _0(self) -> &'a mut W { self.variant(EEI14_A::_0) } #[doc = "The assertion of the error signal for corresponding channel generates an error interrupt request"] #[inline(always)] pub fn _1(self) -> &'a mut W { self.variant(EEI14_A::_1) } #[doc = r"Sets the field bit"] #[inline(always)] pub fn set_bit(self) -> &'a mut W { self.bit(true) } #[doc = r"Clears the field bit"] #[inline(always)] pub fn clear_bit(self) -> &'a mut W { self.bit(false) } #[doc = r"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 = "Enable Error Interrupt 15\n\nValue on reset: 0"] #[derive(Clone, Copy, Debug, PartialEq)] pub enum EEI15_A { #[doc = "0: The error signal for corresponding channel does not generate an error interrupt"] _0 = 0, #[doc = "1: The assertion of the error signal for corresponding channel generates an error interrupt request"] _1 = 1, } impl From for bool { #[inline(always)] fn from(variant: EEI15_A) -> Self { variant as u8 != 0 } } #[doc = "Reader of field `EEI15`"] pub type EEI15_R = crate::R; impl EEI15_R { #[doc = r"Get enumerated values variant"] #[inline(always)] pub fn variant(&self) -> EEI15_A { match self.bits { false => EEI15_A::_0, true => EEI15_A::_1, } } #[doc = "Checks if the value of the field is `_0`"] #[inline(always)] pub fn is_0(&self) -> bool { *self == EEI15_A::_0 } #[doc = "Checks if the value of the field is `_1`"] #[inline(always)] pub fn is_1(&self) -> bool { *self == EEI15_A::_1 } } #[doc = "Write proxy for field `EEI15`"] pub struct EEI15_W<'a> { w: &'a mut W, } impl<'a> EEI15_W<'a> { #[doc = r"Writes `variant` to the field"] #[inline(always)] pub fn variant(self, variant: EEI15_A) -> &'a mut W { { self.bit(variant.into()) } } #[doc = "The error signal for corresponding channel does not generate an error interrupt"] #[inline(always)] pub fn _0(self) -> &'a mut W { self.variant(EEI15_A::_0) } #[doc = "The assertion of the error signal for corresponding channel generates an error interrupt request"] #[inline(always)] pub fn _1(self) -> &'a mut W { self.variant(EEI15_A::_1) } #[doc = r"Sets the field bit"] #[inline(always)] pub fn set_bit(self) -> &'a mut W { self.bit(true) } #[doc = r"Clears the field bit"] #[inline(always)] pub fn clear_bit(self) -> &'a mut W { self.bit(false) } #[doc = r"Writes raw bits to the field"] #[inline(always)] pub fn bit(self, value: bool) -> &'a mut W { self.w.bits = (self.w.bits & !(0x01 << 15)) | (((value as u32) & 0x01) << 15); self.w } } impl R { #[doc = "Bit 0 - Enable Error Interrupt 0"] #[inline(always)] pub fn eei0(&self) -> EEI0_R { EEI0_R::new((self.bits & 0x01) != 0) } #[doc = "Bit 1 - Enable Error Interrupt 1"] #[inline(always)] pub fn eei1(&self) -> EEI1_R { EEI1_R::new(((self.bits >> 1) & 0x01) != 0) } #[doc = "Bit 2 - Enable Error Interrupt 2"] #[inline(always)] pub fn eei2(&self) -> EEI2_R { EEI2_R::new(((self.bits >> 2) & 0x01) != 0) } #[doc = "Bit 3 - Enable Error Interrupt 3"] #[inline(always)] pub fn eei3(&self) -> EEI3_R { EEI3_R::new(((self.bits >> 3) & 0x01) != 0) } #[doc = "Bit 4 - Enable Error Interrupt 4"] #[inline(always)] pub fn eei4(&self) -> EEI4_R { EEI4_R::new(((self.bits >> 4) & 0x01) != 0) } #[doc = "Bit 5 - Enable Error Interrupt 5"] #[inline(always)] pub fn eei5(&self) -> EEI5_R { EEI5_R::new(((self.bits >> 5) & 0x01) != 0) } #[doc = "Bit 6 - Enable Error Interrupt 6"] #[inline(always)] pub fn eei6(&self) -> EEI6_R { EEI6_R::new(((self.bits >> 6) & 0x01) != 0) } #[doc = "Bit 7 - Enable Error Interrupt 7"] #[inline(always)] pub fn eei7(&self) -> EEI7_R { EEI7_R::new(((self.bits >> 7) & 0x01) != 0) } #[doc = "Bit 8 - Enable Error Interrupt 8"] #[inline(always)] pub fn eei8(&self) -> EEI8_R { EEI8_R::new(((self.bits >> 8) & 0x01) != 0) } #[doc = "Bit 9 - Enable Error Interrupt 9"] #[inline(always)] pub fn eei9(&self) -> EEI9_R { EEI9_R::new(((self.bits >> 9) & 0x01) != 0) } #[doc = "Bit 10 - Enable Error Interrupt 10"] #[inline(always)] pub fn eei10(&self) -> EEI10_R { EEI10_R::new(((self.bits >> 10) & 0x01) != 0) } #[doc = "Bit 11 - Enable Error Interrupt 11"] #[inline(always)] pub fn eei11(&self) -> EEI11_R { EEI11_R::new(((self.bits >> 11) & 0x01) != 0) } #[doc = "Bit 12 - Enable Error Interrupt 12"] #[inline(always)] pub fn eei12(&self) -> EEI12_R { EEI12_R::new(((self.bits >> 12) & 0x01) != 0) } #[doc = "Bit 13 - Enable Error Interrupt 13"] #[inline(always)] pub fn eei13(&self) -> EEI13_R { EEI13_R::new(((self.bits >> 13) & 0x01) != 0) } #[doc = "Bit 14 - Enable Error Interrupt 14"] #[inline(always)] pub fn eei14(&self) -> EEI14_R { EEI14_R::new(((self.bits >> 14) & 0x01) != 0) } #[doc = "Bit 15 - Enable Error Interrupt 15"] #[inline(always)] pub fn eei15(&self) -> EEI15_R { EEI15_R::new(((self.bits >> 15) & 0x01) != 0) } } impl W { #[doc = "Bit 0 - Enable Error Interrupt 0"] #[inline(always)] pub fn eei0(&mut self) -> EEI0_W { EEI0_W { w: self } } #[doc = "Bit 1 - Enable Error Interrupt 1"] #[inline(always)] pub fn eei1(&mut self) -> EEI1_W { EEI1_W { w: self } } #[doc = "Bit 2 - Enable Error Interrupt 2"] #[inline(always)] pub fn eei2(&mut self) -> EEI2_W { EEI2_W { w: self } } #[doc = "Bit 3 - Enable Error Interrupt 3"] #[inline(always)] pub fn eei3(&mut self) -> EEI3_W { EEI3_W { w: self } } #[doc = "Bit 4 - Enable Error Interrupt 4"] #[inline(always)] pub fn eei4(&mut self) -> EEI4_W { EEI4_W { w: self } } #[doc = "Bit 5 - Enable Error Interrupt 5"] #[inline(always)] pub fn eei5(&mut self) -> EEI5_W { EEI5_W { w: self } } #[doc = "Bit 6 - Enable Error Interrupt 6"] #[inline(always)] pub fn eei6(&mut self) -> EEI6_W { EEI6_W { w: self } } #[doc = "Bit 7 - Enable Error Interrupt 7"] #[inline(always)] pub fn eei7(&mut self) -> EEI7_W { EEI7_W { w: self } } #[doc = "Bit 8 - Enable Error Interrupt 8"] #[inline(always)] pub fn eei8(&mut self) -> EEI8_W { EEI8_W { w: self } } #[doc = "Bit 9 - Enable Error Interrupt 9"] #[inline(always)] pub fn eei9(&mut self) -> EEI9_W { EEI9_W { w: self } } #[doc = "Bit 10 - Enable Error Interrupt 10"] #[inline(always)] pub fn eei10(&mut self) -> EEI10_W { EEI10_W { w: self } } #[doc = "Bit 11 - Enable Error Interrupt 11"] #[inline(always)] pub fn eei11(&mut self) -> EEI11_W { EEI11_W { w: self } } #[doc = "Bit 12 - Enable Error Interrupt 12"] #[inline(always)] pub fn eei12(&mut self) -> EEI12_W { EEI12_W { w: self } } #[doc = "Bit 13 - Enable Error Interrupt 13"] #[inline(always)] pub fn eei13(&mut self) -> EEI13_W { EEI13_W { w: self } } #[doc = "Bit 14 - Enable Error Interrupt 14"] #[inline(always)] pub fn eei14(&mut self) -> EEI14_W { EEI14_W { w: self } } #[doc = "Bit 15 - Enable Error Interrupt 15"] #[inline(always)] pub fn eei15(&mut self) -> EEI15_W { EEI15_W { w: self } } }