pub type R = crate::R<DHR12Lrs>;
pub type W = crate::W<DHR12Lrs>;
pub type DACCDHR_R = crate::FieldReader<u16>;
pub type DACCDHR_W<'a, REG> = crate::FieldWriter<'a, REG, 12, u16, crate::Safe>;
impl R {
#[inline(always)]
pub fn daccdhr(&self) -> DACCDHR_R {
DACCDHR_R::new(((self.bits >> 4) & 0x0fff) as u16)
}
}
impl core::fmt::Debug for R {
fn fmt(&self, f: &mut core::fmt::Formatter) -> core::fmt::Result {
f.debug_struct("DHR12L")
.field("daccdhr", &self.daccdhr())
.finish()
}
}
impl W {
#[inline(always)]
pub fn daccdhr(&mut self) -> DACCDHR_W<DHR12Lrs> {
DACCDHR_W::new(self, 4)
}
}
pub struct DHR12Lrs;
impl crate::RegisterSpec for DHR12Lrs {
type Ux = u32;
}
impl crate::Readable for DHR12Lrs {}
impl crate::Writable for DHR12Lrs {
type Safety = crate::Unsafe;
}
impl crate::Resettable for DHR12Lrs {}