stm32wb_pac/gpiob/
idr.rs

1#[doc = "Reader of register IDR"]
2pub type R = crate::R<u32, super::IDR>;
3#[doc = "Reader of field `IDR15`"]
4pub type IDR15_R = crate::R<bool, bool>;
5#[doc = "Reader of field `IDR14`"]
6pub type IDR14_R = crate::R<bool, bool>;
7#[doc = "Reader of field `IDR13`"]
8pub type IDR13_R = crate::R<bool, bool>;
9#[doc = "Reader of field `IDR12`"]
10pub type IDR12_R = crate::R<bool, bool>;
11#[doc = "Reader of field `IDR11`"]
12pub type IDR11_R = crate::R<bool, bool>;
13#[doc = "Reader of field `IDR10`"]
14pub type IDR10_R = crate::R<bool, bool>;
15#[doc = "Reader of field `IDR9`"]
16pub type IDR9_R = crate::R<bool, bool>;
17#[doc = "Reader of field `IDR8`"]
18pub type IDR8_R = crate::R<bool, bool>;
19#[doc = "Reader of field `IDR7`"]
20pub type IDR7_R = crate::R<bool, bool>;
21#[doc = "Reader of field `IDR6`"]
22pub type IDR6_R = crate::R<bool, bool>;
23#[doc = "Reader of field `IDR5`"]
24pub type IDR5_R = crate::R<bool, bool>;
25#[doc = "Reader of field `IDR4`"]
26pub type IDR4_R = crate::R<bool, bool>;
27#[doc = "Reader of field `IDR3`"]
28pub type IDR3_R = crate::R<bool, bool>;
29#[doc = "Reader of field `IDR2`"]
30pub type IDR2_R = crate::R<bool, bool>;
31#[doc = "Reader of field `IDR1`"]
32pub type IDR1_R = crate::R<bool, bool>;
33#[doc = "Reader of field `IDR0`"]
34pub type IDR0_R = crate::R<bool, bool>;
35impl R {
36    #[doc = "Bit 15 - Port input data (y = 0..15)"]
37    #[inline(always)]
38    pub fn idr15(&self) -> IDR15_R {
39        IDR15_R::new(((self.bits >> 15) & 0x01) != 0)
40    }
41    #[doc = "Bit 14 - Port input data (y = 0..15)"]
42    #[inline(always)]
43    pub fn idr14(&self) -> IDR14_R {
44        IDR14_R::new(((self.bits >> 14) & 0x01) != 0)
45    }
46    #[doc = "Bit 13 - Port input data (y = 0..15)"]
47    #[inline(always)]
48    pub fn idr13(&self) -> IDR13_R {
49        IDR13_R::new(((self.bits >> 13) & 0x01) != 0)
50    }
51    #[doc = "Bit 12 - Port input data (y = 0..15)"]
52    #[inline(always)]
53    pub fn idr12(&self) -> IDR12_R {
54        IDR12_R::new(((self.bits >> 12) & 0x01) != 0)
55    }
56    #[doc = "Bit 11 - Port input data (y = 0..15)"]
57    #[inline(always)]
58    pub fn idr11(&self) -> IDR11_R {
59        IDR11_R::new(((self.bits >> 11) & 0x01) != 0)
60    }
61    #[doc = "Bit 10 - Port input data (y = 0..15)"]
62    #[inline(always)]
63    pub fn idr10(&self) -> IDR10_R {
64        IDR10_R::new(((self.bits >> 10) & 0x01) != 0)
65    }
66    #[doc = "Bit 9 - Port input data (y = 0..15)"]
67    #[inline(always)]
68    pub fn idr9(&self) -> IDR9_R {
69        IDR9_R::new(((self.bits >> 9) & 0x01) != 0)
70    }
71    #[doc = "Bit 8 - Port input data (y = 0..15)"]
72    #[inline(always)]
73    pub fn idr8(&self) -> IDR8_R {
74        IDR8_R::new(((self.bits >> 8) & 0x01) != 0)
75    }
76    #[doc = "Bit 7 - Port input data (y = 0..15)"]
77    #[inline(always)]
78    pub fn idr7(&self) -> IDR7_R {
79        IDR7_R::new(((self.bits >> 7) & 0x01) != 0)
80    }
81    #[doc = "Bit 6 - Port input data (y = 0..15)"]
82    #[inline(always)]
83    pub fn idr6(&self) -> IDR6_R {
84        IDR6_R::new(((self.bits >> 6) & 0x01) != 0)
85    }
86    #[doc = "Bit 5 - Port input data (y = 0..15)"]
87    #[inline(always)]
88    pub fn idr5(&self) -> IDR5_R {
89        IDR5_R::new(((self.bits >> 5) & 0x01) != 0)
90    }
91    #[doc = "Bit 4 - Port input data (y = 0..15)"]
92    #[inline(always)]
93    pub fn idr4(&self) -> IDR4_R {
94        IDR4_R::new(((self.bits >> 4) & 0x01) != 0)
95    }
96    #[doc = "Bit 3 - Port input data (y = 0..15)"]
97    #[inline(always)]
98    pub fn idr3(&self) -> IDR3_R {
99        IDR3_R::new(((self.bits >> 3) & 0x01) != 0)
100    }
101    #[doc = "Bit 2 - Port input data (y = 0..15)"]
102    #[inline(always)]
103    pub fn idr2(&self) -> IDR2_R {
104        IDR2_R::new(((self.bits >> 2) & 0x01) != 0)
105    }
106    #[doc = "Bit 1 - Port input data (y = 0..15)"]
107    #[inline(always)]
108    pub fn idr1(&self) -> IDR1_R {
109        IDR1_R::new(((self.bits >> 1) & 0x01) != 0)
110    }
111    #[doc = "Bit 0 - Port input data (y = 0..15)"]
112    #[inline(always)]
113    pub fn idr0(&self) -> IDR0_R {
114        IDR0_R::new((self.bits & 0x01) != 0)
115    }
116}