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