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