pub type R = crate::R<PRIVCFGRrs>;
pub type W = crate::W<PRIVCFGRrs>;
pub type CNT1PRIV_R = crate::BitReader;
pub type CNT1PRIV_W<'a, REG> = crate::BitWriter<'a, REG>;
pub type BKPRWPRIV_R = crate::BitReader;
pub type BKPRWPRIV_W<'a, REG> = crate::BitWriter<'a, REG>;
pub type BKPWPRIV_R = crate::BitReader;
pub type BKPWPRIV_W<'a, REG> = crate::BitWriter<'a, REG>;
pub type TAMPPRIV_R = crate::BitReader;
pub type TAMPPRIV_W<'a, REG> = crate::BitWriter<'a, REG>;
impl R {
#[inline(always)]
pub fn cnt1priv(&self) -> CNT1PRIV_R {
CNT1PRIV_R::new(((self.bits >> 15) & 1) != 0)
}
#[inline(always)]
pub fn bkprwpriv(&self) -> BKPRWPRIV_R {
BKPRWPRIV_R::new(((self.bits >> 29) & 1) != 0)
}
#[inline(always)]
pub fn bkpwpriv(&self) -> BKPWPRIV_R {
BKPWPRIV_R::new(((self.bits >> 30) & 1) != 0)
}
#[inline(always)]
pub fn tamppriv(&self) -> TAMPPRIV_R {
TAMPPRIV_R::new(((self.bits >> 31) & 1) != 0)
}
}
impl core::fmt::Debug for R {
fn fmt(&self, f: &mut core::fmt::Formatter) -> core::fmt::Result {
f.debug_struct("PRIVCFGR")
.field("cnt1priv", &self.cnt1priv())
.field("bkprwpriv", &self.bkprwpriv())
.field("bkpwpriv", &self.bkpwpriv())
.field("tamppriv", &self.tamppriv())
.finish()
}
}
impl W {
#[inline(always)]
pub fn cnt1priv(&mut self) -> CNT1PRIV_W<PRIVCFGRrs> {
CNT1PRIV_W::new(self, 15)
}
#[inline(always)]
pub fn bkprwpriv(&mut self) -> BKPRWPRIV_W<PRIVCFGRrs> {
BKPRWPRIV_W::new(self, 29)
}
#[inline(always)]
pub fn bkpwpriv(&mut self) -> BKPWPRIV_W<PRIVCFGRrs> {
BKPWPRIV_W::new(self, 30)
}
#[inline(always)]
pub fn tamppriv(&mut self) -> TAMPPRIV_W<PRIVCFGRrs> {
TAMPPRIV_W::new(self, 31)
}
}
pub struct PRIVCFGRrs;
impl crate::RegisterSpec for PRIVCFGRrs {
type Ux = u32;
}
impl crate::Readable for PRIVCFGRrs {}
impl crate::Writable for PRIVCFGRrs {
type Safety = crate::Unsafe;
}
impl crate::Resettable for PRIVCFGRrs {}