1
  2
  3
  4
  5
  6
  7
  8
  9
 10
 11
 12
 13
 14
 15
 16
 17
 18
 19
 20
 21
 22
 23
 24
 25
 26
 27
 28
 29
 30
 31
 32
 33
 34
 35
 36
 37
 38
 39
 40
 41
 42
 43
 44
 45
 46
 47
 48
 49
 50
 51
 52
 53
 54
 55
 56
 57
 58
 59
 60
 61
 62
 63
 64
 65
 66
 67
 68
 69
 70
 71
 72
 73
 74
 75
 76
 77
 78
 79
 80
 81
 82
 83
 84
 85
 86
 87
 88
 89
 90
 91
 92
 93
 94
 95
 96
 97
 98
 99
100
101
102
103
104
105
106
107
108
109
110
111
112
#[doc = "Reader of register ADC_LST1"]
pub type R = crate::R<u32, super::ADC_LST1>;
#[doc = "Writer for register ADC_LST1"]
pub type W = crate::W<u32, super::ADC_LST1>;
#[doc = "Register ADC_LST1 `reset()`'s with value 0"]
impl crate::ResetValue for super::ADC_LST1 {
    type Type = u32;
    #[inline(always)]
    fn reset_value() -> Self::Type {
        0
    }
}
#[doc = "Reader of field `ADSEQ4`"]
pub type ADSEQ4_R = crate::R<u8, u8>;
#[doc = "Write proxy for field `ADSEQ4`"]
pub struct ADSEQ4_W<'a> {
    w: &'a mut W,
}
impl<'a> ADSEQ4_W<'a> {
    #[doc = r"Writes raw bits to the field"]
    #[inline(always)]
    pub unsafe fn bits(self, value: u8) -> &'a mut W {
        self.w.bits = (self.w.bits & !0x1f) | ((value as u32) & 0x1f);
        self.w
    }
}
#[doc = "Reader of field `ADSEQ5`"]
pub type ADSEQ5_R = crate::R<u8, u8>;
#[doc = "Write proxy for field `ADSEQ5`"]
pub struct ADSEQ5_W<'a> {
    w: &'a mut W,
}
impl<'a> ADSEQ5_W<'a> {
    #[doc = r"Writes raw bits to the field"]
    #[inline(always)]
    pub unsafe fn bits(self, value: u8) -> &'a mut W {
        self.w.bits = (self.w.bits & !(0x1f << 8)) | (((value as u32) & 0x1f) << 8);
        self.w
    }
}
#[doc = "Reader of field `ADSEQ6`"]
pub type ADSEQ6_R = crate::R<u8, u8>;
#[doc = "Write proxy for field `ADSEQ6`"]
pub struct ADSEQ6_W<'a> {
    w: &'a mut W,
}
impl<'a> ADSEQ6_W<'a> {
    #[doc = r"Writes raw bits to the field"]
    #[inline(always)]
    pub unsafe fn bits(self, value: u8) -> &'a mut W {
        self.w.bits = (self.w.bits & !(0x1f << 16)) | (((value as u32) & 0x1f) << 16);
        self.w
    }
}
#[doc = "Reader of field `ADSEQ7`"]
pub type ADSEQ7_R = crate::R<u8, u8>;
#[doc = "Write proxy for field `ADSEQ7`"]
pub struct ADSEQ7_W<'a> {
    w: &'a mut W,
}
impl<'a> ADSEQ7_W<'a> {
    #[doc = r"Writes raw bits to the field"]
    #[inline(always)]
    pub unsafe fn bits(self, value: u8) -> &'a mut W {
        self.w.bits = (self.w.bits & !(0x1f << 24)) | (((value as u32) & 0x1f) << 24);
        self.w
    }
}
impl R {
    #[doc = "Bits 0:4 - ADSEQ4"]
    #[inline(always)]
    pub fn adseq4(&self) -> ADSEQ4_R {
        ADSEQ4_R::new((self.bits & 0x1f) as u8)
    }
    #[doc = "Bits 8:12 - ADSEQ5"]
    #[inline(always)]
    pub fn adseq5(&self) -> ADSEQ5_R {
        ADSEQ5_R::new(((self.bits >> 8) & 0x1f) as u8)
    }
    #[doc = "Bits 16:20 - ADSEQ6"]
    #[inline(always)]
    pub fn adseq6(&self) -> ADSEQ6_R {
        ADSEQ6_R::new(((self.bits >> 16) & 0x1f) as u8)
    }
    #[doc = "Bits 24:28 - ADSEQ7"]
    #[inline(always)]
    pub fn adseq7(&self) -> ADSEQ7_R {
        ADSEQ7_R::new(((self.bits >> 24) & 0x1f) as u8)
    }
}
impl W {
    #[doc = "Bits 0:4 - ADSEQ4"]
    #[inline(always)]
    pub fn adseq4(&mut self) -> ADSEQ4_W {
        ADSEQ4_W { w: self }
    }
    #[doc = "Bits 8:12 - ADSEQ5"]
    #[inline(always)]
    pub fn adseq5(&mut self) -> ADSEQ5_W {
        ADSEQ5_W { w: self }
    }
    #[doc = "Bits 16:20 - ADSEQ6"]
    #[inline(always)]
    pub fn adseq6(&mut self) -> ADSEQ6_W {
        ADSEQ6_W { w: self }
    }
    #[doc = "Bits 24:28 - ADSEQ7"]
    #[inline(always)]
    pub fn adseq7(&mut self) -> ADSEQ7_W {
        ADSEQ7_W { w: self }
    }
}