stm32wb_pac/gpioh/
idr.rs

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