pub type R = crate::R<CFGRrs>;
pub type W = crate::W<CFGRrs>;
pub type TMONEN_R = crate::BitReader;
pub type TMONEN_W<'a, REG> = crate::BitWriter<'a, REG>;
pub type VMONEN_R = crate::BitReader;
pub type VMONEN_W<'a, REG> = crate::BitWriter<'a, REG>;
pub type WUTMONEN_R = crate::BitReader;
pub type WUTMONEN_W<'a, REG> = crate::BitWriter<'a, REG>;
impl R {
#[inline(always)]
pub fn tmonen(&self) -> TMONEN_R {
TMONEN_R::new(((self.bits >> 1) & 1) != 0)
}
#[inline(always)]
pub fn vmonen(&self) -> VMONEN_R {
VMONEN_R::new(((self.bits >> 2) & 1) != 0)
}
#[inline(always)]
pub fn wutmonen(&self) -> WUTMONEN_R {
WUTMONEN_R::new(((self.bits >> 3) & 1) != 0)
}
}
impl core::fmt::Debug for R {
fn fmt(&self, f: &mut core::fmt::Formatter) -> core::fmt::Result {
f.debug_struct("CFGR")
.field("tmonen", &self.tmonen())
.field("vmonen", &self.vmonen())
.field("wutmonen", &self.wutmonen())
.finish()
}
}
impl W {
#[inline(always)]
pub fn tmonen(&mut self) -> TMONEN_W<CFGRrs> {
TMONEN_W::new(self, 1)
}
#[inline(always)]
pub fn vmonen(&mut self) -> VMONEN_W<CFGRrs> {
VMONEN_W::new(self, 2)
}
#[inline(always)]
pub fn wutmonen(&mut self) -> WUTMONEN_W<CFGRrs> {
WUTMONEN_W::new(self, 3)
}
}
pub struct CFGRrs;
impl crate::RegisterSpec for CFGRrs {
type Ux = u32;
}
impl crate::Readable for CFGRrs {}
impl crate::Writable for CFGRrs {
type Safety = crate::Unsafe;
}
impl crate::Resettable for CFGRrs {}