stm32f103-pac 0.1.2

Peripheral Access Crate (PAC) for STM32F103
Documentation
#[doc = "Register `BSRR` writer"]
pub type W = crate::W<BsrrSpec>;
#[doc = "Field `BS0` writer - Set bit 0"]
pub type Bs0W<'a, REG> = crate::BitWriter<'a, REG>;
#[doc = "Field `BS1` writer - Set bit 1"]
pub type Bs1W<'a, REG> = crate::BitWriter<'a, REG>;
#[doc = "Field `BS2` writer - Set bit 1"]
pub type Bs2W<'a, REG> = crate::BitWriter<'a, REG>;
#[doc = "Field `BS3` writer - Set bit 3"]
pub type Bs3W<'a, REG> = crate::BitWriter<'a, REG>;
#[doc = "Field `BS4` writer - Set bit 4"]
pub type Bs4W<'a, REG> = crate::BitWriter<'a, REG>;
#[doc = "Field `BS5` writer - Set bit 5"]
pub type Bs5W<'a, REG> = crate::BitWriter<'a, REG>;
#[doc = "Field `BS6` writer - Set bit 6"]
pub type Bs6W<'a, REG> = crate::BitWriter<'a, REG>;
#[doc = "Field `BS7` writer - Set bit 7"]
pub type Bs7W<'a, REG> = crate::BitWriter<'a, REG>;
#[doc = "Field `BS8` writer - Set bit 8"]
pub type Bs8W<'a, REG> = crate::BitWriter<'a, REG>;
#[doc = "Field `BS9` writer - Set bit 9"]
pub type Bs9W<'a, REG> = crate::BitWriter<'a, REG>;
#[doc = "Field `BS10` writer - Set bit 10"]
pub type Bs10W<'a, REG> = crate::BitWriter<'a, REG>;
#[doc = "Field `BS11` writer - Set bit 11"]
pub type Bs11W<'a, REG> = crate::BitWriter<'a, REG>;
#[doc = "Field `BS12` writer - Set bit 12"]
pub type Bs12W<'a, REG> = crate::BitWriter<'a, REG>;
#[doc = "Field `BS13` writer - Set bit 13"]
pub type Bs13W<'a, REG> = crate::BitWriter<'a, REG>;
#[doc = "Field `BS14` writer - Set bit 14"]
pub type Bs14W<'a, REG> = crate::BitWriter<'a, REG>;
#[doc = "Field `BS15` writer - Set bit 15"]
pub type Bs15W<'a, REG> = crate::BitWriter<'a, REG>;
#[doc = "Field `BR0` writer - Reset bit 0"]
pub type Br0W<'a, REG> = crate::BitWriter<'a, REG>;
#[doc = "Field `BR1` writer - Reset bit 1"]
pub type Br1W<'a, REG> = crate::BitWriter<'a, REG>;
#[doc = "Field `BR2` writer - Reset bit 2"]
pub type Br2W<'a, REG> = crate::BitWriter<'a, REG>;
#[doc = "Field `BR3` writer - Reset bit 3"]
pub type Br3W<'a, REG> = crate::BitWriter<'a, REG>;
#[doc = "Field `BR4` writer - Reset bit 4"]
pub type Br4W<'a, REG> = crate::BitWriter<'a, REG>;
#[doc = "Field `BR5` writer - Reset bit 5"]
pub type Br5W<'a, REG> = crate::BitWriter<'a, REG>;
#[doc = "Field `BR6` writer - Reset bit 6"]
pub type Br6W<'a, REG> = crate::BitWriter<'a, REG>;
#[doc = "Field `BR7` writer - Reset bit 7"]
pub type Br7W<'a, REG> = crate::BitWriter<'a, REG>;
#[doc = "Field `BR8` writer - Reset bit 8"]
pub type Br8W<'a, REG> = crate::BitWriter<'a, REG>;
#[doc = "Field `BR9` writer - Reset bit 9"]
pub type Br9W<'a, REG> = crate::BitWriter<'a, REG>;
#[doc = "Field `BR10` writer - Reset bit 10"]
pub type Br10W<'a, REG> = crate::BitWriter<'a, REG>;
#[doc = "Field `BR11` writer - Reset bit 11"]
pub type Br11W<'a, REG> = crate::BitWriter<'a, REG>;
#[doc = "Field `BR12` writer - Reset bit 12"]
pub type Br12W<'a, REG> = crate::BitWriter<'a, REG>;
#[doc = "Field `BR13` writer - Reset bit 13"]
pub type Br13W<'a, REG> = crate::BitWriter<'a, REG>;
#[doc = "Field `BR14` writer - Reset bit 14"]
pub type Br14W<'a, REG> = crate::BitWriter<'a, REG>;
#[doc = "Field `BR15` writer - Reset bit 15"]
pub type Br15W<'a, REG> = crate::BitWriter<'a, REG>;
impl W {
    #[doc = "Bit 0 - Set bit 0"]
    #[inline(always)]
    pub fn bs0(&mut self) -> Bs0W<'_, BsrrSpec> {
        Bs0W::new(self, 0)
    }
    #[doc = "Bit 1 - Set bit 1"]
    #[inline(always)]
    pub fn bs1(&mut self) -> Bs1W<'_, BsrrSpec> {
        Bs1W::new(self, 1)
    }
    #[doc = "Bit 2 - Set bit 1"]
    #[inline(always)]
    pub fn bs2(&mut self) -> Bs2W<'_, BsrrSpec> {
        Bs2W::new(self, 2)
    }
    #[doc = "Bit 3 - Set bit 3"]
    #[inline(always)]
    pub fn bs3(&mut self) -> Bs3W<'_, BsrrSpec> {
        Bs3W::new(self, 3)
    }
    #[doc = "Bit 4 - Set bit 4"]
    #[inline(always)]
    pub fn bs4(&mut self) -> Bs4W<'_, BsrrSpec> {
        Bs4W::new(self, 4)
    }
    #[doc = "Bit 5 - Set bit 5"]
    #[inline(always)]
    pub fn bs5(&mut self) -> Bs5W<'_, BsrrSpec> {
        Bs5W::new(self, 5)
    }
    #[doc = "Bit 6 - Set bit 6"]
    #[inline(always)]
    pub fn bs6(&mut self) -> Bs6W<'_, BsrrSpec> {
        Bs6W::new(self, 6)
    }
    #[doc = "Bit 7 - Set bit 7"]
    #[inline(always)]
    pub fn bs7(&mut self) -> Bs7W<'_, BsrrSpec> {
        Bs7W::new(self, 7)
    }
    #[doc = "Bit 8 - Set bit 8"]
    #[inline(always)]
    pub fn bs8(&mut self) -> Bs8W<'_, BsrrSpec> {
        Bs8W::new(self, 8)
    }
    #[doc = "Bit 9 - Set bit 9"]
    #[inline(always)]
    pub fn bs9(&mut self) -> Bs9W<'_, BsrrSpec> {
        Bs9W::new(self, 9)
    }
    #[doc = "Bit 10 - Set bit 10"]
    #[inline(always)]
    pub fn bs10(&mut self) -> Bs10W<'_, BsrrSpec> {
        Bs10W::new(self, 10)
    }
    #[doc = "Bit 11 - Set bit 11"]
    #[inline(always)]
    pub fn bs11(&mut self) -> Bs11W<'_, BsrrSpec> {
        Bs11W::new(self, 11)
    }
    #[doc = "Bit 12 - Set bit 12"]
    #[inline(always)]
    pub fn bs12(&mut self) -> Bs12W<'_, BsrrSpec> {
        Bs12W::new(self, 12)
    }
    #[doc = "Bit 13 - Set bit 13"]
    #[inline(always)]
    pub fn bs13(&mut self) -> Bs13W<'_, BsrrSpec> {
        Bs13W::new(self, 13)
    }
    #[doc = "Bit 14 - Set bit 14"]
    #[inline(always)]
    pub fn bs14(&mut self) -> Bs14W<'_, BsrrSpec> {
        Bs14W::new(self, 14)
    }
    #[doc = "Bit 15 - Set bit 15"]
    #[inline(always)]
    pub fn bs15(&mut self) -> Bs15W<'_, BsrrSpec> {
        Bs15W::new(self, 15)
    }
    #[doc = "Bit 16 - Reset bit 0"]
    #[inline(always)]
    pub fn br0(&mut self) -> Br0W<'_, BsrrSpec> {
        Br0W::new(self, 16)
    }
    #[doc = "Bit 17 - Reset bit 1"]
    #[inline(always)]
    pub fn br1(&mut self) -> Br1W<'_, BsrrSpec> {
        Br1W::new(self, 17)
    }
    #[doc = "Bit 18 - Reset bit 2"]
    #[inline(always)]
    pub fn br2(&mut self) -> Br2W<'_, BsrrSpec> {
        Br2W::new(self, 18)
    }
    #[doc = "Bit 19 - Reset bit 3"]
    #[inline(always)]
    pub fn br3(&mut self) -> Br3W<'_, BsrrSpec> {
        Br3W::new(self, 19)
    }
    #[doc = "Bit 20 - Reset bit 4"]
    #[inline(always)]
    pub fn br4(&mut self) -> Br4W<'_, BsrrSpec> {
        Br4W::new(self, 20)
    }
    #[doc = "Bit 21 - Reset bit 5"]
    #[inline(always)]
    pub fn br5(&mut self) -> Br5W<'_, BsrrSpec> {
        Br5W::new(self, 21)
    }
    #[doc = "Bit 22 - Reset bit 6"]
    #[inline(always)]
    pub fn br6(&mut self) -> Br6W<'_, BsrrSpec> {
        Br6W::new(self, 22)
    }
    #[doc = "Bit 23 - Reset bit 7"]
    #[inline(always)]
    pub fn br7(&mut self) -> Br7W<'_, BsrrSpec> {
        Br7W::new(self, 23)
    }
    #[doc = "Bit 24 - Reset bit 8"]
    #[inline(always)]
    pub fn br8(&mut self) -> Br8W<'_, BsrrSpec> {
        Br8W::new(self, 24)
    }
    #[doc = "Bit 25 - Reset bit 9"]
    #[inline(always)]
    pub fn br9(&mut self) -> Br9W<'_, BsrrSpec> {
        Br9W::new(self, 25)
    }
    #[doc = "Bit 26 - Reset bit 10"]
    #[inline(always)]
    pub fn br10(&mut self) -> Br10W<'_, BsrrSpec> {
        Br10W::new(self, 26)
    }
    #[doc = "Bit 27 - Reset bit 11"]
    #[inline(always)]
    pub fn br11(&mut self) -> Br11W<'_, BsrrSpec> {
        Br11W::new(self, 27)
    }
    #[doc = "Bit 28 - Reset bit 12"]
    #[inline(always)]
    pub fn br12(&mut self) -> Br12W<'_, BsrrSpec> {
        Br12W::new(self, 28)
    }
    #[doc = "Bit 29 - Reset bit 13"]
    #[inline(always)]
    pub fn br13(&mut self) -> Br13W<'_, BsrrSpec> {
        Br13W::new(self, 29)
    }
    #[doc = "Bit 30 - Reset bit 14"]
    #[inline(always)]
    pub fn br14(&mut self) -> Br14W<'_, BsrrSpec> {
        Br14W::new(self, 30)
    }
    #[doc = "Bit 31 - Reset bit 15"]
    #[inline(always)]
    pub fn br15(&mut self) -> Br15W<'_, BsrrSpec> {
        Br15W::new(self, 31)
    }
}
#[doc = "Port bit set/reset register (GPIOn_BSRR)\n\nYou can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`bsrr::W`](W). See [API](https://docs.rs/svd2rust/#read--modify--write-api)."]
pub struct BsrrSpec;
impl crate::RegisterSpec for BsrrSpec {
    type Ux = u32;
}
#[doc = "`write(|w| ..)` method takes [`bsrr::W`](W) writer structure"]
impl crate::Writable for BsrrSpec {
    type Safety = crate::Unsafe;
}
#[doc = "`reset()` method sets BSRR to value 0"]
impl crate::Resettable for BsrrSpec {}