imxrt1062-dma0 0.1.1

An imxrt1062-pac subcrate. See the imxrt1062-pac for more details. This crate is not maintained. Consider using the register access layer provided by the [imxrt-rs](https://github.com/imxrt-rs/imxrt-rs) project. Formerly part of the teensy4-rs project.
Documentation
#[doc = "Reader of register ERR"]
pub type R = crate::R<u32, super::ERR>;
#[doc = "Writer for register ERR"]
pub type W = crate::W<u32, super::ERR>;
#[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"]
    ERR0_0 = 0,
    #[doc = "1: An error in this channel has occurred"]
    ERR0_1 = 1,
}
impl From<ERR0_A> 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<bool, ERR0_A>;
impl ERR0_R {
    #[doc = r"Get enumerated values variant"]
    #[inline(always)]
    pub fn variant(&self) -> ERR0_A {
        match self.bits {
            false => ERR0_A::ERR0_0,
            true => ERR0_A::ERR0_1,
        }
    }
    #[doc = "Checks if the value of the field is `ERR0_0`"]
    #[inline(always)]
    pub fn is_err0_0(&self) -> bool {
        *self == ERR0_A::ERR0_0
    }
    #[doc = "Checks if the value of the field is `ERR0_1`"]
    #[inline(always)]
    pub fn is_err0_1(&self) -> bool {
        *self == ERR0_A::ERR0_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 err0_0(self) -> &'a mut W {
        self.variant(ERR0_A::ERR0_0)
    }
    #[doc = "An error in this channel has occurred"]
    #[inline(always)]
    pub fn err0_1(self) -> &'a mut W {
        self.variant(ERR0_A::ERR0_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"]
    ERR1_0 = 0,
    #[doc = "1: An error in this channel has occurred"]
    ERR1_1 = 1,
}
impl From<ERR1_A> 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<bool, ERR1_A>;
impl ERR1_R {
    #[doc = r"Get enumerated values variant"]
    #[inline(always)]
    pub fn variant(&self) -> ERR1_A {
        match self.bits {
            false => ERR1_A::ERR1_0,
            true => ERR1_A::ERR1_1,
        }
    }
    #[doc = "Checks if the value of the field is `ERR1_0`"]
    #[inline(always)]
    pub fn is_err1_0(&self) -> bool {
        *self == ERR1_A::ERR1_0
    }
    #[doc = "Checks if the value of the field is `ERR1_1`"]
    #[inline(always)]
    pub fn is_err1_1(&self) -> bool {
        *self == ERR1_A::ERR1_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 err1_0(self) -> &'a mut W {
        self.variant(ERR1_A::ERR1_0)
    }
    #[doc = "An error in this channel has occurred"]
    #[inline(always)]
    pub fn err1_1(self) -> &'a mut W {
        self.variant(ERR1_A::ERR1_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"]
    ERR2_0 = 0,
    #[doc = "1: An error in this channel has occurred"]
    ERR2_1 = 1,
}
impl From<ERR2_A> 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<bool, ERR2_A>;
impl ERR2_R {
    #[doc = r"Get enumerated values variant"]
    #[inline(always)]
    pub fn variant(&self) -> ERR2_A {
        match self.bits {
            false => ERR2_A::ERR2_0,
            true => ERR2_A::ERR2_1,
        }
    }
    #[doc = "Checks if the value of the field is `ERR2_0`"]
    #[inline(always)]
    pub fn is_err2_0(&self) -> bool {
        *self == ERR2_A::ERR2_0
    }
    #[doc = "Checks if the value of the field is `ERR2_1`"]
    #[inline(always)]
    pub fn is_err2_1(&self) -> bool {
        *self == ERR2_A::ERR2_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 err2_0(self) -> &'a mut W {
        self.variant(ERR2_A::ERR2_0)
    }
    #[doc = "An error in this channel has occurred"]
    #[inline(always)]
    pub fn err2_1(self) -> &'a mut W {
        self.variant(ERR2_A::ERR2_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"]
    ERR3_0 = 0,
    #[doc = "1: An error in this channel has occurred"]
    ERR3_1 = 1,
}
impl From<ERR3_A> 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<bool, ERR3_A>;
impl ERR3_R {
    #[doc = r"Get enumerated values variant"]
    #[inline(always)]
    pub fn variant(&self) -> ERR3_A {
        match self.bits {
            false => ERR3_A::ERR3_0,
            true => ERR3_A::ERR3_1,
        }
    }
    #[doc = "Checks if the value of the field is `ERR3_0`"]
    #[inline(always)]
    pub fn is_err3_0(&self) -> bool {
        *self == ERR3_A::ERR3_0
    }
    #[doc = "Checks if the value of the field is `ERR3_1`"]
    #[inline(always)]
    pub fn is_err3_1(&self) -> bool {
        *self == ERR3_A::ERR3_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 err3_0(self) -> &'a mut W {
        self.variant(ERR3_A::ERR3_0)
    }
    #[doc = "An error in this channel has occurred"]
    #[inline(always)]
    pub fn err3_1(self) -> &'a mut W {
        self.variant(ERR3_A::ERR3_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"]
    ERR4_0 = 0,
    #[doc = "1: An error in this channel has occurred"]
    ERR4_1 = 1,
}
impl From<ERR4_A> 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<bool, ERR4_A>;
impl ERR4_R {
    #[doc = r"Get enumerated values variant"]
    #[inline(always)]
    pub fn variant(&self) -> ERR4_A {
        match self.bits {
            false => ERR4_A::ERR4_0,
            true => ERR4_A::ERR4_1,
        }
    }
    #[doc = "Checks if the value of the field is `ERR4_0`"]
    #[inline(always)]
    pub fn is_err4_0(&self) -> bool {
        *self == ERR4_A::ERR4_0
    }
    #[doc = "Checks if the value of the field is `ERR4_1`"]
    #[inline(always)]
    pub fn is_err4_1(&self) -> bool {
        *self == ERR4_A::ERR4_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 err4_0(self) -> &'a mut W {
        self.variant(ERR4_A::ERR4_0)
    }
    #[doc = "An error in this channel has occurred"]
    #[inline(always)]
    pub fn err4_1(self) -> &'a mut W {
        self.variant(ERR4_A::ERR4_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"]
    ERR5_0 = 0,
    #[doc = "1: An error in this channel has occurred"]
    ERR5_1 = 1,
}
impl From<ERR5_A> 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<bool, ERR5_A>;
impl ERR5_R {
    #[doc = r"Get enumerated values variant"]
    #[inline(always)]
    pub fn variant(&self) -> ERR5_A {
        match self.bits {
            false => ERR5_A::ERR5_0,
            true => ERR5_A::ERR5_1,
        }
    }
    #[doc = "Checks if the value of the field is `ERR5_0`"]
    #[inline(always)]
    pub fn is_err5_0(&self) -> bool {
        *self == ERR5_A::ERR5_0
    }
    #[doc = "Checks if the value of the field is `ERR5_1`"]
    #[inline(always)]
    pub fn is_err5_1(&self) -> bool {
        *self == ERR5_A::ERR5_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 err5_0(self) -> &'a mut W {
        self.variant(ERR5_A::ERR5_0)
    }
    #[doc = "An error in this channel has occurred"]
    #[inline(always)]
    pub fn err5_1(self) -> &'a mut W {
        self.variant(ERR5_A::ERR5_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"]
    ERR6_0 = 0,
    #[doc = "1: An error in this channel has occurred"]
    ERR6_1 = 1,
}
impl From<ERR6_A> 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<bool, ERR6_A>;
impl ERR6_R {
    #[doc = r"Get enumerated values variant"]
    #[inline(always)]
    pub fn variant(&self) -> ERR6_A {
        match self.bits {
            false => ERR6_A::ERR6_0,
            true => ERR6_A::ERR6_1,
        }
    }
    #[doc = "Checks if the value of the field is `ERR6_0`"]
    #[inline(always)]
    pub fn is_err6_0(&self) -> bool {
        *self == ERR6_A::ERR6_0
    }
    #[doc = "Checks if the value of the field is `ERR6_1`"]
    #[inline(always)]
    pub fn is_err6_1(&self) -> bool {
        *self == ERR6_A::ERR6_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 err6_0(self) -> &'a mut W {
        self.variant(ERR6_A::ERR6_0)
    }
    #[doc = "An error in this channel has occurred"]
    #[inline(always)]
    pub fn err6_1(self) -> &'a mut W {
        self.variant(ERR6_A::ERR6_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"]
    ERR7_0 = 0,
    #[doc = "1: An error in this channel has occurred"]
    ERR7_1 = 1,
}
impl From<ERR7_A> 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<bool, ERR7_A>;
impl ERR7_R {
    #[doc = r"Get enumerated values variant"]
    #[inline(always)]
    pub fn variant(&self) -> ERR7_A {
        match self.bits {
            false => ERR7_A::ERR7_0,
            true => ERR7_A::ERR7_1,
        }
    }
    #[doc = "Checks if the value of the field is `ERR7_0`"]
    #[inline(always)]
    pub fn is_err7_0(&self) -> bool {
        *self == ERR7_A::ERR7_0
    }
    #[doc = "Checks if the value of the field is `ERR7_1`"]
    #[inline(always)]
    pub fn is_err7_1(&self) -> bool {
        *self == ERR7_A::ERR7_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 err7_0(self) -> &'a mut W {
        self.variant(ERR7_A::ERR7_0)
    }
    #[doc = "An error in this channel has occurred"]
    #[inline(always)]
    pub fn err7_1(self) -> &'a mut W {
        self.variant(ERR7_A::ERR7_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"]
    ERR8_0 = 0,
    #[doc = "1: An error in this channel has occurred"]
    ERR8_1 = 1,
}
impl From<ERR8_A> 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<bool, ERR8_A>;
impl ERR8_R {
    #[doc = r"Get enumerated values variant"]
    #[inline(always)]
    pub fn variant(&self) -> ERR8_A {
        match self.bits {
            false => ERR8_A::ERR8_0,
            true => ERR8_A::ERR8_1,
        }
    }
    #[doc = "Checks if the value of the field is `ERR8_0`"]
    #[inline(always)]
    pub fn is_err8_0(&self) -> bool {
        *self == ERR8_A::ERR8_0
    }
    #[doc = "Checks if the value of the field is `ERR8_1`"]
    #[inline(always)]
    pub fn is_err8_1(&self) -> bool {
        *self == ERR8_A::ERR8_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 err8_0(self) -> &'a mut W {
        self.variant(ERR8_A::ERR8_0)
    }
    #[doc = "An error in this channel has occurred"]
    #[inline(always)]
    pub fn err8_1(self) -> &'a mut W {
        self.variant(ERR8_A::ERR8_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"]
    ERR9_0 = 0,
    #[doc = "1: An error in this channel has occurred"]
    ERR9_1 = 1,
}
impl From<ERR9_A> 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<bool, ERR9_A>;
impl ERR9_R {
    #[doc = r"Get enumerated values variant"]
    #[inline(always)]
    pub fn variant(&self) -> ERR9_A {
        match self.bits {
            false => ERR9_A::ERR9_0,
            true => ERR9_A::ERR9_1,
        }
    }
    #[doc = "Checks if the value of the field is `ERR9_0`"]
    #[inline(always)]
    pub fn is_err9_0(&self) -> bool {
        *self == ERR9_A::ERR9_0
    }
    #[doc = "Checks if the value of the field is `ERR9_1`"]
    #[inline(always)]
    pub fn is_err9_1(&self) -> bool {
        *self == ERR9_A::ERR9_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 err9_0(self) -> &'a mut W {
        self.variant(ERR9_A::ERR9_0)
    }
    #[doc = "An error in this channel has occurred"]
    #[inline(always)]
    pub fn err9_1(self) -> &'a mut W {
        self.variant(ERR9_A::ERR9_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"]
    ERR10_0 = 0,
    #[doc = "1: An error in this channel has occurred"]
    ERR10_1 = 1,
}
impl From<ERR10_A> 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<bool, ERR10_A>;
impl ERR10_R {
    #[doc = r"Get enumerated values variant"]
    #[inline(always)]
    pub fn variant(&self) -> ERR10_A {
        match self.bits {
            false => ERR10_A::ERR10_0,
            true => ERR10_A::ERR10_1,
        }
    }
    #[doc = "Checks if the value of the field is `ERR10_0`"]
    #[inline(always)]
    pub fn is_err10_0(&self) -> bool {
        *self == ERR10_A::ERR10_0
    }
    #[doc = "Checks if the value of the field is `ERR10_1`"]
    #[inline(always)]
    pub fn is_err10_1(&self) -> bool {
        *self == ERR10_A::ERR10_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 err10_0(self) -> &'a mut W {
        self.variant(ERR10_A::ERR10_0)
    }
    #[doc = "An error in this channel has occurred"]
    #[inline(always)]
    pub fn err10_1(self) -> &'a mut W {
        self.variant(ERR10_A::ERR10_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"]
    ERR11_0 = 0,
    #[doc = "1: An error in this channel has occurred"]
    ERR11_1 = 1,
}
impl From<ERR11_A> 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<bool, ERR11_A>;
impl ERR11_R {
    #[doc = r"Get enumerated values variant"]
    #[inline(always)]
    pub fn variant(&self) -> ERR11_A {
        match self.bits {
            false => ERR11_A::ERR11_0,
            true => ERR11_A::ERR11_1,
        }
    }
    #[doc = "Checks if the value of the field is `ERR11_0`"]
    #[inline(always)]
    pub fn is_err11_0(&self) -> bool {
        *self == ERR11_A::ERR11_0
    }
    #[doc = "Checks if the value of the field is `ERR11_1`"]
    #[inline(always)]
    pub fn is_err11_1(&self) -> bool {
        *self == ERR11_A::ERR11_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 err11_0(self) -> &'a mut W {
        self.variant(ERR11_A::ERR11_0)
    }
    #[doc = "An error in this channel has occurred"]
    #[inline(always)]
    pub fn err11_1(self) -> &'a mut W {
        self.variant(ERR11_A::ERR11_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"]
    ERR12_0 = 0,
    #[doc = "1: An error in this channel has occurred"]
    ERR12_1 = 1,
}
impl From<ERR12_A> 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<bool, ERR12_A>;
impl ERR12_R {
    #[doc = r"Get enumerated values variant"]
    #[inline(always)]
    pub fn variant(&self) -> ERR12_A {
        match self.bits {
            false => ERR12_A::ERR12_0,
            true => ERR12_A::ERR12_1,
        }
    }
    #[doc = "Checks if the value of the field is `ERR12_0`"]
    #[inline(always)]
    pub fn is_err12_0(&self) -> bool {
        *self == ERR12_A::ERR12_0
    }
    #[doc = "Checks if the value of the field is `ERR12_1`"]
    #[inline(always)]
    pub fn is_err12_1(&self) -> bool {
        *self == ERR12_A::ERR12_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 err12_0(self) -> &'a mut W {
        self.variant(ERR12_A::ERR12_0)
    }
    #[doc = "An error in this channel has occurred"]
    #[inline(always)]
    pub fn err12_1(self) -> &'a mut W {
        self.variant(ERR12_A::ERR12_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"]
    ERR13_0 = 0,
    #[doc = "1: An error in this channel has occurred"]
    ERR13_1 = 1,
}
impl From<ERR13_A> 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<bool, ERR13_A>;
impl ERR13_R {
    #[doc = r"Get enumerated values variant"]
    #[inline(always)]
    pub fn variant(&self) -> ERR13_A {
        match self.bits {
            false => ERR13_A::ERR13_0,
            true => ERR13_A::ERR13_1,
        }
    }
    #[doc = "Checks if the value of the field is `ERR13_0`"]
    #[inline(always)]
    pub fn is_err13_0(&self) -> bool {
        *self == ERR13_A::ERR13_0
    }
    #[doc = "Checks if the value of the field is `ERR13_1`"]
    #[inline(always)]
    pub fn is_err13_1(&self) -> bool {
        *self == ERR13_A::ERR13_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 err13_0(self) -> &'a mut W {
        self.variant(ERR13_A::ERR13_0)
    }
    #[doc = "An error in this channel has occurred"]
    #[inline(always)]
    pub fn err13_1(self) -> &'a mut W {
        self.variant(ERR13_A::ERR13_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"]
    ERR14_0 = 0,
    #[doc = "1: An error in this channel has occurred"]
    ERR14_1 = 1,
}
impl From<ERR14_A> 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<bool, ERR14_A>;
impl ERR14_R {
    #[doc = r"Get enumerated values variant"]
    #[inline(always)]
    pub fn variant(&self) -> ERR14_A {
        match self.bits {
            false => ERR14_A::ERR14_0,
            true => ERR14_A::ERR14_1,
        }
    }
    #[doc = "Checks if the value of the field is `ERR14_0`"]
    #[inline(always)]
    pub fn is_err14_0(&self) -> bool {
        *self == ERR14_A::ERR14_0
    }
    #[doc = "Checks if the value of the field is `ERR14_1`"]
    #[inline(always)]
    pub fn is_err14_1(&self) -> bool {
        *self == ERR14_A::ERR14_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 err14_0(self) -> &'a mut W {
        self.variant(ERR14_A::ERR14_0)
    }
    #[doc = "An error in this channel has occurred"]
    #[inline(always)]
    pub fn err14_1(self) -> &'a mut W {
        self.variant(ERR14_A::ERR14_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"]
    ERR15_0 = 0,
    #[doc = "1: An error in this channel has occurred"]
    ERR15_1 = 1,
}
impl From<ERR15_A> 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<bool, ERR15_A>;
impl ERR15_R {
    #[doc = r"Get enumerated values variant"]
    #[inline(always)]
    pub fn variant(&self) -> ERR15_A {
        match self.bits {
            false => ERR15_A::ERR15_0,
            true => ERR15_A::ERR15_1,
        }
    }
    #[doc = "Checks if the value of the field is `ERR15_0`"]
    #[inline(always)]
    pub fn is_err15_0(&self) -> bool {
        *self == ERR15_A::ERR15_0
    }
    #[doc = "Checks if the value of the field is `ERR15_1`"]
    #[inline(always)]
    pub fn is_err15_1(&self) -> bool {
        *self == ERR15_A::ERR15_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 err15_0(self) -> &'a mut W {
        self.variant(ERR15_A::ERR15_0)
    }
    #[doc = "An error in this channel has occurred"]
    #[inline(always)]
    pub fn err15_1(self) -> &'a mut W {
        self.variant(ERR15_A::ERR15_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
    }
}
#[doc = "Error In Channel 16\n\nValue on reset: 0"]
#[derive(Clone, Copy, Debug, PartialEq)]
pub enum ERR16_A {
    #[doc = "0: An error in this channel has not occurred"]
    ERR16_0 = 0,
    #[doc = "1: An error in this channel has occurred"]
    ERR16_1 = 1,
}
impl From<ERR16_A> for bool {
    #[inline(always)]
    fn from(variant: ERR16_A) -> Self {
        variant as u8 != 0
    }
}
#[doc = "Reader of field `ERR16`"]
pub type ERR16_R = crate::R<bool, ERR16_A>;
impl ERR16_R {
    #[doc = r"Get enumerated values variant"]
    #[inline(always)]
    pub fn variant(&self) -> ERR16_A {
        match self.bits {
            false => ERR16_A::ERR16_0,
            true => ERR16_A::ERR16_1,
        }
    }
    #[doc = "Checks if the value of the field is `ERR16_0`"]
    #[inline(always)]
    pub fn is_err16_0(&self) -> bool {
        *self == ERR16_A::ERR16_0
    }
    #[doc = "Checks if the value of the field is `ERR16_1`"]
    #[inline(always)]
    pub fn is_err16_1(&self) -> bool {
        *self == ERR16_A::ERR16_1
    }
}
#[doc = "Write proxy for field `ERR16`"]
pub struct ERR16_W<'a> {
    w: &'a mut W,
}
impl<'a> ERR16_W<'a> {
    #[doc = r"Writes `variant` to the field"]
    #[inline(always)]
    pub fn variant(self, variant: ERR16_A) -> &'a mut W {
        {
            self.bit(variant.into())
        }
    }
    #[doc = "An error in this channel has not occurred"]
    #[inline(always)]
    pub fn err16_0(self) -> &'a mut W {
        self.variant(ERR16_A::ERR16_0)
    }
    #[doc = "An error in this channel has occurred"]
    #[inline(always)]
    pub fn err16_1(self) -> &'a mut W {
        self.variant(ERR16_A::ERR16_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 << 16)) | (((value as u32) & 0x01) << 16);
        self.w
    }
}
#[doc = "Error In Channel 17\n\nValue on reset: 0"]
#[derive(Clone, Copy, Debug, PartialEq)]
pub enum ERR17_A {
    #[doc = "0: An error in this channel has not occurred"]
    ERR17_0 = 0,
    #[doc = "1: An error in this channel has occurred"]
    ERR17_1 = 1,
}
impl From<ERR17_A> for bool {
    #[inline(always)]
    fn from(variant: ERR17_A) -> Self {
        variant as u8 != 0
    }
}
#[doc = "Reader of field `ERR17`"]
pub type ERR17_R = crate::R<bool, ERR17_A>;
impl ERR17_R {
    #[doc = r"Get enumerated values variant"]
    #[inline(always)]
    pub fn variant(&self) -> ERR17_A {
        match self.bits {
            false => ERR17_A::ERR17_0,
            true => ERR17_A::ERR17_1,
        }
    }
    #[doc = "Checks if the value of the field is `ERR17_0`"]
    #[inline(always)]
    pub fn is_err17_0(&self) -> bool {
        *self == ERR17_A::ERR17_0
    }
    #[doc = "Checks if the value of the field is `ERR17_1`"]
    #[inline(always)]
    pub fn is_err17_1(&self) -> bool {
        *self == ERR17_A::ERR17_1
    }
}
#[doc = "Write proxy for field `ERR17`"]
pub struct ERR17_W<'a> {
    w: &'a mut W,
}
impl<'a> ERR17_W<'a> {
    #[doc = r"Writes `variant` to the field"]
    #[inline(always)]
    pub fn variant(self, variant: ERR17_A) -> &'a mut W {
        {
            self.bit(variant.into())
        }
    }
    #[doc = "An error in this channel has not occurred"]
    #[inline(always)]
    pub fn err17_0(self) -> &'a mut W {
        self.variant(ERR17_A::ERR17_0)
    }
    #[doc = "An error in this channel has occurred"]
    #[inline(always)]
    pub fn err17_1(self) -> &'a mut W {
        self.variant(ERR17_A::ERR17_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 << 17)) | (((value as u32) & 0x01) << 17);
        self.w
    }
}
#[doc = "Error In Channel 18\n\nValue on reset: 0"]
#[derive(Clone, Copy, Debug, PartialEq)]
pub enum ERR18_A {
    #[doc = "0: An error in this channel has not occurred"]
    ERR18_0 = 0,
    #[doc = "1: An error in this channel has occurred"]
    ERR18_1 = 1,
}
impl From<ERR18_A> for bool {
    #[inline(always)]
    fn from(variant: ERR18_A) -> Self {
        variant as u8 != 0
    }
}
#[doc = "Reader of field `ERR18`"]
pub type ERR18_R = crate::R<bool, ERR18_A>;
impl ERR18_R {
    #[doc = r"Get enumerated values variant"]
    #[inline(always)]
    pub fn variant(&self) -> ERR18_A {
        match self.bits {
            false => ERR18_A::ERR18_0,
            true => ERR18_A::ERR18_1,
        }
    }
    #[doc = "Checks if the value of the field is `ERR18_0`"]
    #[inline(always)]
    pub fn is_err18_0(&self) -> bool {
        *self == ERR18_A::ERR18_0
    }
    #[doc = "Checks if the value of the field is `ERR18_1`"]
    #[inline(always)]
    pub fn is_err18_1(&self) -> bool {
        *self == ERR18_A::ERR18_1
    }
}
#[doc = "Write proxy for field `ERR18`"]
pub struct ERR18_W<'a> {
    w: &'a mut W,
}
impl<'a> ERR18_W<'a> {
    #[doc = r"Writes `variant` to the field"]
    #[inline(always)]
    pub fn variant(self, variant: ERR18_A) -> &'a mut W {
        {
            self.bit(variant.into())
        }
    }
    #[doc = "An error in this channel has not occurred"]
    #[inline(always)]
    pub fn err18_0(self) -> &'a mut W {
        self.variant(ERR18_A::ERR18_0)
    }
    #[doc = "An error in this channel has occurred"]
    #[inline(always)]
    pub fn err18_1(self) -> &'a mut W {
        self.variant(ERR18_A::ERR18_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 << 18)) | (((value as u32) & 0x01) << 18);
        self.w
    }
}
#[doc = "Error In Channel 19\n\nValue on reset: 0"]
#[derive(Clone, Copy, Debug, PartialEq)]
pub enum ERR19_A {
    #[doc = "0: An error in this channel has not occurred"]
    ERR19_0 = 0,
    #[doc = "1: An error in this channel has occurred"]
    ERR19_1 = 1,
}
impl From<ERR19_A> for bool {
    #[inline(always)]
    fn from(variant: ERR19_A) -> Self {
        variant as u8 != 0
    }
}
#[doc = "Reader of field `ERR19`"]
pub type ERR19_R = crate::R<bool, ERR19_A>;
impl ERR19_R {
    #[doc = r"Get enumerated values variant"]
    #[inline(always)]
    pub fn variant(&self) -> ERR19_A {
        match self.bits {
            false => ERR19_A::ERR19_0,
            true => ERR19_A::ERR19_1,
        }
    }
    #[doc = "Checks if the value of the field is `ERR19_0`"]
    #[inline(always)]
    pub fn is_err19_0(&self) -> bool {
        *self == ERR19_A::ERR19_0
    }
    #[doc = "Checks if the value of the field is `ERR19_1`"]
    #[inline(always)]
    pub fn is_err19_1(&self) -> bool {
        *self == ERR19_A::ERR19_1
    }
}
#[doc = "Write proxy for field `ERR19`"]
pub struct ERR19_W<'a> {
    w: &'a mut W,
}
impl<'a> ERR19_W<'a> {
    #[doc = r"Writes `variant` to the field"]
    #[inline(always)]
    pub fn variant(self, variant: ERR19_A) -> &'a mut W {
        {
            self.bit(variant.into())
        }
    }
    #[doc = "An error in this channel has not occurred"]
    #[inline(always)]
    pub fn err19_0(self) -> &'a mut W {
        self.variant(ERR19_A::ERR19_0)
    }
    #[doc = "An error in this channel has occurred"]
    #[inline(always)]
    pub fn err19_1(self) -> &'a mut W {
        self.variant(ERR19_A::ERR19_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 << 19)) | (((value as u32) & 0x01) << 19);
        self.w
    }
}
#[doc = "Error In Channel 20\n\nValue on reset: 0"]
#[derive(Clone, Copy, Debug, PartialEq)]
pub enum ERR20_A {
    #[doc = "0: An error in this channel has not occurred"]
    ERR20_0 = 0,
    #[doc = "1: An error in this channel has occurred"]
    ERR20_1 = 1,
}
impl From<ERR20_A> for bool {
    #[inline(always)]
    fn from(variant: ERR20_A) -> Self {
        variant as u8 != 0
    }
}
#[doc = "Reader of field `ERR20`"]
pub type ERR20_R = crate::R<bool, ERR20_A>;
impl ERR20_R {
    #[doc = r"Get enumerated values variant"]
    #[inline(always)]
    pub fn variant(&self) -> ERR20_A {
        match self.bits {
            false => ERR20_A::ERR20_0,
            true => ERR20_A::ERR20_1,
        }
    }
    #[doc = "Checks if the value of the field is `ERR20_0`"]
    #[inline(always)]
    pub fn is_err20_0(&self) -> bool {
        *self == ERR20_A::ERR20_0
    }
    #[doc = "Checks if the value of the field is `ERR20_1`"]
    #[inline(always)]
    pub fn is_err20_1(&self) -> bool {
        *self == ERR20_A::ERR20_1
    }
}
#[doc = "Write proxy for field `ERR20`"]
pub struct ERR20_W<'a> {
    w: &'a mut W,
}
impl<'a> ERR20_W<'a> {
    #[doc = r"Writes `variant` to the field"]
    #[inline(always)]
    pub fn variant(self, variant: ERR20_A) -> &'a mut W {
        {
            self.bit(variant.into())
        }
    }
    #[doc = "An error in this channel has not occurred"]
    #[inline(always)]
    pub fn err20_0(self) -> &'a mut W {
        self.variant(ERR20_A::ERR20_0)
    }
    #[doc = "An error in this channel has occurred"]
    #[inline(always)]
    pub fn err20_1(self) -> &'a mut W {
        self.variant(ERR20_A::ERR20_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 << 20)) | (((value as u32) & 0x01) << 20);
        self.w
    }
}
#[doc = "Error In Channel 21\n\nValue on reset: 0"]
#[derive(Clone, Copy, Debug, PartialEq)]
pub enum ERR21_A {
    #[doc = "0: An error in this channel has not occurred"]
    ERR21_0 = 0,
    #[doc = "1: An error in this channel has occurred"]
    ERR21_1 = 1,
}
impl From<ERR21_A> for bool {
    #[inline(always)]
    fn from(variant: ERR21_A) -> Self {
        variant as u8 != 0
    }
}
#[doc = "Reader of field `ERR21`"]
pub type ERR21_R = crate::R<bool, ERR21_A>;
impl ERR21_R {
    #[doc = r"Get enumerated values variant"]
    #[inline(always)]
    pub fn variant(&self) -> ERR21_A {
        match self.bits {
            false => ERR21_A::ERR21_0,
            true => ERR21_A::ERR21_1,
        }
    }
    #[doc = "Checks if the value of the field is `ERR21_0`"]
    #[inline(always)]
    pub fn is_err21_0(&self) -> bool {
        *self == ERR21_A::ERR21_0
    }
    #[doc = "Checks if the value of the field is `ERR21_1`"]
    #[inline(always)]
    pub fn is_err21_1(&self) -> bool {
        *self == ERR21_A::ERR21_1
    }
}
#[doc = "Write proxy for field `ERR21`"]
pub struct ERR21_W<'a> {
    w: &'a mut W,
}
impl<'a> ERR21_W<'a> {
    #[doc = r"Writes `variant` to the field"]
    #[inline(always)]
    pub fn variant(self, variant: ERR21_A) -> &'a mut W {
        {
            self.bit(variant.into())
        }
    }
    #[doc = "An error in this channel has not occurred"]
    #[inline(always)]
    pub fn err21_0(self) -> &'a mut W {
        self.variant(ERR21_A::ERR21_0)
    }
    #[doc = "An error in this channel has occurred"]
    #[inline(always)]
    pub fn err21_1(self) -> &'a mut W {
        self.variant(ERR21_A::ERR21_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 << 21)) | (((value as u32) & 0x01) << 21);
        self.w
    }
}
#[doc = "Error In Channel 22\n\nValue on reset: 0"]
#[derive(Clone, Copy, Debug, PartialEq)]
pub enum ERR22_A {
    #[doc = "0: An error in this channel has not occurred"]
    ERR22_0 = 0,
    #[doc = "1: An error in this channel has occurred"]
    ERR22_1 = 1,
}
impl From<ERR22_A> for bool {
    #[inline(always)]
    fn from(variant: ERR22_A) -> Self {
        variant as u8 != 0
    }
}
#[doc = "Reader of field `ERR22`"]
pub type ERR22_R = crate::R<bool, ERR22_A>;
impl ERR22_R {
    #[doc = r"Get enumerated values variant"]
    #[inline(always)]
    pub fn variant(&self) -> ERR22_A {
        match self.bits {
            false => ERR22_A::ERR22_0,
            true => ERR22_A::ERR22_1,
        }
    }
    #[doc = "Checks if the value of the field is `ERR22_0`"]
    #[inline(always)]
    pub fn is_err22_0(&self) -> bool {
        *self == ERR22_A::ERR22_0
    }
    #[doc = "Checks if the value of the field is `ERR22_1`"]
    #[inline(always)]
    pub fn is_err22_1(&self) -> bool {
        *self == ERR22_A::ERR22_1
    }
}
#[doc = "Write proxy for field `ERR22`"]
pub struct ERR22_W<'a> {
    w: &'a mut W,
}
impl<'a> ERR22_W<'a> {
    #[doc = r"Writes `variant` to the field"]
    #[inline(always)]
    pub fn variant(self, variant: ERR22_A) -> &'a mut W {
        {
            self.bit(variant.into())
        }
    }
    #[doc = "An error in this channel has not occurred"]
    #[inline(always)]
    pub fn err22_0(self) -> &'a mut W {
        self.variant(ERR22_A::ERR22_0)
    }
    #[doc = "An error in this channel has occurred"]
    #[inline(always)]
    pub fn err22_1(self) -> &'a mut W {
        self.variant(ERR22_A::ERR22_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 << 22)) | (((value as u32) & 0x01) << 22);
        self.w
    }
}
#[doc = "Error In Channel 23\n\nValue on reset: 0"]
#[derive(Clone, Copy, Debug, PartialEq)]
pub enum ERR23_A {
    #[doc = "0: An error in this channel has not occurred"]
    ERR23_0 = 0,
    #[doc = "1: An error in this channel has occurred"]
    ERR23_1 = 1,
}
impl From<ERR23_A> for bool {
    #[inline(always)]
    fn from(variant: ERR23_A) -> Self {
        variant as u8 != 0
    }
}
#[doc = "Reader of field `ERR23`"]
pub type ERR23_R = crate::R<bool, ERR23_A>;
impl ERR23_R {
    #[doc = r"Get enumerated values variant"]
    #[inline(always)]
    pub fn variant(&self) -> ERR23_A {
        match self.bits {
            false => ERR23_A::ERR23_0,
            true => ERR23_A::ERR23_1,
        }
    }
    #[doc = "Checks if the value of the field is `ERR23_0`"]
    #[inline(always)]
    pub fn is_err23_0(&self) -> bool {
        *self == ERR23_A::ERR23_0
    }
    #[doc = "Checks if the value of the field is `ERR23_1`"]
    #[inline(always)]
    pub fn is_err23_1(&self) -> bool {
        *self == ERR23_A::ERR23_1
    }
}
#[doc = "Write proxy for field `ERR23`"]
pub struct ERR23_W<'a> {
    w: &'a mut W,
}
impl<'a> ERR23_W<'a> {
    #[doc = r"Writes `variant` to the field"]
    #[inline(always)]
    pub fn variant(self, variant: ERR23_A) -> &'a mut W {
        {
            self.bit(variant.into())
        }
    }
    #[doc = "An error in this channel has not occurred"]
    #[inline(always)]
    pub fn err23_0(self) -> &'a mut W {
        self.variant(ERR23_A::ERR23_0)
    }
    #[doc = "An error in this channel has occurred"]
    #[inline(always)]
    pub fn err23_1(self) -> &'a mut W {
        self.variant(ERR23_A::ERR23_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 << 23)) | (((value as u32) & 0x01) << 23);
        self.w
    }
}
#[doc = "Error In Channel 24\n\nValue on reset: 0"]
#[derive(Clone, Copy, Debug, PartialEq)]
pub enum ERR24_A {
    #[doc = "0: An error in this channel has not occurred"]
    ERR24_0 = 0,
    #[doc = "1: An error in this channel has occurred"]
    ERR24_1 = 1,
}
impl From<ERR24_A> for bool {
    #[inline(always)]
    fn from(variant: ERR24_A) -> Self {
        variant as u8 != 0
    }
}
#[doc = "Reader of field `ERR24`"]
pub type ERR24_R = crate::R<bool, ERR24_A>;
impl ERR24_R {
    #[doc = r"Get enumerated values variant"]
    #[inline(always)]
    pub fn variant(&self) -> ERR24_A {
        match self.bits {
            false => ERR24_A::ERR24_0,
            true => ERR24_A::ERR24_1,
        }
    }
    #[doc = "Checks if the value of the field is `ERR24_0`"]
    #[inline(always)]
    pub fn is_err24_0(&self) -> bool {
        *self == ERR24_A::ERR24_0
    }
    #[doc = "Checks if the value of the field is `ERR24_1`"]
    #[inline(always)]
    pub fn is_err24_1(&self) -> bool {
        *self == ERR24_A::ERR24_1
    }
}
#[doc = "Write proxy for field `ERR24`"]
pub struct ERR24_W<'a> {
    w: &'a mut W,
}
impl<'a> ERR24_W<'a> {
    #[doc = r"Writes `variant` to the field"]
    #[inline(always)]
    pub fn variant(self, variant: ERR24_A) -> &'a mut W {
        {
            self.bit(variant.into())
        }
    }
    #[doc = "An error in this channel has not occurred"]
    #[inline(always)]
    pub fn err24_0(self) -> &'a mut W {
        self.variant(ERR24_A::ERR24_0)
    }
    #[doc = "An error in this channel has occurred"]
    #[inline(always)]
    pub fn err24_1(self) -> &'a mut W {
        self.variant(ERR24_A::ERR24_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 << 24)) | (((value as u32) & 0x01) << 24);
        self.w
    }
}
#[doc = "Error In Channel 25\n\nValue on reset: 0"]
#[derive(Clone, Copy, Debug, PartialEq)]
pub enum ERR25_A {
    #[doc = "0: An error in this channel has not occurred"]
    ERR25_0 = 0,
    #[doc = "1: An error in this channel has occurred"]
    ERR25_1 = 1,
}
impl From<ERR25_A> for bool {
    #[inline(always)]
    fn from(variant: ERR25_A) -> Self {
        variant as u8 != 0
    }
}
#[doc = "Reader of field `ERR25`"]
pub type ERR25_R = crate::R<bool, ERR25_A>;
impl ERR25_R {
    #[doc = r"Get enumerated values variant"]
    #[inline(always)]
    pub fn variant(&self) -> ERR25_A {
        match self.bits {
            false => ERR25_A::ERR25_0,
            true => ERR25_A::ERR25_1,
        }
    }
    #[doc = "Checks if the value of the field is `ERR25_0`"]
    #[inline(always)]
    pub fn is_err25_0(&self) -> bool {
        *self == ERR25_A::ERR25_0
    }
    #[doc = "Checks if the value of the field is `ERR25_1`"]
    #[inline(always)]
    pub fn is_err25_1(&self) -> bool {
        *self == ERR25_A::ERR25_1
    }
}
#[doc = "Write proxy for field `ERR25`"]
pub struct ERR25_W<'a> {
    w: &'a mut W,
}
impl<'a> ERR25_W<'a> {
    #[doc = r"Writes `variant` to the field"]
    #[inline(always)]
    pub fn variant(self, variant: ERR25_A) -> &'a mut W {
        {
            self.bit(variant.into())
        }
    }
    #[doc = "An error in this channel has not occurred"]
    #[inline(always)]
    pub fn err25_0(self) -> &'a mut W {
        self.variant(ERR25_A::ERR25_0)
    }
    #[doc = "An error in this channel has occurred"]
    #[inline(always)]
    pub fn err25_1(self) -> &'a mut W {
        self.variant(ERR25_A::ERR25_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 << 25)) | (((value as u32) & 0x01) << 25);
        self.w
    }
}
#[doc = "Error In Channel 26\n\nValue on reset: 0"]
#[derive(Clone, Copy, Debug, PartialEq)]
pub enum ERR26_A {
    #[doc = "0: An error in this channel has not occurred"]
    ERR26_0 = 0,
    #[doc = "1: An error in this channel has occurred"]
    ERR26_1 = 1,
}
impl From<ERR26_A> for bool {
    #[inline(always)]
    fn from(variant: ERR26_A) -> Self {
        variant as u8 != 0
    }
}
#[doc = "Reader of field `ERR26`"]
pub type ERR26_R = crate::R<bool, ERR26_A>;
impl ERR26_R {
    #[doc = r"Get enumerated values variant"]
    #[inline(always)]
    pub fn variant(&self) -> ERR26_A {
        match self.bits {
            false => ERR26_A::ERR26_0,
            true => ERR26_A::ERR26_1,
        }
    }
    #[doc = "Checks if the value of the field is `ERR26_0`"]
    #[inline(always)]
    pub fn is_err26_0(&self) -> bool {
        *self == ERR26_A::ERR26_0
    }
    #[doc = "Checks if the value of the field is `ERR26_1`"]
    #[inline(always)]
    pub fn is_err26_1(&self) -> bool {
        *self == ERR26_A::ERR26_1
    }
}
#[doc = "Write proxy for field `ERR26`"]
pub struct ERR26_W<'a> {
    w: &'a mut W,
}
impl<'a> ERR26_W<'a> {
    #[doc = r"Writes `variant` to the field"]
    #[inline(always)]
    pub fn variant(self, variant: ERR26_A) -> &'a mut W {
        {
            self.bit(variant.into())
        }
    }
    #[doc = "An error in this channel has not occurred"]
    #[inline(always)]
    pub fn err26_0(self) -> &'a mut W {
        self.variant(ERR26_A::ERR26_0)
    }
    #[doc = "An error in this channel has occurred"]
    #[inline(always)]
    pub fn err26_1(self) -> &'a mut W {
        self.variant(ERR26_A::ERR26_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 << 26)) | (((value as u32) & 0x01) << 26);
        self.w
    }
}
#[doc = "Error In Channel 27\n\nValue on reset: 0"]
#[derive(Clone, Copy, Debug, PartialEq)]
pub enum ERR27_A {
    #[doc = "0: An error in this channel has not occurred"]
    ERR27_0 = 0,
    #[doc = "1: An error in this channel has occurred"]
    ERR27_1 = 1,
}
impl From<ERR27_A> for bool {
    #[inline(always)]
    fn from(variant: ERR27_A) -> Self {
        variant as u8 != 0
    }
}
#[doc = "Reader of field `ERR27`"]
pub type ERR27_R = crate::R<bool, ERR27_A>;
impl ERR27_R {
    #[doc = r"Get enumerated values variant"]
    #[inline(always)]
    pub fn variant(&self) -> ERR27_A {
        match self.bits {
            false => ERR27_A::ERR27_0,
            true => ERR27_A::ERR27_1,
        }
    }
    #[doc = "Checks if the value of the field is `ERR27_0`"]
    #[inline(always)]
    pub fn is_err27_0(&self) -> bool {
        *self == ERR27_A::ERR27_0
    }
    #[doc = "Checks if the value of the field is `ERR27_1`"]
    #[inline(always)]
    pub fn is_err27_1(&self) -> bool {
        *self == ERR27_A::ERR27_1
    }
}
#[doc = "Write proxy for field `ERR27`"]
pub struct ERR27_W<'a> {
    w: &'a mut W,
}
impl<'a> ERR27_W<'a> {
    #[doc = r"Writes `variant` to the field"]
    #[inline(always)]
    pub fn variant(self, variant: ERR27_A) -> &'a mut W {
        {
            self.bit(variant.into())
        }
    }
    #[doc = "An error in this channel has not occurred"]
    #[inline(always)]
    pub fn err27_0(self) -> &'a mut W {
        self.variant(ERR27_A::ERR27_0)
    }
    #[doc = "An error in this channel has occurred"]
    #[inline(always)]
    pub fn err27_1(self) -> &'a mut W {
        self.variant(ERR27_A::ERR27_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 << 27)) | (((value as u32) & 0x01) << 27);
        self.w
    }
}
#[doc = "Error In Channel 28\n\nValue on reset: 0"]
#[derive(Clone, Copy, Debug, PartialEq)]
pub enum ERR28_A {
    #[doc = "0: An error in this channel has not occurred"]
    ERR28_0 = 0,
    #[doc = "1: An error in this channel has occurred"]
    ERR28_1 = 1,
}
impl From<ERR28_A> for bool {
    #[inline(always)]
    fn from(variant: ERR28_A) -> Self {
        variant as u8 != 0
    }
}
#[doc = "Reader of field `ERR28`"]
pub type ERR28_R = crate::R<bool, ERR28_A>;
impl ERR28_R {
    #[doc = r"Get enumerated values variant"]
    #[inline(always)]
    pub fn variant(&self) -> ERR28_A {
        match self.bits {
            false => ERR28_A::ERR28_0,
            true => ERR28_A::ERR28_1,
        }
    }
    #[doc = "Checks if the value of the field is `ERR28_0`"]
    #[inline(always)]
    pub fn is_err28_0(&self) -> bool {
        *self == ERR28_A::ERR28_0
    }
    #[doc = "Checks if the value of the field is `ERR28_1`"]
    #[inline(always)]
    pub fn is_err28_1(&self) -> bool {
        *self == ERR28_A::ERR28_1
    }
}
#[doc = "Write proxy for field `ERR28`"]
pub struct ERR28_W<'a> {
    w: &'a mut W,
}
impl<'a> ERR28_W<'a> {
    #[doc = r"Writes `variant` to the field"]
    #[inline(always)]
    pub fn variant(self, variant: ERR28_A) -> &'a mut W {
        {
            self.bit(variant.into())
        }
    }
    #[doc = "An error in this channel has not occurred"]
    #[inline(always)]
    pub fn err28_0(self) -> &'a mut W {
        self.variant(ERR28_A::ERR28_0)
    }
    #[doc = "An error in this channel has occurred"]
    #[inline(always)]
    pub fn err28_1(self) -> &'a mut W {
        self.variant(ERR28_A::ERR28_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 << 28)) | (((value as u32) & 0x01) << 28);
        self.w
    }
}
#[doc = "Error In Channel 29\n\nValue on reset: 0"]
#[derive(Clone, Copy, Debug, PartialEq)]
pub enum ERR29_A {
    #[doc = "0: An error in this channel has not occurred"]
    ERR29_0 = 0,
    #[doc = "1: An error in this channel has occurred"]
    ERR29_1 = 1,
}
impl From<ERR29_A> for bool {
    #[inline(always)]
    fn from(variant: ERR29_A) -> Self {
        variant as u8 != 0
    }
}
#[doc = "Reader of field `ERR29`"]
pub type ERR29_R = crate::R<bool, ERR29_A>;
impl ERR29_R {
    #[doc = r"Get enumerated values variant"]
    #[inline(always)]
    pub fn variant(&self) -> ERR29_A {
        match self.bits {
            false => ERR29_A::ERR29_0,
            true => ERR29_A::ERR29_1,
        }
    }
    #[doc = "Checks if the value of the field is `ERR29_0`"]
    #[inline(always)]
    pub fn is_err29_0(&self) -> bool {
        *self == ERR29_A::ERR29_0
    }
    #[doc = "Checks if the value of the field is `ERR29_1`"]
    #[inline(always)]
    pub fn is_err29_1(&self) -> bool {
        *self == ERR29_A::ERR29_1
    }
}
#[doc = "Write proxy for field `ERR29`"]
pub struct ERR29_W<'a> {
    w: &'a mut W,
}
impl<'a> ERR29_W<'a> {
    #[doc = r"Writes `variant` to the field"]
    #[inline(always)]
    pub fn variant(self, variant: ERR29_A) -> &'a mut W {
        {
            self.bit(variant.into())
        }
    }
    #[doc = "An error in this channel has not occurred"]
    #[inline(always)]
    pub fn err29_0(self) -> &'a mut W {
        self.variant(ERR29_A::ERR29_0)
    }
    #[doc = "An error in this channel has occurred"]
    #[inline(always)]
    pub fn err29_1(self) -> &'a mut W {
        self.variant(ERR29_A::ERR29_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 << 29)) | (((value as u32) & 0x01) << 29);
        self.w
    }
}
#[doc = "Error In Channel 30\n\nValue on reset: 0"]
#[derive(Clone, Copy, Debug, PartialEq)]
pub enum ERR30_A {
    #[doc = "0: An error in this channel has not occurred"]
    ERR30_0 = 0,
    #[doc = "1: An error in this channel has occurred"]
    ERR30_1 = 1,
}
impl From<ERR30_A> for bool {
    #[inline(always)]
    fn from(variant: ERR30_A) -> Self {
        variant as u8 != 0
    }
}
#[doc = "Reader of field `ERR30`"]
pub type ERR30_R = crate::R<bool, ERR30_A>;
impl ERR30_R {
    #[doc = r"Get enumerated values variant"]
    #[inline(always)]
    pub fn variant(&self) -> ERR30_A {
        match self.bits {
            false => ERR30_A::ERR30_0,
            true => ERR30_A::ERR30_1,
        }
    }
    #[doc = "Checks if the value of the field is `ERR30_0`"]
    #[inline(always)]
    pub fn is_err30_0(&self) -> bool {
        *self == ERR30_A::ERR30_0
    }
    #[doc = "Checks if the value of the field is `ERR30_1`"]
    #[inline(always)]
    pub fn is_err30_1(&self) -> bool {
        *self == ERR30_A::ERR30_1
    }
}
#[doc = "Write proxy for field `ERR30`"]
pub struct ERR30_W<'a> {
    w: &'a mut W,
}
impl<'a> ERR30_W<'a> {
    #[doc = r"Writes `variant` to the field"]
    #[inline(always)]
    pub fn variant(self, variant: ERR30_A) -> &'a mut W {
        {
            self.bit(variant.into())
        }
    }
    #[doc = "An error in this channel has not occurred"]
    #[inline(always)]
    pub fn err30_0(self) -> &'a mut W {
        self.variant(ERR30_A::ERR30_0)
    }
    #[doc = "An error in this channel has occurred"]
    #[inline(always)]
    pub fn err30_1(self) -> &'a mut W {
        self.variant(ERR30_A::ERR30_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 << 30)) | (((value as u32) & 0x01) << 30);
        self.w
    }
}
#[doc = "Error In Channel 31\n\nValue on reset: 0"]
#[derive(Clone, Copy, Debug, PartialEq)]
pub enum ERR31_A {
    #[doc = "0: An error in this channel has not occurred"]
    ERR31_0 = 0,
    #[doc = "1: An error in this channel has occurred"]
    ERR31_1 = 1,
}
impl From<ERR31_A> for bool {
    #[inline(always)]
    fn from(variant: ERR31_A) -> Self {
        variant as u8 != 0
    }
}
#[doc = "Reader of field `ERR31`"]
pub type ERR31_R = crate::R<bool, ERR31_A>;
impl ERR31_R {
    #[doc = r"Get enumerated values variant"]
    #[inline(always)]
    pub fn variant(&self) -> ERR31_A {
        match self.bits {
            false => ERR31_A::ERR31_0,
            true => ERR31_A::ERR31_1,
        }
    }
    #[doc = "Checks if the value of the field is `ERR31_0`"]
    #[inline(always)]
    pub fn is_err31_0(&self) -> bool {
        *self == ERR31_A::ERR31_0
    }
    #[doc = "Checks if the value of the field is `ERR31_1`"]
    #[inline(always)]
    pub fn is_err31_1(&self) -> bool {
        *self == ERR31_A::ERR31_1
    }
}
#[doc = "Write proxy for field `ERR31`"]
pub struct ERR31_W<'a> {
    w: &'a mut W,
}
impl<'a> ERR31_W<'a> {
    #[doc = r"Writes `variant` to the field"]
    #[inline(always)]
    pub fn variant(self, variant: ERR31_A) -> &'a mut W {
        {
            self.bit(variant.into())
        }
    }
    #[doc = "An error in this channel has not occurred"]
    #[inline(always)]
    pub fn err31_0(self) -> &'a mut W {
        self.variant(ERR31_A::ERR31_0)
    }
    #[doc = "An error in this channel has occurred"]
    #[inline(always)]
    pub fn err31_1(self) -> &'a mut W {
        self.variant(ERR31_A::ERR31_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 << 31)) | (((value as u32) & 0x01) << 31);
        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)
    }
    #[doc = "Bit 16 - Error In Channel 16"]
    #[inline(always)]
    pub fn err16(&self) -> ERR16_R {
        ERR16_R::new(((self.bits >> 16) & 0x01) != 0)
    }
    #[doc = "Bit 17 - Error In Channel 17"]
    #[inline(always)]
    pub fn err17(&self) -> ERR17_R {
        ERR17_R::new(((self.bits >> 17) & 0x01) != 0)
    }
    #[doc = "Bit 18 - Error In Channel 18"]
    #[inline(always)]
    pub fn err18(&self) -> ERR18_R {
        ERR18_R::new(((self.bits >> 18) & 0x01) != 0)
    }
    #[doc = "Bit 19 - Error In Channel 19"]
    #[inline(always)]
    pub fn err19(&self) -> ERR19_R {
        ERR19_R::new(((self.bits >> 19) & 0x01) != 0)
    }
    #[doc = "Bit 20 - Error In Channel 20"]
    #[inline(always)]
    pub fn err20(&self) -> ERR20_R {
        ERR20_R::new(((self.bits >> 20) & 0x01) != 0)
    }
    #[doc = "Bit 21 - Error In Channel 21"]
    #[inline(always)]
    pub fn err21(&self) -> ERR21_R {
        ERR21_R::new(((self.bits >> 21) & 0x01) != 0)
    }
    #[doc = "Bit 22 - Error In Channel 22"]
    #[inline(always)]
    pub fn err22(&self) -> ERR22_R {
        ERR22_R::new(((self.bits >> 22) & 0x01) != 0)
    }
    #[doc = "Bit 23 - Error In Channel 23"]
    #[inline(always)]
    pub fn err23(&self) -> ERR23_R {
        ERR23_R::new(((self.bits >> 23) & 0x01) != 0)
    }
    #[doc = "Bit 24 - Error In Channel 24"]
    #[inline(always)]
    pub fn err24(&self) -> ERR24_R {
        ERR24_R::new(((self.bits >> 24) & 0x01) != 0)
    }
    #[doc = "Bit 25 - Error In Channel 25"]
    #[inline(always)]
    pub fn err25(&self) -> ERR25_R {
        ERR25_R::new(((self.bits >> 25) & 0x01) != 0)
    }
    #[doc = "Bit 26 - Error In Channel 26"]
    #[inline(always)]
    pub fn err26(&self) -> ERR26_R {
        ERR26_R::new(((self.bits >> 26) & 0x01) != 0)
    }
    #[doc = "Bit 27 - Error In Channel 27"]
    #[inline(always)]
    pub fn err27(&self) -> ERR27_R {
        ERR27_R::new(((self.bits >> 27) & 0x01) != 0)
    }
    #[doc = "Bit 28 - Error In Channel 28"]
    #[inline(always)]
    pub fn err28(&self) -> ERR28_R {
        ERR28_R::new(((self.bits >> 28) & 0x01) != 0)
    }
    #[doc = "Bit 29 - Error In Channel 29"]
    #[inline(always)]
    pub fn err29(&self) -> ERR29_R {
        ERR29_R::new(((self.bits >> 29) & 0x01) != 0)
    }
    #[doc = "Bit 30 - Error In Channel 30"]
    #[inline(always)]
    pub fn err30(&self) -> ERR30_R {
        ERR30_R::new(((self.bits >> 30) & 0x01) != 0)
    }
    #[doc = "Bit 31 - Error In Channel 31"]
    #[inline(always)]
    pub fn err31(&self) -> ERR31_R {
        ERR31_R::new(((self.bits >> 31) & 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 }
    }
    #[doc = "Bit 16 - Error In Channel 16"]
    #[inline(always)]
    pub fn err16(&mut self) -> ERR16_W {
        ERR16_W { w: self }
    }
    #[doc = "Bit 17 - Error In Channel 17"]
    #[inline(always)]
    pub fn err17(&mut self) -> ERR17_W {
        ERR17_W { w: self }
    }
    #[doc = "Bit 18 - Error In Channel 18"]
    #[inline(always)]
    pub fn err18(&mut self) -> ERR18_W {
        ERR18_W { w: self }
    }
    #[doc = "Bit 19 - Error In Channel 19"]
    #[inline(always)]
    pub fn err19(&mut self) -> ERR19_W {
        ERR19_W { w: self }
    }
    #[doc = "Bit 20 - Error In Channel 20"]
    #[inline(always)]
    pub fn err20(&mut self) -> ERR20_W {
        ERR20_W { w: self }
    }
    #[doc = "Bit 21 - Error In Channel 21"]
    #[inline(always)]
    pub fn err21(&mut self) -> ERR21_W {
        ERR21_W { w: self }
    }
    #[doc = "Bit 22 - Error In Channel 22"]
    #[inline(always)]
    pub fn err22(&mut self) -> ERR22_W {
        ERR22_W { w: self }
    }
    #[doc = "Bit 23 - Error In Channel 23"]
    #[inline(always)]
    pub fn err23(&mut self) -> ERR23_W {
        ERR23_W { w: self }
    }
    #[doc = "Bit 24 - Error In Channel 24"]
    #[inline(always)]
    pub fn err24(&mut self) -> ERR24_W {
        ERR24_W { w: self }
    }
    #[doc = "Bit 25 - Error In Channel 25"]
    #[inline(always)]
    pub fn err25(&mut self) -> ERR25_W {
        ERR25_W { w: self }
    }
    #[doc = "Bit 26 - Error In Channel 26"]
    #[inline(always)]
    pub fn err26(&mut self) -> ERR26_W {
        ERR26_W { w: self }
    }
    #[doc = "Bit 27 - Error In Channel 27"]
    #[inline(always)]
    pub fn err27(&mut self) -> ERR27_W {
        ERR27_W { w: self }
    }
    #[doc = "Bit 28 - Error In Channel 28"]
    #[inline(always)]
    pub fn err28(&mut self) -> ERR28_W {
        ERR28_W { w: self }
    }
    #[doc = "Bit 29 - Error In Channel 29"]
    #[inline(always)]
    pub fn err29(&mut self) -> ERR29_W {
        ERR29_W { w: self }
    }
    #[doc = "Bit 30 - Error In Channel 30"]
    #[inline(always)]
    pub fn err30(&mut self) -> ERR30_W {
        ERR30_W { w: self }
    }
    #[doc = "Bit 31 - Error In Channel 31"]
    #[inline(always)]
    pub fn err31(&mut self) -> ERR31_W {
        ERR31_W { w: self }
    }
}