pub type R = crate::R<HTR2rs>;
pub type W = crate::W<HTR2rs>;
pub type HTR2_R = crate::FieldReader<u32>;
pub type HTR2_W<'a, REG> = crate::FieldWriter<'a, REG, 26, u32, crate::Safe>;
impl R {
#[inline(always)]
pub fn htr2(&self) -> HTR2_R {
HTR2_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("HTR2").field("htr2", &self.htr2()).finish()
}
}
impl W {
#[inline(always)]
pub fn htr2(&mut self) -> HTR2_W<HTR2rs> {
HTR2_W::new(self, 0)
}
}
pub struct HTR2rs;
impl crate::RegisterSpec for HTR2rs {
type Ux = u32;
}
impl crate::Readable for HTR2rs {}
impl crate::Writable for HTR2rs {
type Safety = crate::Unsafe;
}
impl crate::Resettable for HTR2rs {}