pub type R = crate::R<CFBLRrs>;
pub type W = crate::W<CFBLRrs>;
pub type CFBLL_R = crate::FieldReader<u16>;
pub type CFBLL_W<'a, REG> = crate::FieldWriter<'a, REG, 13, u16, crate::Safe>;
pub type CFBP_R = crate::FieldReader<u16>;
pub type CFBP_W<'a, REG> = crate::FieldWriter<'a, REG, 13, u16, crate::Safe>;
impl R {
#[inline(always)]
pub fn cfbll(&self) -> CFBLL_R {
CFBLL_R::new((self.bits & 0x1fff) as u16)
}
#[inline(always)]
pub fn cfbp(&self) -> CFBP_R {
CFBP_R::new(((self.bits >> 16) & 0x1fff) as u16)
}
}
impl core::fmt::Debug for R {
fn fmt(&self, f: &mut core::fmt::Formatter) -> core::fmt::Result {
f.debug_struct("CFBLR")
.field("cfbp", &self.cfbp())
.field("cfbll", &self.cfbll())
.finish()
}
}
impl W {
#[inline(always)]
pub fn cfbll(&mut self) -> CFBLL_W<CFBLRrs> {
CFBLL_W::new(self, 0)
}
#[inline(always)]
pub fn cfbp(&mut self) -> CFBP_W<CFBLRrs> {
CFBP_W::new(self, 16)
}
}
pub struct CFBLRrs;
impl crate::RegisterSpec for CFBLRrs {
type Ux = u32;
}
impl crate::Readable for CFBLRrs {}
impl crate::Writable for CFBLRrs {
type Safety = crate::Unsafe;
}
impl crate::Resettable for CFBLRrs {}