pub type R = crate::R<DHR12Rrs>;
pub type W = crate::W<DHR12Rrs>;
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 & 0x0fff) as u16)
}
}
impl core::fmt::Debug for R {
fn fmt(&self, f: &mut core::fmt::Formatter) -> core::fmt::Result {
f.debug_struct("DHR12R")
.field("daccdhr", &self.daccdhr())
.finish()
}
}
impl W {
#[inline(always)]
pub fn daccdhr(&mut self) -> DACCDHR_W<DHR12Rrs> {
DACCDHR_W::new(self, 0)
}
}
pub struct DHR12Rrs;
impl crate::RegisterSpec for DHR12Rrs {
type Ux = u32;
}
impl crate::Readable for DHR12Rrs {}
impl crate::Writable for DHR12Rrs {
type Safety = crate::Unsafe;
}
impl crate::Resettable for DHR12Rrs {}