pub type R = crate::R<CFRrs>;
pub type W = crate::W<CFRrs>;
pub type CEOCF_R = crate::BitReader;
pub type CEOCF_W<'a, REG> = crate::BitWriter<'a, REG>;
pub type CHPDF_R = crate::BitReader;
pub type CHPDF_W<'a, REG> = crate::BitWriter<'a, REG>;
impl R {
#[inline(always)]
pub fn ceocf(&self) -> CEOCF_R {
CEOCF_R::new(((self.bits >> 5) & 1) != 0)
}
#[inline(always)]
pub fn chpdf(&self) -> CHPDF_R {
CHPDF_R::new(((self.bits >> 6) & 1) != 0)
}
}
impl core::fmt::Debug for R {
fn fmt(&self, f: &mut core::fmt::Formatter) -> core::fmt::Result {
f.debug_struct("CFR")
.field("ceocf", &self.ceocf())
.field("chpdf", &self.chpdf())
.finish()
}
}
impl W {
#[inline(always)]
pub fn ceocf(&mut self) -> CEOCF_W<CFRrs> {
CEOCF_W::new(self, 5)
}
#[inline(always)]
pub fn chpdf(&mut self) -> CHPDF_W<CFRrs> {
CHPDF_W::new(self, 6)
}
}
pub struct CFRrs;
impl crate::RegisterSpec for CFRrs {
type Ux = u32;
}
impl crate::Readable for CFRrs {}
impl crate::Writable for CFRrs {
type Safety = crate::Unsafe;
}
impl crate::Resettable for CFRrs {}