pub type R = crate::R<LWRrs>;
pub type W = crate::W<LWRrs>;
pub type LW_R = crate::FieldReader<u16>;
pub type LW_W<'a, REG> = crate::FieldWriter<'a, REG, 16, u16>;
impl R {
#[inline(always)]
pub fn lw(&self) -> LW_R {
LW_R::new((self.bits & 0xffff) as u16)
}
}
impl core::fmt::Debug for R {
fn fmt(&self, f: &mut core::fmt::Formatter) -> core::fmt::Result {
f.debug_struct("LWR").field("lw", &self.lw()).finish()
}
}
impl W {
#[inline(always)]
pub fn lw(&mut self) -> LW_W<LWRrs> {
LW_W::new(self, 0)
}
}
pub struct LWRrs;
impl crate::RegisterSpec for LWRrs {
type Ux = u32;
}
impl crate::Readable for LWRrs {}
impl crate::Writable for LWRrs {
type Safety = crate::Unsafe;
}
impl crate::Resettable for LWRrs {}