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 PIND"] pub type R = crate::R<u8, super::PIND>; #[doc = "Reader of field `PD0`"] pub type PD0_R = crate::R<bool, bool>; #[doc = "Reader of field `PD1`"] pub type PD1_R = crate::R<bool, bool>; #[doc = "Reader of field `PD2`"] pub type PD2_R = crate::R<bool, bool>; #[doc = "Reader of field `PD3`"] pub type PD3_R = crate::R<bool, bool>; #[doc = "Reader of field `PD4`"] pub type PD4_R = crate::R<bool, bool>; #[doc = "Reader of field `PD5`"] pub type PD5_R = crate::R<bool, bool>; #[doc = "Reader of field `PD6`"] pub type PD6_R = crate::R<bool, bool>; #[doc = "Reader of field `PD7`"] pub type PD7_R = crate::R<bool, bool>; impl R { #[doc = "Bit 0 - Pin D0"] #[inline(always)] pub fn pd0(&self) -> PD0_R { PD0_R::new((self.bits & 0x01) != 0) } #[doc = "Bit 1 - Pin D1"] #[inline(always)] pub fn pd1(&self) -> PD1_R { PD1_R::new(((self.bits >> 1) & 0x01) != 0) } #[doc = "Bit 2 - Pin D2"] #[inline(always)] pub fn pd2(&self) -> PD2_R { PD2_R::new(((self.bits >> 2) & 0x01) != 0) } #[doc = "Bit 3 - Pin D3"] #[inline(always)] pub fn pd3(&self) -> PD3_R { PD3_R::new(((self.bits >> 3) & 0x01) != 0) } #[doc = "Bit 4 - Pin D4"] #[inline(always)] pub fn pd4(&self) -> PD4_R { PD4_R::new(((self.bits >> 4) & 0x01) != 0) } #[doc = "Bit 5 - Pin D5"] #[inline(always)] pub fn pd5(&self) -> PD5_R { PD5_R::new(((self.bits >> 5) & 0x01) != 0) } #[doc = "Bit 6 - Pin D6"] #[inline(always)] pub fn pd6(&self) -> PD6_R { PD6_R::new(((self.bits >> 6) & 0x01) != 0) } #[doc = "Bit 7 - Pin D7"] #[inline(always)] pub fn pd7(&self) -> PD7_R { PD7_R::new(((self.bits >> 7) & 0x01) != 0) } }