#[doc = "Register `PCR` reader"]
pub type R = crate::R<PcrSpec>;
#[doc = "Register `PCR` writer"]
pub type W = crate::W<PcrSpec>;
#[doc = "Field `CTR0` reader - Protocol Control Bit 0"]
pub type Ctr0R = crate::BitReader;
#[doc = "Field `CTR0` writer - Protocol Control Bit 0"]
pub type Ctr0W<'a, REG> = crate::BitWriter<'a, REG>;
#[doc = "Field `CTR1` reader - Protocol Control Bit 1"]
pub type Ctr1R = crate::BitReader;
#[doc = "Field `CTR1` writer - Protocol Control Bit 1"]
pub type Ctr1W<'a, REG> = crate::BitWriter<'a, REG>;
#[doc = "Field `CTR2` reader - Protocol Control Bit 2"]
pub type Ctr2R = crate::BitReader;
#[doc = "Field `CTR2` writer - Protocol Control Bit 2"]
pub type Ctr2W<'a, REG> = crate::BitWriter<'a, REG>;
#[doc = "Field `CTR3` reader - Protocol Control Bit 3"]
pub type Ctr3R = crate::BitReader;
#[doc = "Field `CTR3` writer - Protocol Control Bit 3"]
pub type Ctr3W<'a, REG> = crate::BitWriter<'a, REG>;
#[doc = "Field `CTR4` reader - Protocol Control Bit 4"]
pub type Ctr4R = crate::BitReader;
#[doc = "Field `CTR4` writer - Protocol Control Bit 4"]
pub type Ctr4W<'a, REG> = crate::BitWriter<'a, REG>;
#[doc = "Field `CTR5` reader - Protocol Control Bit 5"]
pub type Ctr5R = crate::BitReader;
#[doc = "Field `CTR5` writer - Protocol Control Bit 5"]
pub type Ctr5W<'a, REG> = crate::BitWriter<'a, REG>;
#[doc = "Field `CTR6` reader - Protocol Control Bit 6"]
pub type Ctr6R = crate::BitReader;
#[doc = "Field `CTR6` writer - Protocol Control Bit 6"]
pub type Ctr6W<'a, REG> = crate::BitWriter<'a, REG>;
#[doc = "Field `CTR7` reader - Protocol Control Bit 7"]
pub type Ctr7R = crate::BitReader;
#[doc = "Field `CTR7` writer - Protocol Control Bit 7"]
pub type Ctr7W<'a, REG> = crate::BitWriter<'a, REG>;
#[doc = "Field `CTR8` reader - Protocol Control Bit 8"]
pub type Ctr8R = crate::BitReader;
#[doc = "Field `CTR8` writer - Protocol Control Bit 8"]
pub type Ctr8W<'a, REG> = crate::BitWriter<'a, REG>;
#[doc = "Field `CTR9` reader - Protocol Control Bit 9"]
pub type Ctr9R = crate::BitReader;
#[doc = "Field `CTR9` writer - Protocol Control Bit 9"]
pub type Ctr9W<'a, REG> = crate::BitWriter<'a, REG>;
#[doc = "Field `CTR10` reader - Protocol Control Bit 10"]
pub type Ctr10R = crate::BitReader;
#[doc = "Field `CTR10` writer - Protocol Control Bit 10"]
pub type Ctr10W<'a, REG> = crate::BitWriter<'a, REG>;
#[doc = "Field `CTR11` reader - Protocol Control Bit 11"]
pub type Ctr11R = crate::BitReader;
#[doc = "Field `CTR11` writer - Protocol Control Bit 11"]
pub type Ctr11W<'a, REG> = crate::BitWriter<'a, REG>;
#[doc = "Field `CTR12` reader - Protocol Control Bit 12"]
pub type Ctr12R = crate::BitReader;
#[doc = "Field `CTR12` writer - Protocol Control Bit 12"]
pub type Ctr12W<'a, REG> = crate::BitWriter<'a, REG>;
#[doc = "Field `CTR13` reader - Protocol Control Bit 13"]
pub type Ctr13R = crate::BitReader;
#[doc = "Field `CTR13` writer - Protocol Control Bit 13"]
pub type Ctr13W<'a, REG> = crate::BitWriter<'a, REG>;
#[doc = "Field `CTR14` reader - Protocol Control Bit 14"]
pub type Ctr14R = crate::BitReader;
#[doc = "Field `CTR14` writer - Protocol Control Bit 14"]
pub type Ctr14W<'a, REG> = crate::BitWriter<'a, REG>;
#[doc = "Field `CTR15` reader - Protocol Control Bit 15"]
pub type Ctr15R = crate::BitReader;
#[doc = "Field `CTR15` writer - Protocol Control Bit 15"]
pub type Ctr15W<'a, REG> = crate::BitWriter<'a, REG>;
#[doc = "Field `CTR16` reader - Protocol Control Bit 16"]
pub type Ctr16R = crate::BitReader;
#[doc = "Field `CTR16` writer - Protocol Control Bit 16"]
pub type Ctr16W<'a, REG> = crate::BitWriter<'a, REG>;
#[doc = "Field `CTR17` reader - Protocol Control Bit 17"]
pub type Ctr17R = crate::BitReader;
#[doc = "Field `CTR17` writer - Protocol Control Bit 17"]
pub type Ctr17W<'a, REG> = crate::BitWriter<'a, REG>;
#[doc = "Field `CTR18` reader - Protocol Control Bit 18"]
pub type Ctr18R = crate::BitReader;
#[doc = "Field `CTR18` writer - Protocol Control Bit 18"]
pub type Ctr18W<'a, REG> = crate::BitWriter<'a, REG>;
#[doc = "Field `CTR19` reader - Protocol Control Bit 19"]
pub type Ctr19R = crate::BitReader;
#[doc = "Field `CTR19` writer - Protocol Control Bit 19"]
pub type Ctr19W<'a, REG> = crate::BitWriter<'a, REG>;
#[doc = "Field `CTR20` reader - Protocol Control Bit 20"]
pub type Ctr20R = crate::BitReader;
#[doc = "Field `CTR20` writer - Protocol Control Bit 20"]
pub type Ctr20W<'a, REG> = crate::BitWriter<'a, REG>;
#[doc = "Field `CTR21` reader - Protocol Control Bit 21"]
pub type Ctr21R = crate::BitReader;
#[doc = "Field `CTR21` writer - Protocol Control Bit 21"]
pub type Ctr21W<'a, REG> = crate::BitWriter<'a, REG>;
#[doc = "Field `CTR22` reader - Protocol Control Bit 22"]
pub type Ctr22R = crate::BitReader;
#[doc = "Field `CTR22` writer - Protocol Control Bit 22"]
pub type Ctr22W<'a, REG> = crate::BitWriter<'a, REG>;
#[doc = "Field `CTR23` reader - Protocol Control Bit 23"]
pub type Ctr23R = crate::BitReader;
#[doc = "Field `CTR23` writer - Protocol Control Bit 23"]
pub type Ctr23W<'a, REG> = crate::BitWriter<'a, REG>;
#[doc = "Field `CTR24` reader - Protocol Control Bit 24"]
pub type Ctr24R = crate::BitReader;
#[doc = "Field `CTR24` writer - Protocol Control Bit 24"]
pub type Ctr24W<'a, REG> = crate::BitWriter<'a, REG>;
#[doc = "Field `CTR25` reader - Protocol Control Bit 25"]
pub type Ctr25R = crate::BitReader;
#[doc = "Field `CTR25` writer - Protocol Control Bit 25"]
pub type Ctr25W<'a, REG> = crate::BitWriter<'a, REG>;
#[doc = "Field `CTR26` reader - Protocol Control Bit 26"]
pub type Ctr26R = crate::BitReader;
#[doc = "Field `CTR26` writer - Protocol Control Bit 26"]
pub type Ctr26W<'a, REG> = crate::BitWriter<'a, REG>;
#[doc = "Field `CTR27` reader - Protocol Control Bit 27"]
pub type Ctr27R = crate::BitReader;
#[doc = "Field `CTR27` writer - Protocol Control Bit 27"]
pub type Ctr27W<'a, REG> = crate::BitWriter<'a, REG>;
#[doc = "Field `CTR28` reader - Protocol Control Bit 28"]
pub type Ctr28R = crate::BitReader;
#[doc = "Field `CTR28` writer - Protocol Control Bit 28"]
pub type Ctr28W<'a, REG> = crate::BitWriter<'a, REG>;
#[doc = "Field `CTR29` reader - Protocol Control Bit 29"]
pub type Ctr29R = crate::BitReader;
#[doc = "Field `CTR29` writer - Protocol Control Bit 29"]
pub type Ctr29W<'a, REG> = crate::BitWriter<'a, REG>;
#[doc = "Field `CTR30` reader - Protocol Control Bit 30"]
pub type Ctr30R = crate::BitReader;
#[doc = "Field `CTR30` writer - Protocol Control Bit 30"]
pub type Ctr30W<'a, REG> = crate::BitWriter<'a, REG>;
#[doc = "Field `CTR31` reader - Protocol Control Bit 31"]
pub type Ctr31R = crate::BitReader;
#[doc = "Field `CTR31` writer - Protocol Control Bit 31"]
pub type Ctr31W<'a, REG> = crate::BitWriter<'a, REG>;
impl R {
#[doc = "Bit 0 - Protocol Control Bit 0"]
#[inline(always)]
pub fn ctr0(&self) -> Ctr0R {
Ctr0R::new((self.bits & 1) != 0)
}
#[doc = "Bit 1 - Protocol Control Bit 1"]
#[inline(always)]
pub fn ctr1(&self) -> Ctr1R {
Ctr1R::new(((self.bits >> 1) & 1) != 0)
}
#[doc = "Bit 2 - Protocol Control Bit 2"]
#[inline(always)]
pub fn ctr2(&self) -> Ctr2R {
Ctr2R::new(((self.bits >> 2) & 1) != 0)
}
#[doc = "Bit 3 - Protocol Control Bit 3"]
#[inline(always)]
pub fn ctr3(&self) -> Ctr3R {
Ctr3R::new(((self.bits >> 3) & 1) != 0)
}
#[doc = "Bit 4 - Protocol Control Bit 4"]
#[inline(always)]
pub fn ctr4(&self) -> Ctr4R {
Ctr4R::new(((self.bits >> 4) & 1) != 0)
}
#[doc = "Bit 5 - Protocol Control Bit 5"]
#[inline(always)]
pub fn ctr5(&self) -> Ctr5R {
Ctr5R::new(((self.bits >> 5) & 1) != 0)
}
#[doc = "Bit 6 - Protocol Control Bit 6"]
#[inline(always)]
pub fn ctr6(&self) -> Ctr6R {
Ctr6R::new(((self.bits >> 6) & 1) != 0)
}
#[doc = "Bit 7 - Protocol Control Bit 7"]
#[inline(always)]
pub fn ctr7(&self) -> Ctr7R {
Ctr7R::new(((self.bits >> 7) & 1) != 0)
}
#[doc = "Bit 8 - Protocol Control Bit 8"]
#[inline(always)]
pub fn ctr8(&self) -> Ctr8R {
Ctr8R::new(((self.bits >> 8) & 1) != 0)
}
#[doc = "Bit 9 - Protocol Control Bit 9"]
#[inline(always)]
pub fn ctr9(&self) -> Ctr9R {
Ctr9R::new(((self.bits >> 9) & 1) != 0)
}
#[doc = "Bit 10 - Protocol Control Bit 10"]
#[inline(always)]
pub fn ctr10(&self) -> Ctr10R {
Ctr10R::new(((self.bits >> 10) & 1) != 0)
}
#[doc = "Bit 11 - Protocol Control Bit 11"]
#[inline(always)]
pub fn ctr11(&self) -> Ctr11R {
Ctr11R::new(((self.bits >> 11) & 1) != 0)
}
#[doc = "Bit 12 - Protocol Control Bit 12"]
#[inline(always)]
pub fn ctr12(&self) -> Ctr12R {
Ctr12R::new(((self.bits >> 12) & 1) != 0)
}
#[doc = "Bit 13 - Protocol Control Bit 13"]
#[inline(always)]
pub fn ctr13(&self) -> Ctr13R {
Ctr13R::new(((self.bits >> 13) & 1) != 0)
}
#[doc = "Bit 14 - Protocol Control Bit 14"]
#[inline(always)]
pub fn ctr14(&self) -> Ctr14R {
Ctr14R::new(((self.bits >> 14) & 1) != 0)
}
#[doc = "Bit 15 - Protocol Control Bit 15"]
#[inline(always)]
pub fn ctr15(&self) -> Ctr15R {
Ctr15R::new(((self.bits >> 15) & 1) != 0)
}
#[doc = "Bit 16 - Protocol Control Bit 16"]
#[inline(always)]
pub fn ctr16(&self) -> Ctr16R {
Ctr16R::new(((self.bits >> 16) & 1) != 0)
}
#[doc = "Bit 17 - Protocol Control Bit 17"]
#[inline(always)]
pub fn ctr17(&self) -> Ctr17R {
Ctr17R::new(((self.bits >> 17) & 1) != 0)
}
#[doc = "Bit 18 - Protocol Control Bit 18"]
#[inline(always)]
pub fn ctr18(&self) -> Ctr18R {
Ctr18R::new(((self.bits >> 18) & 1) != 0)
}
#[doc = "Bit 19 - Protocol Control Bit 19"]
#[inline(always)]
pub fn ctr19(&self) -> Ctr19R {
Ctr19R::new(((self.bits >> 19) & 1) != 0)
}
#[doc = "Bit 20 - Protocol Control Bit 20"]
#[inline(always)]
pub fn ctr20(&self) -> Ctr20R {
Ctr20R::new(((self.bits >> 20) & 1) != 0)
}
#[doc = "Bit 21 - Protocol Control Bit 21"]
#[inline(always)]
pub fn ctr21(&self) -> Ctr21R {
Ctr21R::new(((self.bits >> 21) & 1) != 0)
}
#[doc = "Bit 22 - Protocol Control Bit 22"]
#[inline(always)]
pub fn ctr22(&self) -> Ctr22R {
Ctr22R::new(((self.bits >> 22) & 1) != 0)
}
#[doc = "Bit 23 - Protocol Control Bit 23"]
#[inline(always)]
pub fn ctr23(&self) -> Ctr23R {
Ctr23R::new(((self.bits >> 23) & 1) != 0)
}
#[doc = "Bit 24 - Protocol Control Bit 24"]
#[inline(always)]
pub fn ctr24(&self) -> Ctr24R {
Ctr24R::new(((self.bits >> 24) & 1) != 0)
}
#[doc = "Bit 25 - Protocol Control Bit 25"]
#[inline(always)]
pub fn ctr25(&self) -> Ctr25R {
Ctr25R::new(((self.bits >> 25) & 1) != 0)
}
#[doc = "Bit 26 - Protocol Control Bit 26"]
#[inline(always)]
pub fn ctr26(&self) -> Ctr26R {
Ctr26R::new(((self.bits >> 26) & 1) != 0)
}
#[doc = "Bit 27 - Protocol Control Bit 27"]
#[inline(always)]
pub fn ctr27(&self) -> Ctr27R {
Ctr27R::new(((self.bits >> 27) & 1) != 0)
}
#[doc = "Bit 28 - Protocol Control Bit 28"]
#[inline(always)]
pub fn ctr28(&self) -> Ctr28R {
Ctr28R::new(((self.bits >> 28) & 1) != 0)
}
#[doc = "Bit 29 - Protocol Control Bit 29"]
#[inline(always)]
pub fn ctr29(&self) -> Ctr29R {
Ctr29R::new(((self.bits >> 29) & 1) != 0)
}
#[doc = "Bit 30 - Protocol Control Bit 30"]
#[inline(always)]
pub fn ctr30(&self) -> Ctr30R {
Ctr30R::new(((self.bits >> 30) & 1) != 0)
}
#[doc = "Bit 31 - Protocol Control Bit 31"]
#[inline(always)]
pub fn ctr31(&self) -> Ctr31R {
Ctr31R::new(((self.bits >> 31) & 1) != 0)
}
}
impl W {
#[doc = "Bit 0 - Protocol Control Bit 0"]
#[inline(always)]
#[must_use]
pub fn ctr0(&mut self) -> Ctr0W<PcrSpec> {
Ctr0W::new(self, 0)
}
#[doc = "Bit 1 - Protocol Control Bit 1"]
#[inline(always)]
#[must_use]
pub fn ctr1(&mut self) -> Ctr1W<PcrSpec> {
Ctr1W::new(self, 1)
}
#[doc = "Bit 2 - Protocol Control Bit 2"]
#[inline(always)]
#[must_use]
pub fn ctr2(&mut self) -> Ctr2W<PcrSpec> {
Ctr2W::new(self, 2)
}
#[doc = "Bit 3 - Protocol Control Bit 3"]
#[inline(always)]
#[must_use]
pub fn ctr3(&mut self) -> Ctr3W<PcrSpec> {
Ctr3W::new(self, 3)
}
#[doc = "Bit 4 - Protocol Control Bit 4"]
#[inline(always)]
#[must_use]
pub fn ctr4(&mut self) -> Ctr4W<PcrSpec> {
Ctr4W::new(self, 4)
}
#[doc = "Bit 5 - Protocol Control Bit 5"]
#[inline(always)]
#[must_use]
pub fn ctr5(&mut self) -> Ctr5W<PcrSpec> {
Ctr5W::new(self, 5)
}
#[doc = "Bit 6 - Protocol Control Bit 6"]
#[inline(always)]
#[must_use]
pub fn ctr6(&mut self) -> Ctr6W<PcrSpec> {
Ctr6W::new(self, 6)
}
#[doc = "Bit 7 - Protocol Control Bit 7"]
#[inline(always)]
#[must_use]
pub fn ctr7(&mut self) -> Ctr7W<PcrSpec> {
Ctr7W::new(self, 7)
}
#[doc = "Bit 8 - Protocol Control Bit 8"]
#[inline(always)]
#[must_use]
pub fn ctr8(&mut self) -> Ctr8W<PcrSpec> {
Ctr8W::new(self, 8)
}
#[doc = "Bit 9 - Protocol Control Bit 9"]
#[inline(always)]
#[must_use]
pub fn ctr9(&mut self) -> Ctr9W<PcrSpec> {
Ctr9W::new(self, 9)
}
#[doc = "Bit 10 - Protocol Control Bit 10"]
#[inline(always)]
#[must_use]
pub fn ctr10(&mut self) -> Ctr10W<PcrSpec> {
Ctr10W::new(self, 10)
}
#[doc = "Bit 11 - Protocol Control Bit 11"]
#[inline(always)]
#[must_use]
pub fn ctr11(&mut self) -> Ctr11W<PcrSpec> {
Ctr11W::new(self, 11)
}
#[doc = "Bit 12 - Protocol Control Bit 12"]
#[inline(always)]
#[must_use]
pub fn ctr12(&mut self) -> Ctr12W<PcrSpec> {
Ctr12W::new(self, 12)
}
#[doc = "Bit 13 - Protocol Control Bit 13"]
#[inline(always)]
#[must_use]
pub fn ctr13(&mut self) -> Ctr13W<PcrSpec> {
Ctr13W::new(self, 13)
}
#[doc = "Bit 14 - Protocol Control Bit 14"]
#[inline(always)]
#[must_use]
pub fn ctr14(&mut self) -> Ctr14W<PcrSpec> {
Ctr14W::new(self, 14)
}
#[doc = "Bit 15 - Protocol Control Bit 15"]
#[inline(always)]
#[must_use]
pub fn ctr15(&mut self) -> Ctr15W<PcrSpec> {
Ctr15W::new(self, 15)
}
#[doc = "Bit 16 - Protocol Control Bit 16"]
#[inline(always)]
#[must_use]
pub fn ctr16(&mut self) -> Ctr16W<PcrSpec> {
Ctr16W::new(self, 16)
}
#[doc = "Bit 17 - Protocol Control Bit 17"]
#[inline(always)]
#[must_use]
pub fn ctr17(&mut self) -> Ctr17W<PcrSpec> {
Ctr17W::new(self, 17)
}
#[doc = "Bit 18 - Protocol Control Bit 18"]
#[inline(always)]
#[must_use]
pub fn ctr18(&mut self) -> Ctr18W<PcrSpec> {
Ctr18W::new(self, 18)
}
#[doc = "Bit 19 - Protocol Control Bit 19"]
#[inline(always)]
#[must_use]
pub fn ctr19(&mut self) -> Ctr19W<PcrSpec> {
Ctr19W::new(self, 19)
}
#[doc = "Bit 20 - Protocol Control Bit 20"]
#[inline(always)]
#[must_use]
pub fn ctr20(&mut self) -> Ctr20W<PcrSpec> {
Ctr20W::new(self, 20)
}
#[doc = "Bit 21 - Protocol Control Bit 21"]
#[inline(always)]
#[must_use]
pub fn ctr21(&mut self) -> Ctr21W<PcrSpec> {
Ctr21W::new(self, 21)
}
#[doc = "Bit 22 - Protocol Control Bit 22"]
#[inline(always)]
#[must_use]
pub fn ctr22(&mut self) -> Ctr22W<PcrSpec> {
Ctr22W::new(self, 22)
}
#[doc = "Bit 23 - Protocol Control Bit 23"]
#[inline(always)]
#[must_use]
pub fn ctr23(&mut self) -> Ctr23W<PcrSpec> {
Ctr23W::new(self, 23)
}
#[doc = "Bit 24 - Protocol Control Bit 24"]
#[inline(always)]
#[must_use]
pub fn ctr24(&mut self) -> Ctr24W<PcrSpec> {
Ctr24W::new(self, 24)
}
#[doc = "Bit 25 - Protocol Control Bit 25"]
#[inline(always)]
#[must_use]
pub fn ctr25(&mut self) -> Ctr25W<PcrSpec> {
Ctr25W::new(self, 25)
}
#[doc = "Bit 26 - Protocol Control Bit 26"]
#[inline(always)]
#[must_use]
pub fn ctr26(&mut self) -> Ctr26W<PcrSpec> {
Ctr26W::new(self, 26)
}
#[doc = "Bit 27 - Protocol Control Bit 27"]
#[inline(always)]
#[must_use]
pub fn ctr27(&mut self) -> Ctr27W<PcrSpec> {
Ctr27W::new(self, 27)
}
#[doc = "Bit 28 - Protocol Control Bit 28"]
#[inline(always)]
#[must_use]
pub fn ctr28(&mut self) -> Ctr28W<PcrSpec> {
Ctr28W::new(self, 28)
}
#[doc = "Bit 29 - Protocol Control Bit 29"]
#[inline(always)]
#[must_use]
pub fn ctr29(&mut self) -> Ctr29W<PcrSpec> {
Ctr29W::new(self, 29)
}
#[doc = "Bit 30 - Protocol Control Bit 30"]
#[inline(always)]
#[must_use]
pub fn ctr30(&mut self) -> Ctr30W<PcrSpec> {
Ctr30W::new(self, 30)
}
#[doc = "Bit 31 - Protocol Control Bit 31"]
#[inline(always)]
#[must_use]
pub fn ctr31(&mut self) -> Ctr31W<PcrSpec> {
Ctr31W::new(self, 31)
}
}
#[doc = "Protocol Control Register\n\nYou can [`read`](crate::generic::Reg::read) this register and get [`pcr::R`](R). You can [`reset`](crate::generic::Reg::reset), [`write`](crate::generic::Reg::write), [`write_with_zero`](crate::generic::Reg::write_with_zero) this register using [`pcr::W`](W). You can also [`modify`](crate::generic::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api)."]
pub struct PcrSpec;
impl crate::RegisterSpec for PcrSpec {
type Ux = u32;
}
#[doc = "`read()` method returns [`pcr::R`](R) reader structure"]
impl crate::Readable for PcrSpec {}
#[doc = "`write(|w| ..)` method takes [`pcr::W`](W) writer structure"]
impl crate::Writable for PcrSpec {
type Safety = crate::Unsafe;
const ZERO_TO_MODIFY_FIELDS_BITMAP: u32 = 0;
const ONE_TO_MODIFY_FIELDS_BITMAP: u32 = 0;
}
#[doc = "`reset()` method sets PCR to value 0"]
impl crate::Resettable for PcrSpec {
const RESET_VALUE: u32 = 0;
}