pub type R = crate::R<HTRrs>;
pub type W = crate::W<HTRrs>;
pub type HT_R = crate::FieldReader<u16>;
pub type HT_W<'a, REG> = crate::FieldWriter<'a, REG, 12, u16, crate::Safe>;
impl R {
#[inline(always)]
pub fn ht(&self) -> HT_R {
HT_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("HTR").field("ht", &self.ht()).finish()
}
}
impl W {
#[inline(always)]
pub fn ht(&mut self) -> HT_W<HTRrs> {
HT_W::new(self, 0)
}
}
pub struct HTRrs;
impl crate::RegisterSpec for HTRrs {
type Ux = u32;
}
impl crate::Readable for HTRrs {}
impl crate::Writable for HTRrs {
type Safety = crate::Unsafe;
}
impl crate::Resettable for HTRrs {
const RESET_VALUE: u32 = 0x0fff;
}