#[doc = "Reader of register ERR"] pub type R = crate::R; #[doc = "Writer for register ERR"] pub type W = crate::W; #[doc = "Register ERR `reset()`'s with value 0"] impl crate::ResetValue for super::ERR { type Type = u32; #[inline(always)] fn reset_value() -> Self::Type { 0 } } #[doc = "Error In Channel 0\n\nValue on reset: 0"] #[derive(Clone, Copy, Debug, PartialEq)] pub enum ERR0_A { #[doc = "0: An error in this channel has not occurred"] _0 = 0, #[doc = "1: An error in this channel has occurred"] _1 = 1, } impl From for bool { #[inline(always)] fn from(variant: ERR0_A) -> Self { variant as u8 != 0 } } #[doc = "Reader of field `ERR0`"] pub type ERR0_R = crate::R; impl ERR0_R { #[doc = r"Get enumerated values variant"] #[inline(always)] pub fn variant(&self) -> ERR0_A { match self.bits { false => ERR0_A::_0, true => ERR0_A::_1, } } #[doc = "Checks if the value of the field is `_0`"] #[inline(always)] pub fn is_0(&self) -> bool { *self == ERR0_A::_0 } #[doc = "Checks if the value of the field is `_1`"] #[inline(always)] pub fn is_1(&self) -> bool { *self == ERR0_A::_1 } } #[doc = "Write proxy for field `ERR0`"] pub struct ERR0_W<'a> { w: &'a mut W, } impl<'a> ERR0_W<'a> { #[doc = r"Writes `variant` to the field"] #[inline(always)] pub fn variant(self, variant: ERR0_A) -> &'a mut W { { self.bit(variant.into()) } } #[doc = "An error in this channel has not occurred"] #[inline(always)] pub fn _0(self) -> &'a mut W { self.variant(ERR0_A::_0) } #[doc = "An error in this channel has occurred"] #[inline(always)] pub fn _1(self) -> &'a mut W { self.variant(ERR0_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 = "Error In Channel 1\n\nValue on reset: 0"] #[derive(Clone, Copy, Debug, PartialEq)] pub enum ERR1_A { #[doc = "0: An error in this channel has not occurred"] _0 = 0, #[doc = "1: An error in this channel has occurred"] _1 = 1, } impl From for bool { #[inline(always)] fn from(variant: ERR1_A) -> Self { variant as u8 != 0 } } #[doc = "Reader of field `ERR1`"] pub type ERR1_R = crate::R; impl ERR1_R { #[doc = r"Get enumerated values variant"] #[inline(always)] pub fn variant(&self) -> ERR1_A { match self.bits { false => ERR1_A::_0, true => ERR1_A::_1, } } #[doc = "Checks if the value of the field is `_0`"] #[inline(always)] pub fn is_0(&self) -> bool { *self == ERR1_A::_0 } #[doc = "Checks if the value of the field is `_1`"] #[inline(always)] pub fn is_1(&self) -> bool { *self == ERR1_A::_1 } } #[doc = "Write proxy for field `ERR1`"] pub struct ERR1_W<'a> { w: &'a mut W, } impl<'a> ERR1_W<'a> { #[doc = r"Writes `variant` to the field"] #[inline(always)] pub fn variant(self, variant: ERR1_A) -> &'a mut W { { self.bit(variant.into()) } } #[doc = "An error in this channel has not occurred"] #[inline(always)] pub fn _0(self) -> &'a mut W { self.variant(ERR1_A::_0) } #[doc = "An error in this channel has occurred"] #[inline(always)] pub fn _1(self) -> &'a mut W { self.variant(ERR1_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 = "Error In Channel 2\n\nValue on reset: 0"] #[derive(Clone, Copy, Debug, PartialEq)] pub enum ERR2_A { #[doc = "0: An error in this channel has not occurred"] _0 = 0, #[doc = "1: An error in this channel has occurred"] _1 = 1, } impl From for bool { #[inline(always)] fn from(variant: ERR2_A) -> Self { variant as u8 != 0 } } #[doc = "Reader of field `ERR2`"] pub type ERR2_R = crate::R; impl ERR2_R { #[doc = r"Get enumerated values variant"] #[inline(always)] pub fn variant(&self) -> ERR2_A { match self.bits { false => ERR2_A::_0, true => ERR2_A::_1, } } #[doc = "Checks if the value of the field is `_0`"] #[inline(always)] pub fn is_0(&self) -> bool { *self == ERR2_A::_0 } #[doc = "Checks if the value of the field is `_1`"] #[inline(always)] pub fn is_1(&self) -> bool { *self == ERR2_A::_1 } } #[doc = "Write proxy for field `ERR2`"] pub struct ERR2_W<'a> { w: &'a mut W, } impl<'a> ERR2_W<'a> { #[doc = r"Writes `variant` to the field"] #[inline(always)] pub fn variant(self, variant: ERR2_A) -> &'a mut W { { self.bit(variant.into()) } } #[doc = "An error in this channel has not occurred"] #[inline(always)] pub fn _0(self) -> &'a mut W { self.variant(ERR2_A::_0) } #[doc = "An error in this channel has occurred"] #[inline(always)] pub fn _1(self) -> &'a mut W { self.variant(ERR2_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 = "Error In Channel 3\n\nValue on reset: 0"] #[derive(Clone, Copy, Debug, PartialEq)] pub enum ERR3_A { #[doc = "0: An error in this channel has not occurred"] _0 = 0, #[doc = "1: An error in this channel has occurred"] _1 = 1, } impl From for bool { #[inline(always)] fn from(variant: ERR3_A) -> Self { variant as u8 != 0 } } #[doc = "Reader of field `ERR3`"] pub type ERR3_R = crate::R; impl ERR3_R { #[doc = r"Get enumerated values variant"] #[inline(always)] pub fn variant(&self) -> ERR3_A { match self.bits { false => ERR3_A::_0, true => ERR3_A::_1, } } #[doc = "Checks if the value of the field is `_0`"] #[inline(always)] pub fn is_0(&self) -> bool { *self == ERR3_A::_0 } #[doc = "Checks if the value of the field is `_1`"] #[inline(always)] pub fn is_1(&self) -> bool { *self == ERR3_A::_1 } } #[doc = "Write proxy for field `ERR3`"] pub struct ERR3_W<'a> { w: &'a mut W, } impl<'a> ERR3_W<'a> { #[doc = r"Writes `variant` to the field"] #[inline(always)] pub fn variant(self, variant: ERR3_A) -> &'a mut W { { self.bit(variant.into()) } } #[doc = "An error in this channel has not occurred"] #[inline(always)] pub fn _0(self) -> &'a mut W { self.variant(ERR3_A::_0) } #[doc = "An error in this channel has occurred"] #[inline(always)] pub fn _1(self) -> &'a mut W { self.variant(ERR3_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 = "Error In Channel 4\n\nValue on reset: 0"] #[derive(Clone, Copy, Debug, PartialEq)] pub enum ERR4_A { #[doc = "0: An error in this channel has not occurred"] _0 = 0, #[doc = "1: An error in this channel has occurred"] _1 = 1, } impl From for bool { #[inline(always)] fn from(variant: ERR4_A) -> Self { variant as u8 != 0 } } #[doc = "Reader of field `ERR4`"] pub type ERR4_R = crate::R; impl ERR4_R { #[doc = r"Get enumerated values variant"] #[inline(always)] pub fn variant(&self) -> ERR4_A { match self.bits { false => ERR4_A::_0, true => ERR4_A::_1, } } #[doc = "Checks if the value of the field is `_0`"] #[inline(always)] pub fn is_0(&self) -> bool { *self == ERR4_A::_0 } #[doc = "Checks if the value of the field is `_1`"] #[inline(always)] pub fn is_1(&self) -> bool { *self == ERR4_A::_1 } } #[doc = "Write proxy for field `ERR4`"] pub struct ERR4_W<'a> { w: &'a mut W, } impl<'a> ERR4_W<'a> { #[doc = r"Writes `variant` to the field"] #[inline(always)] pub fn variant(self, variant: ERR4_A) -> &'a mut W { { self.bit(variant.into()) } } #[doc = "An error in this channel has not occurred"] #[inline(always)] pub fn _0(self) -> &'a mut W { self.variant(ERR4_A::_0) } #[doc = "An error in this channel has occurred"] #[inline(always)] pub fn _1(self) -> &'a mut W { self.variant(ERR4_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 = "Error In Channel 5\n\nValue on reset: 0"] #[derive(Clone, Copy, Debug, PartialEq)] pub enum ERR5_A { #[doc = "0: An error in this channel has not occurred"] _0 = 0, #[doc = "1: An error in this channel has occurred"] _1 = 1, } impl From for bool { #[inline(always)] fn from(variant: ERR5_A) -> Self { variant as u8 != 0 } } #[doc = "Reader of field `ERR5`"] pub type ERR5_R = crate::R; impl ERR5_R { #[doc = r"Get enumerated values variant"] #[inline(always)] pub fn variant(&self) -> ERR5_A { match self.bits { false => ERR5_A::_0, true => ERR5_A::_1, } } #[doc = "Checks if the value of the field is `_0`"] #[inline(always)] pub fn is_0(&self) -> bool { *self == ERR5_A::_0 } #[doc = "Checks if the value of the field is `_1`"] #[inline(always)] pub fn is_1(&self) -> bool { *self == ERR5_A::_1 } } #[doc = "Write proxy for field `ERR5`"] pub struct ERR5_W<'a> { w: &'a mut W, } impl<'a> ERR5_W<'a> { #[doc = r"Writes `variant` to the field"] #[inline(always)] pub fn variant(self, variant: ERR5_A) -> &'a mut W { { self.bit(variant.into()) } } #[doc = "An error in this channel has not occurred"] #[inline(always)] pub fn _0(self) -> &'a mut W { self.variant(ERR5_A::_0) } #[doc = "An error in this channel has occurred"] #[inline(always)] pub fn _1(self) -> &'a mut W { self.variant(ERR5_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 = "Error In Channel 6\n\nValue on reset: 0"] #[derive(Clone, Copy, Debug, PartialEq)] pub enum ERR6_A { #[doc = "0: An error in this channel has not occurred"] _0 = 0, #[doc = "1: An error in this channel has occurred"] _1 = 1, } impl From for bool { #[inline(always)] fn from(variant: ERR6_A) -> Self { variant as u8 != 0 } } #[doc = "Reader of field `ERR6`"] pub type ERR6_R = crate::R; impl ERR6_R { #[doc = r"Get enumerated values variant"] #[inline(always)] pub fn variant(&self) -> ERR6_A { match self.bits { false => ERR6_A::_0, true => ERR6_A::_1, } } #[doc = "Checks if the value of the field is `_0`"] #[inline(always)] pub fn is_0(&self) -> bool { *self == ERR6_A::_0 } #[doc = "Checks if the value of the field is `_1`"] #[inline(always)] pub fn is_1(&self) -> bool { *self == ERR6_A::_1 } } #[doc = "Write proxy for field `ERR6`"] pub struct ERR6_W<'a> { w: &'a mut W, } impl<'a> ERR6_W<'a> { #[doc = r"Writes `variant` to the field"] #[inline(always)] pub fn variant(self, variant: ERR6_A) -> &'a mut W { { self.bit(variant.into()) } } #[doc = "An error in this channel has not occurred"] #[inline(always)] pub fn _0(self) -> &'a mut W { self.variant(ERR6_A::_0) } #[doc = "An error in this channel has occurred"] #[inline(always)] pub fn _1(self) -> &'a mut W { self.variant(ERR6_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 = "Error In Channel 7\n\nValue on reset: 0"] #[derive(Clone, Copy, Debug, PartialEq)] pub enum ERR7_A { #[doc = "0: An error in this channel has not occurred"] _0 = 0, #[doc = "1: An error in this channel has occurred"] _1 = 1, } impl From for bool { #[inline(always)] fn from(variant: ERR7_A) -> Self { variant as u8 != 0 } } #[doc = "Reader of field `ERR7`"] pub type ERR7_R = crate::R; impl ERR7_R { #[doc = r"Get enumerated values variant"] #[inline(always)] pub fn variant(&self) -> ERR7_A { match self.bits { false => ERR7_A::_0, true => ERR7_A::_1, } } #[doc = "Checks if the value of the field is `_0`"] #[inline(always)] pub fn is_0(&self) -> bool { *self == ERR7_A::_0 } #[doc = "Checks if the value of the field is `_1`"] #[inline(always)] pub fn is_1(&self) -> bool { *self == ERR7_A::_1 } } #[doc = "Write proxy for field `ERR7`"] pub struct ERR7_W<'a> { w: &'a mut W, } impl<'a> ERR7_W<'a> { #[doc = r"Writes `variant` to the field"] #[inline(always)] pub fn variant(self, variant: ERR7_A) -> &'a mut W { { self.bit(variant.into()) } } #[doc = "An error in this channel has not occurred"] #[inline(always)] pub fn _0(self) -> &'a mut W { self.variant(ERR7_A::_0) } #[doc = "An error in this channel has occurred"] #[inline(always)] pub fn _1(self) -> &'a mut W { self.variant(ERR7_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 = "Error In Channel 8\n\nValue on reset: 0"] #[derive(Clone, Copy, Debug, PartialEq)] pub enum ERR8_A { #[doc = "0: An error in this channel has not occurred"] _0 = 0, #[doc = "1: An error in this channel has occurred"] _1 = 1, } impl From for bool { #[inline(always)] fn from(variant: ERR8_A) -> Self { variant as u8 != 0 } } #[doc = "Reader of field `ERR8`"] pub type ERR8_R = crate::R; impl ERR8_R { #[doc = r"Get enumerated values variant"] #[inline(always)] pub fn variant(&self) -> ERR8_A { match self.bits { false => ERR8_A::_0, true => ERR8_A::_1, } } #[doc = "Checks if the value of the field is `_0`"] #[inline(always)] pub fn is_0(&self) -> bool { *self == ERR8_A::_0 } #[doc = "Checks if the value of the field is `_1`"] #[inline(always)] pub fn is_1(&self) -> bool { *self == ERR8_A::_1 } } #[doc = "Write proxy for field `ERR8`"] pub struct ERR8_W<'a> { w: &'a mut W, } impl<'a> ERR8_W<'a> { #[doc = r"Writes `variant` to the field"] #[inline(always)] pub fn variant(self, variant: ERR8_A) -> &'a mut W { { self.bit(variant.into()) } } #[doc = "An error in this channel has not occurred"] #[inline(always)] pub fn _0(self) -> &'a mut W { self.variant(ERR8_A::_0) } #[doc = "An error in this channel has occurred"] #[inline(always)] pub fn _1(self) -> &'a mut W { self.variant(ERR8_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 = "Error In Channel 9\n\nValue on reset: 0"] #[derive(Clone, Copy, Debug, PartialEq)] pub enum ERR9_A { #[doc = "0: An error in this channel has not occurred"] _0 = 0, #[doc = "1: An error in this channel has occurred"] _1 = 1, } impl From for bool { #[inline(always)] fn from(variant: ERR9_A) -> Self { variant as u8 != 0 } } #[doc = "Reader of field `ERR9`"] pub type ERR9_R = crate::R; impl ERR9_R { #[doc = r"Get enumerated values variant"] #[inline(always)] pub fn variant(&self) -> ERR9_A { match self.bits { false => ERR9_A::_0, true => ERR9_A::_1, } } #[doc = "Checks if the value of the field is `_0`"] #[inline(always)] pub fn is_0(&self) -> bool { *self == ERR9_A::_0 } #[doc = "Checks if the value of the field is `_1`"] #[inline(always)] pub fn is_1(&self) -> bool { *self == ERR9_A::_1 } } #[doc = "Write proxy for field `ERR9`"] pub struct ERR9_W<'a> { w: &'a mut W, } impl<'a> ERR9_W<'a> { #[doc = r"Writes `variant` to the field"] #[inline(always)] pub fn variant(self, variant: ERR9_A) -> &'a mut W { { self.bit(variant.into()) } } #[doc = "An error in this channel has not occurred"] #[inline(always)] pub fn _0(self) -> &'a mut W { self.variant(ERR9_A::_0) } #[doc = "An error in this channel has occurred"] #[inline(always)] pub fn _1(self) -> &'a mut W { self.variant(ERR9_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 = "Error In Channel 10\n\nValue on reset: 0"] #[derive(Clone, Copy, Debug, PartialEq)] pub enum ERR10_A { #[doc = "0: An error in this channel has not occurred"] _0 = 0, #[doc = "1: An error in this channel has occurred"] _1 = 1, } impl From for bool { #[inline(always)] fn from(variant: ERR10_A) -> Self { variant as u8 != 0 } } #[doc = "Reader of field `ERR10`"] pub type ERR10_R = crate::R; impl ERR10_R { #[doc = r"Get enumerated values variant"] #[inline(always)] pub fn variant(&self) -> ERR10_A { match self.bits { false => ERR10_A::_0, true => ERR10_A::_1, } } #[doc = "Checks if the value of the field is `_0`"] #[inline(always)] pub fn is_0(&self) -> bool { *self == ERR10_A::_0 } #[doc = "Checks if the value of the field is `_1`"] #[inline(always)] pub fn is_1(&self) -> bool { *self == ERR10_A::_1 } } #[doc = "Write proxy for field `ERR10`"] pub struct ERR10_W<'a> { w: &'a mut W, } impl<'a> ERR10_W<'a> { #[doc = r"Writes `variant` to the field"] #[inline(always)] pub fn variant(self, variant: ERR10_A) -> &'a mut W { { self.bit(variant.into()) } } #[doc = "An error in this channel has not occurred"] #[inline(always)] pub fn _0(self) -> &'a mut W { self.variant(ERR10_A::_0) } #[doc = "An error in this channel has occurred"] #[inline(always)] pub fn _1(self) -> &'a mut W { self.variant(ERR10_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 = "Error In Channel 11\n\nValue on reset: 0"] #[derive(Clone, Copy, Debug, PartialEq)] pub enum ERR11_A { #[doc = "0: An error in this channel has not occurred"] _0 = 0, #[doc = "1: An error in this channel has occurred"] _1 = 1, } impl From for bool { #[inline(always)] fn from(variant: ERR11_A) -> Self { variant as u8 != 0 } } #[doc = "Reader of field `ERR11`"] pub type ERR11_R = crate::R; impl ERR11_R { #[doc = r"Get enumerated values variant"] #[inline(always)] pub fn variant(&self) -> ERR11_A { match self.bits { false => ERR11_A::_0, true => ERR11_A::_1, } } #[doc = "Checks if the value of the field is `_0`"] #[inline(always)] pub fn is_0(&self) -> bool { *self == ERR11_A::_0 } #[doc = "Checks if the value of the field is `_1`"] #[inline(always)] pub fn is_1(&self) -> bool { *self == ERR11_A::_1 } } #[doc = "Write proxy for field `ERR11`"] pub struct ERR11_W<'a> { w: &'a mut W, } impl<'a> ERR11_W<'a> { #[doc = r"Writes `variant` to the field"] #[inline(always)] pub fn variant(self, variant: ERR11_A) -> &'a mut W { { self.bit(variant.into()) } } #[doc = "An error in this channel has not occurred"] #[inline(always)] pub fn _0(self) -> &'a mut W { self.variant(ERR11_A::_0) } #[doc = "An error in this channel has occurred"] #[inline(always)] pub fn _1(self) -> &'a mut W { self.variant(ERR11_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 = "Error In Channel 12\n\nValue on reset: 0"] #[derive(Clone, Copy, Debug, PartialEq)] pub enum ERR12_A { #[doc = "0: An error in this channel has not occurred"] _0 = 0, #[doc = "1: An error in this channel has occurred"] _1 = 1, } impl From for bool { #[inline(always)] fn from(variant: ERR12_A) -> Self { variant as u8 != 0 } } #[doc = "Reader of field `ERR12`"] pub type ERR12_R = crate::R; impl ERR12_R { #[doc = r"Get enumerated values variant"] #[inline(always)] pub fn variant(&self) -> ERR12_A { match self.bits { false => ERR12_A::_0, true => ERR12_A::_1, } } #[doc = "Checks if the value of the field is `_0`"] #[inline(always)] pub fn is_0(&self) -> bool { *self == ERR12_A::_0 } #[doc = "Checks if the value of the field is `_1`"] #[inline(always)] pub fn is_1(&self) -> bool { *self == ERR12_A::_1 } } #[doc = "Write proxy for field `ERR12`"] pub struct ERR12_W<'a> { w: &'a mut W, } impl<'a> ERR12_W<'a> { #[doc = r"Writes `variant` to the field"] #[inline(always)] pub fn variant(self, variant: ERR12_A) -> &'a mut W { { self.bit(variant.into()) } } #[doc = "An error in this channel has not occurred"] #[inline(always)] pub fn _0(self) -> &'a mut W { self.variant(ERR12_A::_0) } #[doc = "An error in this channel has occurred"] #[inline(always)] pub fn _1(self) -> &'a mut W { self.variant(ERR12_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 = "Error In Channel 13\n\nValue on reset: 0"] #[derive(Clone, Copy, Debug, PartialEq)] pub enum ERR13_A { #[doc = "0: An error in this channel has not occurred"] _0 = 0, #[doc = "1: An error in this channel has occurred"] _1 = 1, } impl From for bool { #[inline(always)] fn from(variant: ERR13_A) -> Self { variant as u8 != 0 } } #[doc = "Reader of field `ERR13`"] pub type ERR13_R = crate::R; impl ERR13_R { #[doc = r"Get enumerated values variant"] #[inline(always)] pub fn variant(&self) -> ERR13_A { match self.bits { false => ERR13_A::_0, true => ERR13_A::_1, } } #[doc = "Checks if the value of the field is `_0`"] #[inline(always)] pub fn is_0(&self) -> bool { *self == ERR13_A::_0 } #[doc = "Checks if the value of the field is `_1`"] #[inline(always)] pub fn is_1(&self) -> bool { *self == ERR13_A::_1 } } #[doc = "Write proxy for field `ERR13`"] pub struct ERR13_W<'a> { w: &'a mut W, } impl<'a> ERR13_W<'a> { #[doc = r"Writes `variant` to the field"] #[inline(always)] pub fn variant(self, variant: ERR13_A) -> &'a mut W { { self.bit(variant.into()) } } #[doc = "An error in this channel has not occurred"] #[inline(always)] pub fn _0(self) -> &'a mut W { self.variant(ERR13_A::_0) } #[doc = "An error in this channel has occurred"] #[inline(always)] pub fn _1(self) -> &'a mut W { self.variant(ERR13_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 = "Error In Channel 14\n\nValue on reset: 0"] #[derive(Clone, Copy, Debug, PartialEq)] pub enum ERR14_A { #[doc = "0: An error in this channel has not occurred"] _0 = 0, #[doc = "1: An error in this channel has occurred"] _1 = 1, } impl From for bool { #[inline(always)] fn from(variant: ERR14_A) -> Self { variant as u8 != 0 } } #[doc = "Reader of field `ERR14`"] pub type ERR14_R = crate::R; impl ERR14_R { #[doc = r"Get enumerated values variant"] #[inline(always)] pub fn variant(&self) -> ERR14_A { match self.bits { false => ERR14_A::_0, true => ERR14_A::_1, } } #[doc = "Checks if the value of the field is `_0`"] #[inline(always)] pub fn is_0(&self) -> bool { *self == ERR14_A::_0 } #[doc = "Checks if the value of the field is `_1`"] #[inline(always)] pub fn is_1(&self) -> bool { *self == ERR14_A::_1 } } #[doc = "Write proxy for field `ERR14`"] pub struct ERR14_W<'a> { w: &'a mut W, } impl<'a> ERR14_W<'a> { #[doc = r"Writes `variant` to the field"] #[inline(always)] pub fn variant(self, variant: ERR14_A) -> &'a mut W { { self.bit(variant.into()) } } #[doc = "An error in this channel has not occurred"] #[inline(always)] pub fn _0(self) -> &'a mut W { self.variant(ERR14_A::_0) } #[doc = "An error in this channel has occurred"] #[inline(always)] pub fn _1(self) -> &'a mut W { self.variant(ERR14_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 = "Error In Channel 15\n\nValue on reset: 0"] #[derive(Clone, Copy, Debug, PartialEq)] pub enum ERR15_A { #[doc = "0: An error in this channel has not occurred"] _0 = 0, #[doc = "1: An error in this channel has occurred"] _1 = 1, } impl From for bool { #[inline(always)] fn from(variant: ERR15_A) -> Self { variant as u8 != 0 } } #[doc = "Reader of field `ERR15`"] pub type ERR15_R = crate::R; impl ERR15_R { #[doc = r"Get enumerated values variant"] #[inline(always)] pub fn variant(&self) -> ERR15_A { match self.bits { false => ERR15_A::_0, true => ERR15_A::_1, } } #[doc = "Checks if the value of the field is `_0`"] #[inline(always)] pub fn is_0(&self) -> bool { *self == ERR15_A::_0 } #[doc = "Checks if the value of the field is `_1`"] #[inline(always)] pub fn is_1(&self) -> bool { *self == ERR15_A::_1 } } #[doc = "Write proxy for field `ERR15`"] pub struct ERR15_W<'a> { w: &'a mut W, } impl<'a> ERR15_W<'a> { #[doc = r"Writes `variant` to the field"] #[inline(always)] pub fn variant(self, variant: ERR15_A) -> &'a mut W { { self.bit(variant.into()) } } #[doc = "An error in this channel has not occurred"] #[inline(always)] pub fn _0(self) -> &'a mut W { self.variant(ERR15_A::_0) } #[doc = "An error in this channel has occurred"] #[inline(always)] pub fn _1(self) -> &'a mut W { self.variant(ERR15_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 - Error In Channel 0"] #[inline(always)] pub fn err0(&self) -> ERR0_R { ERR0_R::new((self.bits & 0x01) != 0) } #[doc = "Bit 1 - Error In Channel 1"] #[inline(always)] pub fn err1(&self) -> ERR1_R { ERR1_R::new(((self.bits >> 1) & 0x01) != 0) } #[doc = "Bit 2 - Error In Channel 2"] #[inline(always)] pub fn err2(&self) -> ERR2_R { ERR2_R::new(((self.bits >> 2) & 0x01) != 0) } #[doc = "Bit 3 - Error In Channel 3"] #[inline(always)] pub fn err3(&self) -> ERR3_R { ERR3_R::new(((self.bits >> 3) & 0x01) != 0) } #[doc = "Bit 4 - Error In Channel 4"] #[inline(always)] pub fn err4(&self) -> ERR4_R { ERR4_R::new(((self.bits >> 4) & 0x01) != 0) } #[doc = "Bit 5 - Error In Channel 5"] #[inline(always)] pub fn err5(&self) -> ERR5_R { ERR5_R::new(((self.bits >> 5) & 0x01) != 0) } #[doc = "Bit 6 - Error In Channel 6"] #[inline(always)] pub fn err6(&self) -> ERR6_R { ERR6_R::new(((self.bits >> 6) & 0x01) != 0) } #[doc = "Bit 7 - Error In Channel 7"] #[inline(always)] pub fn err7(&self) -> ERR7_R { ERR7_R::new(((self.bits >> 7) & 0x01) != 0) } #[doc = "Bit 8 - Error In Channel 8"] #[inline(always)] pub fn err8(&self) -> ERR8_R { ERR8_R::new(((self.bits >> 8) & 0x01) != 0) } #[doc = "Bit 9 - Error In Channel 9"] #[inline(always)] pub fn err9(&self) -> ERR9_R { ERR9_R::new(((self.bits >> 9) & 0x01) != 0) } #[doc = "Bit 10 - Error In Channel 10"] #[inline(always)] pub fn err10(&self) -> ERR10_R { ERR10_R::new(((self.bits >> 10) & 0x01) != 0) } #[doc = "Bit 11 - Error In Channel 11"] #[inline(always)] pub fn err11(&self) -> ERR11_R { ERR11_R::new(((self.bits >> 11) & 0x01) != 0) } #[doc = "Bit 12 - Error In Channel 12"] #[inline(always)] pub fn err12(&self) -> ERR12_R { ERR12_R::new(((self.bits >> 12) & 0x01) != 0) } #[doc = "Bit 13 - Error In Channel 13"] #[inline(always)] pub fn err13(&self) -> ERR13_R { ERR13_R::new(((self.bits >> 13) & 0x01) != 0) } #[doc = "Bit 14 - Error In Channel 14"] #[inline(always)] pub fn err14(&self) -> ERR14_R { ERR14_R::new(((self.bits >> 14) & 0x01) != 0) } #[doc = "Bit 15 - Error In Channel 15"] #[inline(always)] pub fn err15(&self) -> ERR15_R { ERR15_R::new(((self.bits >> 15) & 0x01) != 0) } } impl W { #[doc = "Bit 0 - Error In Channel 0"] #[inline(always)] pub fn err0(&mut self) -> ERR0_W { ERR0_W { w: self } } #[doc = "Bit 1 - Error In Channel 1"] #[inline(always)] pub fn err1(&mut self) -> ERR1_W { ERR1_W { w: self } } #[doc = "Bit 2 - Error In Channel 2"] #[inline(always)] pub fn err2(&mut self) -> ERR2_W { ERR2_W { w: self } } #[doc = "Bit 3 - Error In Channel 3"] #[inline(always)] pub fn err3(&mut self) -> ERR3_W { ERR3_W { w: self } } #[doc = "Bit 4 - Error In Channel 4"] #[inline(always)] pub fn err4(&mut self) -> ERR4_W { ERR4_W { w: self } } #[doc = "Bit 5 - Error In Channel 5"] #[inline(always)] pub fn err5(&mut self) -> ERR5_W { ERR5_W { w: self } } #[doc = "Bit 6 - Error In Channel 6"] #[inline(always)] pub fn err6(&mut self) -> ERR6_W { ERR6_W { w: self } } #[doc = "Bit 7 - Error In Channel 7"] #[inline(always)] pub fn err7(&mut self) -> ERR7_W { ERR7_W { w: self } } #[doc = "Bit 8 - Error In Channel 8"] #[inline(always)] pub fn err8(&mut self) -> ERR8_W { ERR8_W { w: self } } #[doc = "Bit 9 - Error In Channel 9"] #[inline(always)] pub fn err9(&mut self) -> ERR9_W { ERR9_W { w: self } } #[doc = "Bit 10 - Error In Channel 10"] #[inline(always)] pub fn err10(&mut self) -> ERR10_W { ERR10_W { w: self } } #[doc = "Bit 11 - Error In Channel 11"] #[inline(always)] pub fn err11(&mut self) -> ERR11_W { ERR11_W { w: self } } #[doc = "Bit 12 - Error In Channel 12"] #[inline(always)] pub fn err12(&mut self) -> ERR12_W { ERR12_W { w: self } } #[doc = "Bit 13 - Error In Channel 13"] #[inline(always)] pub fn err13(&mut self) -> ERR13_W { ERR13_W { w: self } } #[doc = "Bit 14 - Error In Channel 14"] #[inline(always)] pub fn err14(&mut self) -> ERR14_W { ERR14_W { w: self } } #[doc = "Bit 15 - Error In Channel 15"] #[inline(always)] pub fn err15(&mut self) -> ERR15_W { ERR15_W { w: self } } }