pub type R = crate::R<LTR2rs>;
pub type W = crate::W<LTR2rs>;
pub type LTR2_R = crate::FieldReader<u32>;
pub type LTR2_W<'a, REG> = crate::FieldWriter<'a, REG, 26, u32, crate::Safe>;
impl R {
#[inline(always)]
pub fn ltr2(&self) -> LTR2_R {
LTR2_R::new(self.bits & 0x03ff_ffff)
}
}
impl core::fmt::Debug for R {
fn fmt(&self, f: &mut core::fmt::Formatter) -> core::fmt::Result {
f.debug_struct("LTR2").field("ltr2", &self.ltr2()).finish()
}
}
impl W {
#[inline(always)]
pub fn ltr2(&mut self) -> LTR2_W<LTR2rs> {
LTR2_W::new(self, 0)
}
}
pub struct LTR2rs;
impl crate::RegisterSpec for LTR2rs {
type Ux = u32;
}
impl crate::Readable for LTR2rs {}
impl crate::Writable for LTR2rs {
type Safety = crate::Unsafe;
}
impl crate::Resettable for LTR2rs {}