pub type R = crate::R<AWD3TRrs>;
pub type W = crate::W<AWD3TRrs>;
pub type LT3_R = crate::FieldReader<u16>;
pub type LT3_W<'a, REG> = crate::FieldWriter<'a, REG, 12, u16, crate::Safe>;
pub type HT3_R = crate::FieldReader<u16>;
pub type HT3_W<'a, REG> = crate::FieldWriter<'a, REG, 12, u16, crate::Safe>;
impl R {
#[inline(always)]
pub fn lt3(&self) -> LT3_R {
LT3_R::new((self.bits & 0x0fff) as u16)
}
#[inline(always)]
pub fn ht3(&self) -> HT3_R {
HT3_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("AWD3TR")
.field("lt3", &self.lt3())
.field("ht3", &self.ht3())
.finish()
}
}
impl W {
#[inline(always)]
pub fn lt3(&mut self) -> LT3_W<AWD3TRrs> {
LT3_W::new(self, 0)
}
#[inline(always)]
pub fn ht3(&mut self) -> HT3_W<AWD3TRrs> {
HT3_W::new(self, 16)
}
}
pub struct AWD3TRrs;
impl crate::RegisterSpec for AWD3TRrs {
type Ux = u32;
}
impl crate::Readable for AWD3TRrs {}
impl crate::Writable for AWD3TRrs {
type Safety = crate::Unsafe;
}
impl crate::Resettable for AWD3TRrs {
const RESET_VALUE: u32 = 0x0fff_0000;
}