pub type R = crate::R<DARrs>;
pub type W = crate::W<DARrs>;
pub type DA_R = crate::FieldReader;
pub type DA_W<'a, REG> = crate::FieldWriter<'a, REG, 8>;
impl R {
#[inline(always)]
pub fn da(&self) -> DA_R {
DA_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("DAR").field("da", &self.da()).finish()
}
}
impl W {
#[inline(always)]
pub fn da(&mut self) -> DA_W<DARrs> {
DA_W::new(self, 0)
}
}
pub struct DARrs;
impl crate::RegisterSpec for DARrs {
type Ux = u32;
}
impl crate::Readable for DARrs {}
impl crate::Writable for DARrs {
type Safety = crate::Unsafe;
}
impl crate::Resettable for DARrs {}