pub type R = crate::R<PRIVCFGRrs>;
pub type W = crate::W<PRIVCFGRrs>;
pub type PRIV_R = crate::BitReader;
pub type PRIV_W<'a, REG> = crate::BitWriter<'a, REG>;
impl R {
#[inline(always)]
pub fn priv_(&self) -> PRIV_R {
PRIV_R::new((self.bits & 1) != 0)
}
}
impl core::fmt::Debug for R {
fn fmt(&self, f: &mut core::fmt::Formatter) -> core::fmt::Result {
f.debug_struct("PRIVCFGR").field("priv_", &self.priv_()).finish()
}
}
impl W {
#[inline(always)]
pub fn priv_(&mut self) -> PRIV_W<PRIVCFGRrs> {
PRIV_W::new(self, 0)
}
}
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 {}