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