1#[doc = "Reader of register IDR"]
2pub type R = crate::R<u32, super::IDR>;
3#[doc = "Reader of field `IDR4`"]
4pub type IDR4_R = crate::R<bool, bool>;
5#[doc = "Reader of field `IDR3`"]
6pub type IDR3_R = crate::R<bool, bool>;
7#[doc = "Reader of field `IDR2`"]
8pub type IDR2_R = crate::R<bool, bool>;
9#[doc = "Reader of field `IDR1`"]
10pub type IDR1_R = crate::R<bool, bool>;
11#[doc = "Reader of field `IDR0`"]
12pub type IDR0_R = crate::R<bool, bool>;
13impl R {
14 #[doc = "Bit 4 - Port input data (y = 0..15)"]
15 #[inline(always)]
16 pub fn idr4(&self) -> IDR4_R {
17 IDR4_R::new(((self.bits >> 4) & 0x01) != 0)
18 }
19 #[doc = "Bit 3 - Port input data (y = 0..15)"]
20 #[inline(always)]
21 pub fn idr3(&self) -> IDR3_R {
22 IDR3_R::new(((self.bits >> 3) & 0x01) != 0)
23 }
24 #[doc = "Bit 2 - Port input data (y = 0..15)"]
25 #[inline(always)]
26 pub fn idr2(&self) -> IDR2_R {
27 IDR2_R::new(((self.bits >> 2) & 0x01) != 0)
28 }
29 #[doc = "Bit 1 - Port input data (y = 0..15)"]
30 #[inline(always)]
31 pub fn idr1(&self) -> IDR1_R {
32 IDR1_R::new(((self.bits >> 1) & 0x01) != 0)
33 }
34 #[doc = "Bit 0 - Port input data (y = 0..15)"]
35 #[inline(always)]
36 pub fn idr0(&self) -> IDR0_R {
37 IDR0_R::new((self.bits & 0x01) != 0)
38 }
39}