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
#[doc = "Reader of register PINA"] pub type R = crate::R<u8, super::PINA>; #[doc = "Reader of field `PA0`"] pub type PA0_R = crate::R<bool, bool>; #[doc = "Reader of field `PA1`"] pub type PA1_R = crate::R<bool, bool>; #[doc = "Reader of field `PA2`"] pub type PA2_R = crate::R<bool, bool>; #[doc = "Reader of field `PA3`"] pub type PA3_R = crate::R<bool, bool>; #[doc = "Reader of field `PA4`"] pub type PA4_R = crate::R<bool, bool>; #[doc = "Reader of field `PA5`"] pub type PA5_R = crate::R<bool, bool>; #[doc = "Reader of field `PA6`"] pub type PA6_R = crate::R<bool, bool>; #[doc = "Reader of field `PA7`"] pub type PA7_R = crate::R<bool, bool>; impl R { #[doc = "Bit 0 - Pin A0"] #[inline(always)] pub fn pa0(&self) -> PA0_R { PA0_R::new((self.bits & 0x01) != 0) } #[doc = "Bit 1 - Pin A1"] #[inline(always)] pub fn pa1(&self) -> PA1_R { PA1_R::new(((self.bits >> 1) & 0x01) != 0) } #[doc = "Bit 2 - Pin A2"] #[inline(always)] pub fn pa2(&self) -> PA2_R { PA2_R::new(((self.bits >> 2) & 0x01) != 0) } #[doc = "Bit 3 - Pin A3"] #[inline(always)] pub fn pa3(&self) -> PA3_R { PA3_R::new(((self.bits >> 3) & 0x01) != 0) } #[doc = "Bit 4 - Pin A4"] #[inline(always)] pub fn pa4(&self) -> PA4_R { PA4_R::new(((self.bits >> 4) & 0x01) != 0) } #[doc = "Bit 5 - Pin A5"] #[inline(always)] pub fn pa5(&self) -> PA5_R { PA5_R::new(((self.bits >> 5) & 0x01) != 0) } #[doc = "Bit 6 - Pin A6"] #[inline(always)] pub fn pa6(&self) -> PA6_R { PA6_R::new(((self.bits >> 6) & 0x01) != 0) } #[doc = "Bit 7 - Pin A7"] #[inline(always)] pub fn pa7(&self) -> PA7_R { PA7_R::new(((self.bits >> 7) & 0x01) != 0) } }