stm32f103-pac 0.1.2

Peripheral Access Crate (PAC) for STM32F103
Documentation
#[doc = "Register `IDR` reader"]
pub type R = crate::R<IdrSpec>;
#[doc = "Field `IDR0` reader - Port input data"]
pub type Idr0R = crate::BitReader;
#[doc = "Field `IDR1` reader - Port input data"]
pub type Idr1R = crate::BitReader;
#[doc = "Field `IDR2` reader - Port input data"]
pub type Idr2R = crate::BitReader;
#[doc = "Field `IDR3` reader - Port input data"]
pub type Idr3R = crate::BitReader;
#[doc = "Field `IDR4` reader - Port input data"]
pub type Idr4R = crate::BitReader;
#[doc = "Field `IDR5` reader - Port input data"]
pub type Idr5R = crate::BitReader;
#[doc = "Field `IDR6` reader - Port input data"]
pub type Idr6R = crate::BitReader;
#[doc = "Field `IDR7` reader - Port input data"]
pub type Idr7R = crate::BitReader;
#[doc = "Field `IDR8` reader - Port input data"]
pub type Idr8R = crate::BitReader;
#[doc = "Field `IDR9` reader - Port input data"]
pub type Idr9R = crate::BitReader;
#[doc = "Field `IDR10` reader - Port input data"]
pub type Idr10R = crate::BitReader;
#[doc = "Field `IDR11` reader - Port input data"]
pub type Idr11R = crate::BitReader;
#[doc = "Field `IDR12` reader - Port input data"]
pub type Idr12R = crate::BitReader;
#[doc = "Field `IDR13` reader - Port input data"]
pub type Idr13R = crate::BitReader;
#[doc = "Field `IDR14` reader - Port input data"]
pub type Idr14R = crate::BitReader;
#[doc = "Field `IDR15` reader - Port input data"]
pub type Idr15R = crate::BitReader;
impl R {
    #[doc = "Bit 0 - Port input data"]
    #[inline(always)]
    pub fn idr0(&self) -> Idr0R {
        Idr0R::new((self.bits & 1) != 0)
    }
    #[doc = "Bit 1 - Port input data"]
    #[inline(always)]
    pub fn idr1(&self) -> Idr1R {
        Idr1R::new(((self.bits >> 1) & 1) != 0)
    }
    #[doc = "Bit 2 - Port input data"]
    #[inline(always)]
    pub fn idr2(&self) -> Idr2R {
        Idr2R::new(((self.bits >> 2) & 1) != 0)
    }
    #[doc = "Bit 3 - Port input data"]
    #[inline(always)]
    pub fn idr3(&self) -> Idr3R {
        Idr3R::new(((self.bits >> 3) & 1) != 0)
    }
    #[doc = "Bit 4 - Port input data"]
    #[inline(always)]
    pub fn idr4(&self) -> Idr4R {
        Idr4R::new(((self.bits >> 4) & 1) != 0)
    }
    #[doc = "Bit 5 - Port input data"]
    #[inline(always)]
    pub fn idr5(&self) -> Idr5R {
        Idr5R::new(((self.bits >> 5) & 1) != 0)
    }
    #[doc = "Bit 6 - Port input data"]
    #[inline(always)]
    pub fn idr6(&self) -> Idr6R {
        Idr6R::new(((self.bits >> 6) & 1) != 0)
    }
    #[doc = "Bit 7 - Port input data"]
    #[inline(always)]
    pub fn idr7(&self) -> Idr7R {
        Idr7R::new(((self.bits >> 7) & 1) != 0)
    }
    #[doc = "Bit 8 - Port input data"]
    #[inline(always)]
    pub fn idr8(&self) -> Idr8R {
        Idr8R::new(((self.bits >> 8) & 1) != 0)
    }
    #[doc = "Bit 9 - Port input data"]
    #[inline(always)]
    pub fn idr9(&self) -> Idr9R {
        Idr9R::new(((self.bits >> 9) & 1) != 0)
    }
    #[doc = "Bit 10 - Port input data"]
    #[inline(always)]
    pub fn idr10(&self) -> Idr10R {
        Idr10R::new(((self.bits >> 10) & 1) != 0)
    }
    #[doc = "Bit 11 - Port input data"]
    #[inline(always)]
    pub fn idr11(&self) -> Idr11R {
        Idr11R::new(((self.bits >> 11) & 1) != 0)
    }
    #[doc = "Bit 12 - Port input data"]
    #[inline(always)]
    pub fn idr12(&self) -> Idr12R {
        Idr12R::new(((self.bits >> 12) & 1) != 0)
    }
    #[doc = "Bit 13 - Port input data"]
    #[inline(always)]
    pub fn idr13(&self) -> Idr13R {
        Idr13R::new(((self.bits >> 13) & 1) != 0)
    }
    #[doc = "Bit 14 - Port input data"]
    #[inline(always)]
    pub fn idr14(&self) -> Idr14R {
        Idr14R::new(((self.bits >> 14) & 1) != 0)
    }
    #[doc = "Bit 15 - Port input data"]
    #[inline(always)]
    pub fn idr15(&self) -> Idr15R {
        Idr15R::new(((self.bits >> 15) & 1) != 0)
    }
}
#[doc = "Port input data register (GPIOn_IDR)\n\nYou can [`read`](crate::Reg::read) this register and get [`idr::R`](R). See [API](https://docs.rs/svd2rust/#read--modify--write-api)."]
pub struct IdrSpec;
impl crate::RegisterSpec for IdrSpec {
    type Ux = u32;
}
#[doc = "`read()` method returns [`idr::R`](R) reader structure"]
impl crate::Readable for IdrSpec {}
#[doc = "`reset()` method sets IDR to value 0"]
impl crate::Resettable for IdrSpec {}