pub type R = crate::R<LTRrs>;
pub type W = crate::W<LTRrs>;
pub type LT_R = crate::FieldReader<u16>;
pub type LT_W<'a, REG> = crate::FieldWriter<'a, REG, 12, u16, crate::Safe>;
impl R {
#[inline(always)]
pub fn lt(&self) -> LT_R {
LT_R::new((self.bits & 0x0fff) as u16)
}
}
impl core::fmt::Debug for R {
fn fmt(&self, f: &mut core::fmt::Formatter) -> core::fmt::Result {
f.debug_struct("LTR").field("lt", &self.lt()).finish()
}
}
impl W {
#[inline(always)]
pub fn lt(&mut self) -> LT_W<LTRrs> {
LT_W::new(self, 0)
}
}
pub struct LTRrs;
impl crate::RegisterSpec for LTRrs {
type Ux = u32;
}
impl crate::Readable for LTRrs {}
impl crate::Writable for LTRrs {
type Safety = crate::Unsafe;
}
impl crate::Resettable for LTRrs {}