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 PINB"] pub type R = crate::R<u8, super::PINB>; #[doc = "Reader of field `PB0`"] pub type PB0_R = crate::R<bool, bool>; #[doc = "Reader of field `PB1`"] pub type PB1_R = crate::R<bool, bool>; #[doc = "Reader of field `PB2`"] pub type PB2_R = crate::R<bool, bool>; #[doc = "Reader of field `PB3`"] pub type PB3_R = crate::R<bool, bool>; #[doc = "Reader of field `PB4`"] pub type PB4_R = crate::R<bool, bool>; #[doc = "Reader of field `PB5`"] pub type PB5_R = crate::R<bool, bool>; #[doc = "Reader of field `PB6`"] pub type PB6_R = crate::R<bool, bool>; #[doc = "Reader of field `PB7`"] pub type PB7_R = crate::R<bool, bool>; impl R { #[doc = "Bit 0 - Pin B0"] #[inline(always)] pub fn pb0(&self) -> PB0_R { PB0_R::new((self.bits & 0x01) != 0) } #[doc = "Bit 1 - Pin B1"] #[inline(always)] pub fn pb1(&self) -> PB1_R { PB1_R::new(((self.bits >> 1) & 0x01) != 0) } #[doc = "Bit 2 - Pin B2"] #[inline(always)] pub fn pb2(&self) -> PB2_R { PB2_R::new(((self.bits >> 2) & 0x01) != 0) } #[doc = "Bit 3 - Pin B3"] #[inline(always)] pub fn pb3(&self) -> PB3_R { PB3_R::new(((self.bits >> 3) & 0x01) != 0) } #[doc = "Bit 4 - Pin B4"] #[inline(always)] pub fn pb4(&self) -> PB4_R { PB4_R::new(((self.bits >> 4) & 0x01) != 0) } #[doc = "Bit 5 - Pin B5"] #[inline(always)] pub fn pb5(&self) -> PB5_R { PB5_R::new(((self.bits >> 5) & 0x01) != 0) } #[doc = "Bit 6 - Pin B6"] #[inline(always)] pub fn pb6(&self) -> PB6_R { PB6_R::new(((self.bits >> 6) & 0x01) != 0) } #[doc = "Bit 7 - Pin B7"] #[inline(always)] pub fn pb7(&self) -> PB7_R { PB7_R::new(((self.bits >> 7) & 0x01) != 0) } }