pub type R = crate::R<CSLrs>;
pub type W = crate::W<CSLrs>;
pub type LENG_R = crate::FieldReader<u16>;
pub type LENG_W<'a, REG> = crate::FieldWriter<'a, REG, 14, u16, crate::Safe>;
impl R {
#[inline(always)]
pub fn leng(&self) -> LENG_R {
LENG_R::new(((self.bits >> 8) & 0x3fff) as u16)
}
}
impl core::fmt::Debug for R {
fn fmt(&self, f: &mut core::fmt::Formatter) -> core::fmt::Result {
f.debug_struct("CSL").field("leng", &self.leng()).finish()
}
}
impl W {
#[inline(always)]
pub fn leng(&mut self) -> LENG_W<CSLrs> {
LENG_W::new(self, 8)
}
}
pub struct CSLrs;
impl crate::RegisterSpec for CSLrs {
type Ux = u32;
}
impl crate::Readable for CSLrs {}
impl crate::Writable for CSLrs {
type Safety = crate::Unsafe;
}
impl crate::Resettable for CSLrs {}