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 176 177 178 179 180 181 182 183
#[doc = "Reader of register IDR"] pub type R = crate::R<u32, super::IDR>; #[doc = "Port input data bit (y = 0..15)\n\nValue on reset: 0"] #[derive(Clone, Copy, Debug, PartialEq)] pub enum ID15_A { #[doc = "1: Input is logic high"] HIGH, #[doc = "0: Input is logic low"] LOW, } impl From<ID15_A> for bool { #[inline(always)] fn from(variant: ID15_A) -> Self { match variant { ID15_A::HIGH => true, ID15_A::LOW => false, } } } #[doc = "Reader of field `ID15`"] pub type ID15_R = crate::R<bool, ID15_A>; impl ID15_R { #[doc = r"Get enumerated values variant"] #[inline(always)] pub fn variant(&self) -> ID15_A { match self.bits { true => ID15_A::HIGH, false => ID15_A::LOW, } } #[doc = "Checks if the value of the field is `HIGH`"] #[inline(always)] pub fn is_high(&self) -> bool { *self == ID15_A::HIGH } #[doc = "Checks if the value of the field is `LOW`"] #[inline(always)] pub fn is_low(&self) -> bool { *self == ID15_A::LOW } } #[doc = "Port input data bit (y = 0..15)"] pub type ID14_A = ID15_A; #[doc = "Reader of field `ID14`"] pub type ID14_R = crate::R<bool, ID15_A>; #[doc = "Port input data bit (y = 0..15)"] pub type ID13_A = ID15_A; #[doc = "Reader of field `ID13`"] pub type ID13_R = crate::R<bool, ID15_A>; #[doc = "Port input data bit (y = 0..15)"] pub type ID12_A = ID15_A; #[doc = "Reader of field `ID12`"] pub type ID12_R = crate::R<bool, ID15_A>; #[doc = "Port input data bit (y = 0..15)"] pub type ID11_A = ID15_A; #[doc = "Reader of field `ID11`"] pub type ID11_R = crate::R<bool, ID15_A>; #[doc = "Port input data bit (y = 0..15)"] pub type ID10_A = ID15_A; #[doc = "Reader of field `ID10`"] pub type ID10_R = crate::R<bool, ID15_A>; #[doc = "Port input data bit (y = 0..15)"] pub type ID9_A = ID15_A; #[doc = "Reader of field `ID9`"] pub type ID9_R = crate::R<bool, ID15_A>; #[doc = "Port input data bit (y = 0..15)"] pub type ID8_A = ID15_A; #[doc = "Reader of field `ID8`"] pub type ID8_R = crate::R<bool, ID15_A>; #[doc = "Port input data bit (y = 0..15)"] pub type ID7_A = ID15_A; #[doc = "Reader of field `ID7`"] pub type ID7_R = crate::R<bool, ID15_A>; #[doc = "Port input data bit (y = 0..15)"] pub type ID6_A = ID15_A; #[doc = "Reader of field `ID6`"] pub type ID6_R = crate::R<bool, ID15_A>; #[doc = "Port input data bit (y = 0..15)"] pub type ID5_A = ID15_A; #[doc = "Reader of field `ID5`"] pub type ID5_R = crate::R<bool, ID15_A>; #[doc = "Port input data bit (y = 0..15)"] pub type ID4_A = ID15_A; #[doc = "Reader of field `ID4`"] pub type ID4_R = crate::R<bool, ID15_A>; #[doc = "Port input data bit (y = 0..15)"] pub type ID3_A = ID15_A; #[doc = "Reader of field `ID3`"] pub type ID3_R = crate::R<bool, ID15_A>; #[doc = "Port input data bit (y = 0..15)"] pub type ID2_A = ID15_A; #[doc = "Reader of field `ID2`"] pub type ID2_R = crate::R<bool, ID15_A>; #[doc = "Port input data bit (y = 0..15)"] pub type ID1_A = ID15_A; #[doc = "Reader of field `ID1`"] pub type ID1_R = crate::R<bool, ID15_A>; #[doc = "Port input data bit (y = 0..15)"] pub type ID0_A = ID15_A; #[doc = "Reader of field `ID0`"] pub type ID0_R = crate::R<bool, ID15_A>; impl R { #[doc = "Bit 15 - Port input data bit (y = 0..15)"] #[inline(always)] pub fn id15(&self) -> ID15_R { ID15_R::new(((self.bits >> 15) & 0x01) != 0) } #[doc = "Bit 14 - Port input data bit (y = 0..15)"] #[inline(always)] pub fn id14(&self) -> ID14_R { ID14_R::new(((self.bits >> 14) & 0x01) != 0) } #[doc = "Bit 13 - Port input data bit (y = 0..15)"] #[inline(always)] pub fn id13(&self) -> ID13_R { ID13_R::new(((self.bits >> 13) & 0x01) != 0) } #[doc = "Bit 12 - Port input data bit (y = 0..15)"] #[inline(always)] pub fn id12(&self) -> ID12_R { ID12_R::new(((self.bits >> 12) & 0x01) != 0) } #[doc = "Bit 11 - Port input data bit (y = 0..15)"] #[inline(always)] pub fn id11(&self) -> ID11_R { ID11_R::new(((self.bits >> 11) & 0x01) != 0) } #[doc = "Bit 10 - Port input data bit (y = 0..15)"] #[inline(always)] pub fn id10(&self) -> ID10_R { ID10_R::new(((self.bits >> 10) & 0x01) != 0) } #[doc = "Bit 9 - Port input data bit (y = 0..15)"] #[inline(always)] pub fn id9(&self) -> ID9_R { ID9_R::new(((self.bits >> 9) & 0x01) != 0) } #[doc = "Bit 8 - Port input data bit (y = 0..15)"] #[inline(always)] pub fn id8(&self) -> ID8_R { ID8_R::new(((self.bits >> 8) & 0x01) != 0) } #[doc = "Bit 7 - Port input data bit (y = 0..15)"] #[inline(always)] pub fn id7(&self) -> ID7_R { ID7_R::new(((self.bits >> 7) & 0x01) != 0) } #[doc = "Bit 6 - Port input data bit (y = 0..15)"] #[inline(always)] pub fn id6(&self) -> ID6_R { ID6_R::new(((self.bits >> 6) & 0x01) != 0) } #[doc = "Bit 5 - Port input data bit (y = 0..15)"] #[inline(always)] pub fn id5(&self) -> ID5_R { ID5_R::new(((self.bits >> 5) & 0x01) != 0) } #[doc = "Bit 4 - Port input data bit (y = 0..15)"] #[inline(always)] pub fn id4(&self) -> ID4_R { ID4_R::new(((self.bits >> 4) & 0x01) != 0) } #[doc = "Bit 3 - Port input data bit (y = 0..15)"] #[inline(always)] pub fn id3(&self) -> ID3_R { ID3_R::new(((self.bits >> 3) & 0x01) != 0) } #[doc = "Bit 2 - Port input data bit (y = 0..15)"] #[inline(always)] pub fn id2(&self) -> ID2_R { ID2_R::new(((self.bits >> 2) & 0x01) != 0) } #[doc = "Bit 1 - Port input data bit (y = 0..15)"] #[inline(always)] pub fn id1(&self) -> ID1_R { ID1_R::new(((self.bits >> 1) & 0x01) != 0) } #[doc = "Bit 0 - Port input data bit (y = 0..15)"] #[inline(always)] pub fn id0(&self) -> ID0_R { ID0_R::new((self.bits & 0x01) != 0) } }