pub type R = crate::R<NLRrs>;
pub type W = crate::W<NLRrs>;
pub type NL_R = crate::FieldReader<u16>;
pub type NL_W<'a, REG> = crate::FieldWriter<'a, REG, 16, u16, crate::Safe>;
pub type PL_R = crate::FieldReader<u16>;
pub type PL_W<'a, REG> = crate::FieldWriter<'a, REG, 14, u16, crate::Safe>;
impl R {
#[inline(always)]
pub fn nl(&self) -> NL_R {
NL_R::new((self.bits & 0xffff) as u16)
}
#[inline(always)]
pub fn pl(&self) -> PL_R {
PL_R::new(((self.bits >> 16) & 0x3fff) as u16)
}
}
impl core::fmt::Debug for R {
fn fmt(&self, f: &mut core::fmt::Formatter) -> core::fmt::Result {
f.debug_struct("NLR")
.field("pl", &self.pl())
.field("nl", &self.nl())
.finish()
}
}
impl W {
#[inline(always)]
pub fn nl(&mut self) -> NL_W<NLRrs> {
NL_W::new(self, 0)
}
#[inline(always)]
pub fn pl(&mut self) -> PL_W<NLRrs> {
PL_W::new(self, 16)
}
}
pub struct NLRrs;
impl crate::RegisterSpec for NLRrs {
type Ux = u32;
}
impl crate::Readable for NLRrs {}
impl crate::Writable for NLRrs {
type Safety = crate::Unsafe;
}
impl crate::Resettable for NLRrs {}