#[doc = "Reader of register ADC3R"]
pub type R = crate::R<u32, super::ADC3R>;
#[doc = "Writer for register ADC3R"]
pub type W = crate::W<u32, super::ADC3R>;
#[doc = "Register ADC3R `reset()`'s with value 0"]
impl crate::ResetValue for super::ADC3R {
type Type = u32;
#[inline(always)]
fn reset_value() -> Self::Type {
0
}
}
#[doc = "Reader of field `AD1TEPER`"]
pub type AD1TEPER_R = crate::R<bool, bool>;
#[doc = "Write proxy for field `AD1TEPER`"]
pub struct AD1TEPER_W<'a> {
w: &'a mut W,
}
impl<'a> AD1TEPER_W<'a> {
#[doc = r"Sets the field bit"]
#[inline(always)]
pub fn set_bit(self) -> &'a mut W {
self.bit(true)
}
#[doc = r"Clears the field bit"]
#[inline(always)]
pub fn clear_bit(self) -> &'a mut W {
self.bit(false)
}
#[doc = r"Writes raw bits to the field"]
#[inline(always)]
pub fn bit(self, value: bool) -> &'a mut W {
self.w.bits = (self.w.bits & !(0x01 << 31)) | (((value as u32) & 0x01) << 31);
self.w
}
}
#[doc = "Reader of field `AD1TEC4`"]
pub type AD1TEC4_R = crate::R<bool, bool>;
#[doc = "Write proxy for field `AD1TEC4`"]
pub struct AD1TEC4_W<'a> {
w: &'a mut W,
}
impl<'a> AD1TEC4_W<'a> {
#[doc = r"Sets the field bit"]
#[inline(always)]
pub fn set_bit(self) -> &'a mut W {
self.bit(true)
}
#[doc = r"Clears the field bit"]
#[inline(always)]
pub fn clear_bit(self) -> &'a mut W {
self.bit(false)
}
#[doc = r"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 = "Reader of field `AD1TEC3`"]
pub type AD1TEC3_R = crate::R<bool, bool>;
#[doc = "Write proxy for field `AD1TEC3`"]
pub struct AD1TEC3_W<'a> {
w: &'a mut W,
}
impl<'a> AD1TEC3_W<'a> {
#[doc = r"Sets the field bit"]
#[inline(always)]
pub fn set_bit(self) -> &'a mut W {
self.bit(true)
}
#[doc = r"Clears the field bit"]
#[inline(always)]
pub fn clear_bit(self) -> &'a mut W {
self.bit(false)
}
#[doc = r"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 = "Reader of field `AD1TEC2`"]
pub type AD1TEC2_R = crate::R<bool, bool>;
#[doc = "Write proxy for field `AD1TEC2`"]
pub struct AD1TEC2_W<'a> {
w: &'a mut W,
}
impl<'a> AD1TEC2_W<'a> {
#[doc = r"Sets the field bit"]
#[inline(always)]
pub fn set_bit(self) -> &'a mut W {
self.bit(true)
}
#[doc = r"Clears the field bit"]
#[inline(always)]
pub fn clear_bit(self) -> &'a mut W {
self.bit(false)
}
#[doc = r"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 = "Reader of field `AD1TDPER`"]
pub type AD1TDPER_R = crate::R<bool, bool>;
#[doc = "Write proxy for field `AD1TDPER`"]
pub struct AD1TDPER_W<'a> {
w: &'a mut W,
}
impl<'a> AD1TDPER_W<'a> {
#[doc = r"Sets the field bit"]
#[inline(always)]
pub fn set_bit(self) -> &'a mut W {
self.bit(true)
}
#[doc = r"Clears the field bit"]
#[inline(always)]
pub fn clear_bit(self) -> &'a mut W {
self.bit(false)
}
#[doc = r"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 = "Reader of field `AD1TDC4`"]
pub type AD1TDC4_R = crate::R<bool, bool>;
#[doc = "Write proxy for field `AD1TDC4`"]
pub struct AD1TDC4_W<'a> {
w: &'a mut W,
}
impl<'a> AD1TDC4_W<'a> {
#[doc = r"Sets the field bit"]
#[inline(always)]
pub fn set_bit(self) -> &'a mut W {
self.bit(true)
}
#[doc = r"Clears the field bit"]
#[inline(always)]
pub fn clear_bit(self) -> &'a mut W {
self.bit(false)
}
#[doc = r"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 = "Reader of field `AD1TDC3`"]
pub type AD1TDC3_R = crate::R<bool, bool>;
#[doc = "Write proxy for field `AD1TDC3`"]
pub struct AD1TDC3_W<'a> {
w: &'a mut W,
}
impl<'a> AD1TDC3_W<'a> {
#[doc = r"Sets the field bit"]
#[inline(always)]
pub fn set_bit(self) -> &'a mut W {
self.bit(true)
}
#[doc = r"Clears the field bit"]
#[inline(always)]
pub fn clear_bit(self) -> &'a mut W {
self.bit(false)
}
#[doc = r"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 = "Reader of field `AD1TDC2`"]
pub type AD1TDC2_R = crate::R<bool, bool>;
#[doc = "Write proxy for field `AD1TDC2`"]
pub struct AD1TDC2_W<'a> {
w: &'a mut W,
}
impl<'a> AD1TDC2_W<'a> {
#[doc = r"Sets the field bit"]
#[inline(always)]
pub fn set_bit(self) -> &'a mut W {
self.bit(true)
}
#[doc = r"Clears the field bit"]
#[inline(always)]
pub fn clear_bit(self) -> &'a mut W {
self.bit(false)
}
#[doc = r"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 = "Reader of field `AD1TCPER`"]
pub type AD1TCPER_R = crate::R<bool, bool>;
#[doc = "Write proxy for field `AD1TCPER`"]
pub struct AD1TCPER_W<'a> {
w: &'a mut W,
}
impl<'a> AD1TCPER_W<'a> {
#[doc = r"Sets the field bit"]
#[inline(always)]
pub fn set_bit(self) -> &'a mut W {
self.bit(true)
}
#[doc = r"Clears the field bit"]
#[inline(always)]
pub fn clear_bit(self) -> &'a mut W {
self.bit(false)
}
#[doc = r"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 = "Reader of field `AD1TCC4`"]
pub type AD1TCC4_R = crate::R<bool, bool>;
#[doc = "Write proxy for field `AD1TCC4`"]
pub struct AD1TCC4_W<'a> {
w: &'a mut W,
}
impl<'a> AD1TCC4_W<'a> {
#[doc = r"Sets the field bit"]
#[inline(always)]
pub fn set_bit(self) -> &'a mut W {
self.bit(true)
}
#[doc = r"Clears the field bit"]
#[inline(always)]
pub fn clear_bit(self) -> &'a mut W {
self.bit(false)
}
#[doc = r"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 = "Reader of field `AD1TCC3`"]
pub type AD1TCC3_R = crate::R<bool, bool>;
#[doc = "Write proxy for field `AD1TCC3`"]
pub struct AD1TCC3_W<'a> {
w: &'a mut W,
}
impl<'a> AD1TCC3_W<'a> {
#[doc = r"Sets the field bit"]
#[inline(always)]
pub fn set_bit(self) -> &'a mut W {
self.bit(true)
}
#[doc = r"Clears the field bit"]
#[inline(always)]
pub fn clear_bit(self) -> &'a mut W {
self.bit(false)
}
#[doc = r"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 = "Reader of field `AD1TCC2`"]
pub type AD1TCC2_R = crate::R<bool, bool>;
#[doc = "Write proxy for field `AD1TCC2`"]
pub struct AD1TCC2_W<'a> {
w: &'a mut W,
}
impl<'a> AD1TCC2_W<'a> {
#[doc = r"Sets the field bit"]
#[inline(always)]
pub fn set_bit(self) -> &'a mut W {
self.bit(true)
}
#[doc = r"Clears the field bit"]
#[inline(always)]
pub fn clear_bit(self) -> &'a mut W {
self.bit(false)
}
#[doc = r"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 = "Reader of field `AD1TBRST`"]
pub type AD1TBRST_R = crate::R<bool, bool>;
#[doc = "Write proxy for field `AD1TBRST`"]
pub struct AD1TBRST_W<'a> {
w: &'a mut W,
}
impl<'a> AD1TBRST_W<'a> {
#[doc = r"Sets the field bit"]
#[inline(always)]
pub fn set_bit(self) -> &'a mut W {
self.bit(true)
}
#[doc = r"Clears the field bit"]
#[inline(always)]
pub fn clear_bit(self) -> &'a mut W {
self.bit(false)
}
#[doc = r"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 = "Reader of field `AD1TBPER`"]
pub type AD1TBPER_R = crate::R<bool, bool>;
#[doc = "Write proxy for field `AD1TBPER`"]
pub struct AD1TBPER_W<'a> {
w: &'a mut W,
}
impl<'a> AD1TBPER_W<'a> {
#[doc = r"Sets the field bit"]
#[inline(always)]
pub fn set_bit(self) -> &'a mut W {
self.bit(true)
}
#[doc = r"Clears the field bit"]
#[inline(always)]
pub fn clear_bit(self) -> &'a mut W {
self.bit(false)
}
#[doc = r"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 = "Reader of field `AD1TBC4`"]
pub type AD1TBC4_R = crate::R<bool, bool>;
#[doc = "Write proxy for field `AD1TBC4`"]
pub struct AD1TBC4_W<'a> {
w: &'a mut W,
}
impl<'a> AD1TBC4_W<'a> {
#[doc = r"Sets the field bit"]
#[inline(always)]
pub fn set_bit(self) -> &'a mut W {
self.bit(true)
}
#[doc = r"Clears the field bit"]
#[inline(always)]
pub fn clear_bit(self) -> &'a mut W {
self.bit(false)
}
#[doc = r"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 = "Reader of field `AD1TBC3`"]
pub type AD1TBC3_R = crate::R<bool, bool>;
#[doc = "Write proxy for field `AD1TBC3`"]
pub struct AD1TBC3_W<'a> {
w: &'a mut W,
}
impl<'a> AD1TBC3_W<'a> {
#[doc = r"Sets the field bit"]
#[inline(always)]
pub fn set_bit(self) -> &'a mut W {
self.bit(true)
}
#[doc = r"Clears the field bit"]
#[inline(always)]
pub fn clear_bit(self) -> &'a mut W {
self.bit(false)
}
#[doc = r"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 = "Reader of field `AD1TBC2`"]
pub type AD1TBC2_R = crate::R<bool, bool>;
#[doc = "Write proxy for field `AD1TBC2`"]
pub struct AD1TBC2_W<'a> {
w: &'a mut W,
}
impl<'a> AD1TBC2_W<'a> {
#[doc = r"Sets the field bit"]
#[inline(always)]
pub fn set_bit(self) -> &'a mut W {
self.bit(true)
}
#[doc = r"Clears the field bit"]
#[inline(always)]
pub fn clear_bit(self) -> &'a mut W {
self.bit(false)
}
#[doc = r"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 = "Reader of field `AD1TARST`"]
pub type AD1TARST_R = crate::R<bool, bool>;
#[doc = "Write proxy for field `AD1TARST`"]
pub struct AD1TARST_W<'a> {
w: &'a mut W,
}
impl<'a> AD1TARST_W<'a> {
#[doc = r"Sets the field bit"]
#[inline(always)]
pub fn set_bit(self) -> &'a mut W {
self.bit(true)
}
#[doc = r"Clears the field bit"]
#[inline(always)]
pub fn clear_bit(self) -> &'a mut W {
self.bit(false)
}
#[doc = r"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 = "Reader of field `AD1TAPER`"]
pub type AD1TAPER_R = crate::R<bool, bool>;
#[doc = "Write proxy for field `AD1TAPER`"]
pub struct AD1TAPER_W<'a> {
w: &'a mut W,
}
impl<'a> AD1TAPER_W<'a> {
#[doc = r"Sets the field bit"]
#[inline(always)]
pub fn set_bit(self) -> &'a mut W {
self.bit(true)
}
#[doc = r"Clears the field bit"]
#[inline(always)]
pub fn clear_bit(self) -> &'a mut W {
self.bit(false)
}
#[doc = r"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 = "Reader of field `AD1TAC4`"]
pub type AD1TAC4_R = crate::R<bool, bool>;
#[doc = "Write proxy for field `AD1TAC4`"]
pub struct AD1TAC4_W<'a> {
w: &'a mut W,
}
impl<'a> AD1TAC4_W<'a> {
#[doc = r"Sets the field bit"]
#[inline(always)]
pub fn set_bit(self) -> &'a mut W {
self.bit(true)
}
#[doc = r"Clears the field bit"]
#[inline(always)]
pub fn clear_bit(self) -> &'a mut W {
self.bit(false)
}
#[doc = r"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 = "Reader of field `AD1TAC3`"]
pub type AD1TAC3_R = crate::R<bool, bool>;
#[doc = "Write proxy for field `AD1TAC3`"]
pub struct AD1TAC3_W<'a> {
w: &'a mut W,
}
impl<'a> AD1TAC3_W<'a> {
#[doc = r"Sets the field bit"]
#[inline(always)]
pub fn set_bit(self) -> &'a mut W {
self.bit(true)
}
#[doc = r"Clears the field bit"]
#[inline(always)]
pub fn clear_bit(self) -> &'a mut W {
self.bit(false)
}
#[doc = r"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 = "Reader of field `AD1TAC2`"]
pub type AD1TAC2_R = crate::R<bool, bool>;
#[doc = "Write proxy for field `AD1TAC2`"]
pub struct AD1TAC2_W<'a> {
w: &'a mut W,
}
impl<'a> AD1TAC2_W<'a> {
#[doc = r"Sets the field bit"]
#[inline(always)]
pub fn set_bit(self) -> &'a mut W {
self.bit(true)
}
#[doc = r"Clears the field bit"]
#[inline(always)]
pub fn clear_bit(self) -> &'a mut W {
self.bit(false)
}
#[doc = r"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 = "Reader of field `AD1EEV5`"]
pub type AD1EEV5_R = crate::R<bool, bool>;
#[doc = "Write proxy for field `AD1EEV5`"]
pub struct AD1EEV5_W<'a> {
w: &'a mut W,
}
impl<'a> AD1EEV5_W<'a> {
#[doc = r"Sets the field bit"]
#[inline(always)]
pub fn set_bit(self) -> &'a mut W {
self.bit(true)
}
#[doc = r"Clears the field bit"]
#[inline(always)]
pub fn clear_bit(self) -> &'a mut W {
self.bit(false)
}
#[doc = r"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 = "Reader of field `AD1EEV4`"]
pub type AD1EEV4_R = crate::R<bool, bool>;
#[doc = "Write proxy for field `AD1EEV4`"]
pub struct AD1EEV4_W<'a> {
w: &'a mut W,
}
impl<'a> AD1EEV4_W<'a> {
#[doc = r"Sets the field bit"]
#[inline(always)]
pub fn set_bit(self) -> &'a mut W {
self.bit(true)
}
#[doc = r"Clears the field bit"]
#[inline(always)]
pub fn clear_bit(self) -> &'a mut W {
self.bit(false)
}
#[doc = r"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 = "Reader of field `AD1EEV3`"]
pub type AD1EEV3_R = crate::R<bool, bool>;
#[doc = "Write proxy for field `AD1EEV3`"]
pub struct AD1EEV3_W<'a> {
w: &'a mut W,
}
impl<'a> AD1EEV3_W<'a> {
#[doc = r"Sets the field bit"]
#[inline(always)]
pub fn set_bit(self) -> &'a mut W {
self.bit(true)
}
#[doc = r"Clears the field bit"]
#[inline(always)]
pub fn clear_bit(self) -> &'a mut W {
self.bit(false)
}
#[doc = r"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 = "Reader of field `AD1EEV2`"]
pub type AD1EEV2_R = crate::R<bool, bool>;
#[doc = "Write proxy for field `AD1EEV2`"]
pub struct AD1EEV2_W<'a> {
w: &'a mut W,
}
impl<'a> AD1EEV2_W<'a> {
#[doc = r"Sets the field bit"]
#[inline(always)]
pub fn set_bit(self) -> &'a mut W {
self.bit(true)
}
#[doc = r"Clears the field bit"]
#[inline(always)]
pub fn clear_bit(self) -> &'a mut W {
self.bit(false)
}
#[doc = r"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 = "Reader of field `AD1EEV1`"]
pub type AD1EEV1_R = crate::R<bool, bool>;
#[doc = "Write proxy for field `AD1EEV1`"]
pub struct AD1EEV1_W<'a> {
w: &'a mut W,
}
impl<'a> AD1EEV1_W<'a> {
#[doc = r"Sets the field bit"]
#[inline(always)]
pub fn set_bit(self) -> &'a mut W {
self.bit(true)
}
#[doc = r"Clears the field bit"]
#[inline(always)]
pub fn clear_bit(self) -> &'a mut W {
self.bit(false)
}
#[doc = r"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 = "Reader of field `AD1MPER`"]
pub type AD1MPER_R = crate::R<bool, bool>;
#[doc = "Write proxy for field `AD1MPER`"]
pub struct AD1MPER_W<'a> {
w: &'a mut W,
}
impl<'a> AD1MPER_W<'a> {
#[doc = r"Sets the field bit"]
#[inline(always)]
pub fn set_bit(self) -> &'a mut W {
self.bit(true)
}
#[doc = r"Clears the field bit"]
#[inline(always)]
pub fn clear_bit(self) -> &'a mut W {
self.bit(false)
}
#[doc = r"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 = "Reader of field `AD1MC4`"]
pub type AD1MC4_R = crate::R<bool, bool>;
#[doc = "Write proxy for field `AD1MC4`"]
pub struct AD1MC4_W<'a> {
w: &'a mut W,
}
impl<'a> AD1MC4_W<'a> {
#[doc = r"Sets the field bit"]
#[inline(always)]
pub fn set_bit(self) -> &'a mut W {
self.bit(true)
}
#[doc = r"Clears the field bit"]
#[inline(always)]
pub fn clear_bit(self) -> &'a mut W {
self.bit(false)
}
#[doc = r"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 = "Reader of field `AD1MC3`"]
pub type AD1MC3_R = crate::R<bool, bool>;
#[doc = "Write proxy for field `AD1MC3`"]
pub struct AD1MC3_W<'a> {
w: &'a mut W,
}
impl<'a> AD1MC3_W<'a> {
#[doc = r"Sets the field bit"]
#[inline(always)]
pub fn set_bit(self) -> &'a mut W {
self.bit(true)
}
#[doc = r"Clears the field bit"]
#[inline(always)]
pub fn clear_bit(self) -> &'a mut W {
self.bit(false)
}
#[doc = r"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 = "Reader of field `AD1MC2`"]
pub type AD1MC2_R = crate::R<bool, bool>;
#[doc = "Write proxy for field `AD1MC2`"]
pub struct AD1MC2_W<'a> {
w: &'a mut W,
}
impl<'a> AD1MC2_W<'a> {
#[doc = r"Sets the field bit"]
#[inline(always)]
pub fn set_bit(self) -> &'a mut W {
self.bit(true)
}
#[doc = r"Clears the field bit"]
#[inline(always)]
pub fn clear_bit(self) -> &'a mut W {
self.bit(false)
}
#[doc = r"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 = "Reader of field `AD1MC1`"]
pub type AD1MC1_R = crate::R<bool, bool>;
#[doc = "Write proxy for field `AD1MC1`"]
pub struct AD1MC1_W<'a> {
w: &'a mut W,
}
impl<'a> AD1MC1_W<'a> {
#[doc = r"Sets the field bit"]
#[inline(always)]
pub fn set_bit(self) -> &'a mut W {
self.bit(true)
}
#[doc = r"Clears the field bit"]
#[inline(always)]
pub fn clear_bit(self) -> &'a mut W {
self.bit(false)
}
#[doc = r"Writes raw bits to the field"]
#[inline(always)]
pub fn bit(self, value: bool) -> &'a mut W {
self.w.bits = (self.w.bits & !0x01) | ((value as u32) & 0x01);
self.w
}
}
impl R {
#[doc = "Bit 31 - AD1TEPER"]
#[inline(always)]
pub fn ad1teper(&self) -> AD1TEPER_R {
AD1TEPER_R::new(((self.bits >> 31) & 0x01) != 0)
}
#[doc = "Bit 30 - AD1TEC4"]
#[inline(always)]
pub fn ad1tec4(&self) -> AD1TEC4_R {
AD1TEC4_R::new(((self.bits >> 30) & 0x01) != 0)
}
#[doc = "Bit 29 - AD1TEC3"]
#[inline(always)]
pub fn ad1tec3(&self) -> AD1TEC3_R {
AD1TEC3_R::new(((self.bits >> 29) & 0x01) != 0)
}
#[doc = "Bit 28 - AD1TEC2"]
#[inline(always)]
pub fn ad1tec2(&self) -> AD1TEC2_R {
AD1TEC2_R::new(((self.bits >> 28) & 0x01) != 0)
}
#[doc = "Bit 27 - AD1TDPER"]
#[inline(always)]
pub fn ad1tdper(&self) -> AD1TDPER_R {
AD1TDPER_R::new(((self.bits >> 27) & 0x01) != 0)
}
#[doc = "Bit 26 - AD1TDC4"]
#[inline(always)]
pub fn ad1tdc4(&self) -> AD1TDC4_R {
AD1TDC4_R::new(((self.bits >> 26) & 0x01) != 0)
}
#[doc = "Bit 25 - AD1TDC3"]
#[inline(always)]
pub fn ad1tdc3(&self) -> AD1TDC3_R {
AD1TDC3_R::new(((self.bits >> 25) & 0x01) != 0)
}
#[doc = "Bit 24 - AD1TDC2"]
#[inline(always)]
pub fn ad1tdc2(&self) -> AD1TDC2_R {
AD1TDC2_R::new(((self.bits >> 24) & 0x01) != 0)
}
#[doc = "Bit 23 - AD1TCPER"]
#[inline(always)]
pub fn ad1tcper(&self) -> AD1TCPER_R {
AD1TCPER_R::new(((self.bits >> 23) & 0x01) != 0)
}
#[doc = "Bit 22 - AD1TCC4"]
#[inline(always)]
pub fn ad1tcc4(&self) -> AD1TCC4_R {
AD1TCC4_R::new(((self.bits >> 22) & 0x01) != 0)
}
#[doc = "Bit 21 - AD1TCC3"]
#[inline(always)]
pub fn ad1tcc3(&self) -> AD1TCC3_R {
AD1TCC3_R::new(((self.bits >> 21) & 0x01) != 0)
}
#[doc = "Bit 20 - AD1TCC2"]
#[inline(always)]
pub fn ad1tcc2(&self) -> AD1TCC2_R {
AD1TCC2_R::new(((self.bits >> 20) & 0x01) != 0)
}
#[doc = "Bit 19 - AD1TBRST"]
#[inline(always)]
pub fn ad1tbrst(&self) -> AD1TBRST_R {
AD1TBRST_R::new(((self.bits >> 19) & 0x01) != 0)
}
#[doc = "Bit 18 - AD1TBPER"]
#[inline(always)]
pub fn ad1tbper(&self) -> AD1TBPER_R {
AD1TBPER_R::new(((self.bits >> 18) & 0x01) != 0)
}
#[doc = "Bit 17 - AD1TBC4"]
#[inline(always)]
pub fn ad1tbc4(&self) -> AD1TBC4_R {
AD1TBC4_R::new(((self.bits >> 17) & 0x01) != 0)
}
#[doc = "Bit 16 - AD1TBC3"]
#[inline(always)]
pub fn ad1tbc3(&self) -> AD1TBC3_R {
AD1TBC3_R::new(((self.bits >> 16) & 0x01) != 0)
}
#[doc = "Bit 15 - AD1TBC2"]
#[inline(always)]
pub fn ad1tbc2(&self) -> AD1TBC2_R {
AD1TBC2_R::new(((self.bits >> 15) & 0x01) != 0)
}
#[doc = "Bit 14 - AD1TARST"]
#[inline(always)]
pub fn ad1tarst(&self) -> AD1TARST_R {
AD1TARST_R::new(((self.bits >> 14) & 0x01) != 0)
}
#[doc = "Bit 13 - AD1TAPER"]
#[inline(always)]
pub fn ad1taper(&self) -> AD1TAPER_R {
AD1TAPER_R::new(((self.bits >> 13) & 0x01) != 0)
}
#[doc = "Bit 12 - AD1TAC4"]
#[inline(always)]
pub fn ad1tac4(&self) -> AD1TAC4_R {
AD1TAC4_R::new(((self.bits >> 12) & 0x01) != 0)
}
#[doc = "Bit 11 - AD1TAC3"]
#[inline(always)]
pub fn ad1tac3(&self) -> AD1TAC3_R {
AD1TAC3_R::new(((self.bits >> 11) & 0x01) != 0)
}
#[doc = "Bit 10 - AD1TAC2"]
#[inline(always)]
pub fn ad1tac2(&self) -> AD1TAC2_R {
AD1TAC2_R::new(((self.bits >> 10) & 0x01) != 0)
}
#[doc = "Bit 9 - AD1EEV5"]
#[inline(always)]
pub fn ad1eev5(&self) -> AD1EEV5_R {
AD1EEV5_R::new(((self.bits >> 9) & 0x01) != 0)
}
#[doc = "Bit 8 - AD1EEV4"]
#[inline(always)]
pub fn ad1eev4(&self) -> AD1EEV4_R {
AD1EEV4_R::new(((self.bits >> 8) & 0x01) != 0)
}
#[doc = "Bit 7 - AD1EEV3"]
#[inline(always)]
pub fn ad1eev3(&self) -> AD1EEV3_R {
AD1EEV3_R::new(((self.bits >> 7) & 0x01) != 0)
}
#[doc = "Bit 6 - AD1EEV2"]
#[inline(always)]
pub fn ad1eev2(&self) -> AD1EEV2_R {
AD1EEV2_R::new(((self.bits >> 6) & 0x01) != 0)
}
#[doc = "Bit 5 - AD1EEV1"]
#[inline(always)]
pub fn ad1eev1(&self) -> AD1EEV1_R {
AD1EEV1_R::new(((self.bits >> 5) & 0x01) != 0)
}
#[doc = "Bit 4 - AD1MPER"]
#[inline(always)]
pub fn ad1mper(&self) -> AD1MPER_R {
AD1MPER_R::new(((self.bits >> 4) & 0x01) != 0)
}
#[doc = "Bit 3 - AD1MC4"]
#[inline(always)]
pub fn ad1mc4(&self) -> AD1MC4_R {
AD1MC4_R::new(((self.bits >> 3) & 0x01) != 0)
}
#[doc = "Bit 2 - AD1MC3"]
#[inline(always)]
pub fn ad1mc3(&self) -> AD1MC3_R {
AD1MC3_R::new(((self.bits >> 2) & 0x01) != 0)
}
#[doc = "Bit 1 - AD1MC2"]
#[inline(always)]
pub fn ad1mc2(&self) -> AD1MC2_R {
AD1MC2_R::new(((self.bits >> 1) & 0x01) != 0)
}
#[doc = "Bit 0 - AD1MC1"]
#[inline(always)]
pub fn ad1mc1(&self) -> AD1MC1_R {
AD1MC1_R::new((self.bits & 0x01) != 0)
}
}
impl W {
#[doc = "Bit 31 - AD1TEPER"]
#[inline(always)]
pub fn ad1teper(&mut self) -> AD1TEPER_W {
AD1TEPER_W { w: self }
}
#[doc = "Bit 30 - AD1TEC4"]
#[inline(always)]
pub fn ad1tec4(&mut self) -> AD1TEC4_W {
AD1TEC4_W { w: self }
}
#[doc = "Bit 29 - AD1TEC3"]
#[inline(always)]
pub fn ad1tec3(&mut self) -> AD1TEC3_W {
AD1TEC3_W { w: self }
}
#[doc = "Bit 28 - AD1TEC2"]
#[inline(always)]
pub fn ad1tec2(&mut self) -> AD1TEC2_W {
AD1TEC2_W { w: self }
}
#[doc = "Bit 27 - AD1TDPER"]
#[inline(always)]
pub fn ad1tdper(&mut self) -> AD1TDPER_W {
AD1TDPER_W { w: self }
}
#[doc = "Bit 26 - AD1TDC4"]
#[inline(always)]
pub fn ad1tdc4(&mut self) -> AD1TDC4_W {
AD1TDC4_W { w: self }
}
#[doc = "Bit 25 - AD1TDC3"]
#[inline(always)]
pub fn ad1tdc3(&mut self) -> AD1TDC3_W {
AD1TDC3_W { w: self }
}
#[doc = "Bit 24 - AD1TDC2"]
#[inline(always)]
pub fn ad1tdc2(&mut self) -> AD1TDC2_W {
AD1TDC2_W { w: self }
}
#[doc = "Bit 23 - AD1TCPER"]
#[inline(always)]
pub fn ad1tcper(&mut self) -> AD1TCPER_W {
AD1TCPER_W { w: self }
}
#[doc = "Bit 22 - AD1TCC4"]
#[inline(always)]
pub fn ad1tcc4(&mut self) -> AD1TCC4_W {
AD1TCC4_W { w: self }
}
#[doc = "Bit 21 - AD1TCC3"]
#[inline(always)]
pub fn ad1tcc3(&mut self) -> AD1TCC3_W {
AD1TCC3_W { w: self }
}
#[doc = "Bit 20 - AD1TCC2"]
#[inline(always)]
pub fn ad1tcc2(&mut self) -> AD1TCC2_W {
AD1TCC2_W { w: self }
}
#[doc = "Bit 19 - AD1TBRST"]
#[inline(always)]
pub fn ad1tbrst(&mut self) -> AD1TBRST_W {
AD1TBRST_W { w: self }
}
#[doc = "Bit 18 - AD1TBPER"]
#[inline(always)]
pub fn ad1tbper(&mut self) -> AD1TBPER_W {
AD1TBPER_W { w: self }
}
#[doc = "Bit 17 - AD1TBC4"]
#[inline(always)]
pub fn ad1tbc4(&mut self) -> AD1TBC4_W {
AD1TBC4_W { w: self }
}
#[doc = "Bit 16 - AD1TBC3"]
#[inline(always)]
pub fn ad1tbc3(&mut self) -> AD1TBC3_W {
AD1TBC3_W { w: self }
}
#[doc = "Bit 15 - AD1TBC2"]
#[inline(always)]
pub fn ad1tbc2(&mut self) -> AD1TBC2_W {
AD1TBC2_W { w: self }
}
#[doc = "Bit 14 - AD1TARST"]
#[inline(always)]
pub fn ad1tarst(&mut self) -> AD1TARST_W {
AD1TARST_W { w: self }
}
#[doc = "Bit 13 - AD1TAPER"]
#[inline(always)]
pub fn ad1taper(&mut self) -> AD1TAPER_W {
AD1TAPER_W { w: self }
}
#[doc = "Bit 12 - AD1TAC4"]
#[inline(always)]
pub fn ad1tac4(&mut self) -> AD1TAC4_W {
AD1TAC4_W { w: self }
}
#[doc = "Bit 11 - AD1TAC3"]
#[inline(always)]
pub fn ad1tac3(&mut self) -> AD1TAC3_W {
AD1TAC3_W { w: self }
}
#[doc = "Bit 10 - AD1TAC2"]
#[inline(always)]
pub fn ad1tac2(&mut self) -> AD1TAC2_W {
AD1TAC2_W { w: self }
}
#[doc = "Bit 9 - AD1EEV5"]
#[inline(always)]
pub fn ad1eev5(&mut self) -> AD1EEV5_W {
AD1EEV5_W { w: self }
}
#[doc = "Bit 8 - AD1EEV4"]
#[inline(always)]
pub fn ad1eev4(&mut self) -> AD1EEV4_W {
AD1EEV4_W { w: self }
}
#[doc = "Bit 7 - AD1EEV3"]
#[inline(always)]
pub fn ad1eev3(&mut self) -> AD1EEV3_W {
AD1EEV3_W { w: self }
}
#[doc = "Bit 6 - AD1EEV2"]
#[inline(always)]
pub fn ad1eev2(&mut self) -> AD1EEV2_W {
AD1EEV2_W { w: self }
}
#[doc = "Bit 5 - AD1EEV1"]
#[inline(always)]
pub fn ad1eev1(&mut self) -> AD1EEV1_W {
AD1EEV1_W { w: self }
}
#[doc = "Bit 4 - AD1MPER"]
#[inline(always)]
pub fn ad1mper(&mut self) -> AD1MPER_W {
AD1MPER_W { w: self }
}
#[doc = "Bit 3 - AD1MC4"]
#[inline(always)]
pub fn ad1mc4(&mut self) -> AD1MC4_W {
AD1MC4_W { w: self }
}
#[doc = "Bit 2 - AD1MC3"]
#[inline(always)]
pub fn ad1mc3(&mut self) -> AD1MC3_W {
AD1MC3_W { w: self }
}
#[doc = "Bit 1 - AD1MC2"]
#[inline(always)]
pub fn ad1mc2(&mut self) -> AD1MC2_W {
AD1MC2_W { w: self }
}
#[doc = "Bit 0 - AD1MC1"]
#[inline(always)]
pub fn ad1mc1(&mut self) -> AD1MC1_W {
AD1MC1_W { w: self }
}
}