pub type R = crate::R<PRIVCFGR2rs>;
pub type W = crate::W<PRIVCFGR2rs>;
pub type PRIV32_R = crate::BitReader;
pub type PRIV32_W<'a, REG> = crate::BitWriter<'a, REG>;
pub type PRIV33_R = crate::BitReader;
pub type PRIV33_W<'a, REG> = crate::BitWriter<'a, REG>;
pub type PRIV34_R = crate::BitReader;
pub type PRIV34_W<'a, REG> = crate::BitWriter<'a, REG>;
pub type PRIV35_R = crate::BitReader;
pub type PRIV35_W<'a, REG> = crate::BitWriter<'a, REG>;
pub type PRIV36_R = crate::BitReader;
pub type PRIV36_W<'a, REG> = crate::BitWriter<'a, REG>;
pub type PRIV37_R = crate::BitReader;
pub type PRIV37_W<'a, REG> = crate::BitWriter<'a, REG>;
pub type PRIV38_R = crate::BitReader;
pub type PRIV38_W<'a, REG> = crate::BitWriter<'a, REG>;
pub type PRIV39_R = crate::BitReader;
pub type PRIV39_W<'a, REG> = crate::BitWriter<'a, REG>;
pub type PRIV40_R = crate::BitReader;
pub type PRIV40_W<'a, REG> = crate::BitWriter<'a, REG>;
pub type PRIV41_R = crate::BitReader;
pub type PRIV41_W<'a, REG> = crate::BitWriter<'a, REG>;
pub type PRIV42_R = crate::BitReader;
pub type PRIV42_W<'a, REG> = crate::BitWriter<'a, REG>;
impl R {
#[inline(always)]
pub fn priv32(&self) -> PRIV32_R {
PRIV32_R::new((self.bits & 1) != 0)
}
#[inline(always)]
pub fn priv33(&self) -> PRIV33_R {
PRIV33_R::new(((self.bits >> 1) & 1) != 0)
}
#[inline(always)]
pub fn priv34(&self) -> PRIV34_R {
PRIV34_R::new(((self.bits >> 2) & 1) != 0)
}
#[inline(always)]
pub fn priv35(&self) -> PRIV35_R {
PRIV35_R::new(((self.bits >> 3) & 1) != 0)
}
#[inline(always)]
pub fn priv36(&self) -> PRIV36_R {
PRIV36_R::new(((self.bits >> 4) & 1) != 0)
}
#[inline(always)]
pub fn priv37(&self) -> PRIV37_R {
PRIV37_R::new(((self.bits >> 5) & 1) != 0)
}
#[inline(always)]
pub fn priv38(&self) -> PRIV38_R {
PRIV38_R::new(((self.bits >> 6) & 1) != 0)
}
#[inline(always)]
pub fn priv39(&self) -> PRIV39_R {
PRIV39_R::new(((self.bits >> 7) & 1) != 0)
}
#[inline(always)]
pub fn priv40(&self) -> PRIV40_R {
PRIV40_R::new(((self.bits >> 8) & 1) != 0)
}
#[inline(always)]
pub fn priv41(&self) -> PRIV41_R {
PRIV41_R::new(((self.bits >> 9) & 1) != 0)
}
#[inline(always)]
pub fn priv42(&self) -> PRIV42_R {
PRIV42_R::new(((self.bits >> 10) & 1) != 0)
}
}
impl core::fmt::Debug for R {
fn fmt(&self, f: &mut core::fmt::Formatter) -> core::fmt::Result {
f.debug_struct("PRIVCFGR2")
.field("priv32", &self.priv32())
.field("priv33", &self.priv33())
.field("priv34", &self.priv34())
.field("priv35", &self.priv35())
.field("priv36", &self.priv36())
.field("priv37", &self.priv37())
.field("priv38", &self.priv38())
.field("priv39", &self.priv39())
.field("priv40", &self.priv40())
.field("priv41", &self.priv41())
.field("priv42", &self.priv42())
.finish()
}
}
impl W {
#[inline(always)]
pub fn priv32(&mut self) -> PRIV32_W<PRIVCFGR2rs> {
PRIV32_W::new(self, 0)
}
#[inline(always)]
pub fn priv33(&mut self) -> PRIV33_W<PRIVCFGR2rs> {
PRIV33_W::new(self, 1)
}
#[inline(always)]
pub fn priv34(&mut self) -> PRIV34_W<PRIVCFGR2rs> {
PRIV34_W::new(self, 2)
}
#[inline(always)]
pub fn priv35(&mut self) -> PRIV35_W<PRIVCFGR2rs> {
PRIV35_W::new(self, 3)
}
#[inline(always)]
pub fn priv36(&mut self) -> PRIV36_W<PRIVCFGR2rs> {
PRIV36_W::new(self, 4)
}
#[inline(always)]
pub fn priv37(&mut self) -> PRIV37_W<PRIVCFGR2rs> {
PRIV37_W::new(self, 5)
}
#[inline(always)]
pub fn priv38(&mut self) -> PRIV38_W<PRIVCFGR2rs> {
PRIV38_W::new(self, 6)
}
#[inline(always)]
pub fn priv39(&mut self) -> PRIV39_W<PRIVCFGR2rs> {
PRIV39_W::new(self, 7)
}
#[inline(always)]
pub fn priv40(&mut self) -> PRIV40_W<PRIVCFGR2rs> {
PRIV40_W::new(self, 8)
}
#[inline(always)]
pub fn priv41(&mut self) -> PRIV41_W<PRIVCFGR2rs> {
PRIV41_W::new(self, 9)
}
#[inline(always)]
pub fn priv42(&mut self) -> PRIV42_W<PRIVCFGR2rs> {
PRIV42_W::new(self, 10)
}
}
pub struct PRIVCFGR2rs;
impl crate::RegisterSpec for PRIVCFGR2rs {
type Ux = u32;
}
impl crate::Readable for PRIVCFGR2rs {}
impl crate::Writable for PRIVCFGR2rs {
type Safety = crate::Unsafe;
}
impl crate::Resettable for PRIVCFGR2rs {}