pub type R = crate::R<DRrs>;
pub type W = crate::W<DRrs>;
pub type DR_R = crate::FieldReader;
pub type DR_W<'a, REG> = crate::FieldWriter<'a, REG, 8, u8, crate::Safe>;
impl R {
#[inline(always)]
pub fn dr(&self) -> DR_R {
DR_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("DR").field("dr", &self.dr()).finish()
}
}
impl W {
#[inline(always)]
pub fn dr(&mut self) -> DR_W<DRrs> {
DR_W::new(self, 0)
}
}
pub struct DRrs;
impl crate::RegisterSpec for DRrs {
type Ux = u16;
}
impl crate::Readable for DRrs {}
impl crate::Writable for DRrs {
type Safety = crate::Unsafe;
}
impl crate::Resettable for DRrs {}