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 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175
#[doc = "Reader of register Q0R0"] pub type R = crate::R<u32, super::Q0R0>; #[doc = "Reader of field `REQCHNR`"] pub type REQCHNR_R = crate::R<u8, u8>; #[doc = "Refill\n\nValue on reset: 0"] #[derive(Clone, Copy, Debug, PartialEq)] pub enum RF_A { #[doc = "0: The request is discarded after the conversion start."] VALUE1 = 0, #[doc = "1: The request is automatically refilled into the queue after the conversion start."] VALUE2 = 1, } impl From<RF_A> for bool { #[inline(always)] fn from(variant: RF_A) -> Self { variant as u8 != 0 } } #[doc = "Reader of field `RF`"] pub type RF_R = crate::R<bool, RF_A>; impl RF_R { #[doc = r"Get enumerated values variant"] #[inline(always)] pub fn variant(&self) -> RF_A { match self.bits { false => RF_A::VALUE1, true => RF_A::VALUE2, } } #[doc = "Checks if the value of the field is `VALUE1`"] #[inline(always)] pub fn is_value1(&self) -> bool { *self == RF_A::VALUE1 } #[doc = "Checks if the value of the field is `VALUE2`"] #[inline(always)] pub fn is_value2(&self) -> bool { *self == RF_A::VALUE2 } } #[doc = "Enable Source Interrupt\n\nValue on reset: 0"] #[derive(Clone, Copy, Debug, PartialEq)] pub enum ENSI_A { #[doc = "0: No request source interrupt"] VALUE1 = 0, #[doc = "1: A request source event interrupt is generated upon a request source event (related conversion is finished)"] VALUE2 = 1, } impl From<ENSI_A> for bool { #[inline(always)] fn from(variant: ENSI_A) -> Self { variant as u8 != 0 } } #[doc = "Reader of field `ENSI`"] pub type ENSI_R = crate::R<bool, ENSI_A>; impl ENSI_R { #[doc = r"Get enumerated values variant"] #[inline(always)] pub fn variant(&self) -> ENSI_A { match self.bits { false => ENSI_A::VALUE1, true => ENSI_A::VALUE2, } } #[doc = "Checks if the value of the field is `VALUE1`"] #[inline(always)] pub fn is_value1(&self) -> bool { *self == ENSI_A::VALUE1 } #[doc = "Checks if the value of the field is `VALUE2`"] #[inline(always)] pub fn is_value2(&self) -> bool { *self == ENSI_A::VALUE2 } } #[doc = "External Trigger\n\nValue on reset: 0"] #[derive(Clone, Copy, Debug, PartialEq)] pub enum EXTR_A { #[doc = "0: A valid queue entry immediately leads to a conversion request"] VALUE1 = 0, #[doc = "1: The request handler waits for a trigger event"] VALUE2 = 1, } impl From<EXTR_A> for bool { #[inline(always)] fn from(variant: EXTR_A) -> Self { variant as u8 != 0 } } #[doc = "Reader of field `EXTR`"] pub type EXTR_R = crate::R<bool, EXTR_A>; impl EXTR_R { #[doc = r"Get enumerated values variant"] #[inline(always)] pub fn variant(&self) -> EXTR_A { match self.bits { false => EXTR_A::VALUE1, true => EXTR_A::VALUE2, } } #[doc = "Checks if the value of the field is `VALUE1`"] #[inline(always)] pub fn is_value1(&self) -> bool { *self == EXTR_A::VALUE1 } #[doc = "Checks if the value of the field is `VALUE2`"] #[inline(always)] pub fn is_value2(&self) -> bool { *self == EXTR_A::VALUE2 } } #[doc = "Request Channel Number Valid\n\nValue on reset: 0"] #[derive(Clone, Copy, Debug, PartialEq)] pub enum V_A { #[doc = "0: No valid queue entry"] VALUE1 = 0, #[doc = "1: The queue entry is valid and leads to a conversion request"] VALUE2 = 1, } impl From<V_A> for bool { #[inline(always)] fn from(variant: V_A) -> Self { variant as u8 != 0 } } #[doc = "Reader of field `V`"] pub type V_R = crate::R<bool, V_A>; impl V_R { #[doc = r"Get enumerated values variant"] #[inline(always)] pub fn variant(&self) -> V_A { match self.bits { false => V_A::VALUE1, true => V_A::VALUE2, } } #[doc = "Checks if the value of the field is `VALUE1`"] #[inline(always)] pub fn is_value1(&self) -> bool { *self == V_A::VALUE1 } #[doc = "Checks if the value of the field is `VALUE2`"] #[inline(always)] pub fn is_value2(&self) -> bool { *self == V_A::VALUE2 } } impl R { #[doc = "Bits 0:4 - Request Channel Number"] #[inline(always)] pub fn reqchnr(&self) -> REQCHNR_R { REQCHNR_R::new((self.bits & 0x1f) as u8) } #[doc = "Bit 5 - Refill"] #[inline(always)] pub fn rf(&self) -> RF_R { RF_R::new(((self.bits >> 5) & 0x01) != 0) } #[doc = "Bit 6 - Enable Source Interrupt"] #[inline(always)] pub fn ensi(&self) -> ENSI_R { ENSI_R::new(((self.bits >> 6) & 0x01) != 0) } #[doc = "Bit 7 - External Trigger"] #[inline(always)] pub fn extr(&self) -> EXTR_R { EXTR_R::new(((self.bits >> 7) & 0x01) != 0) } #[doc = "Bit 8 - Request Channel Number Valid"] #[inline(always)] pub fn v(&self) -> V_R { V_R::new(((self.bits >> 8) & 0x01) != 0) } }