pub type R = crate::R<DR16rs>;
pub type W = crate::W<DR16rs>;
pub type DR16_R = crate::FieldReader<u16>;
pub type DR16_W<'a, REG> = crate::FieldWriter<'a, REG, 16, u16, crate::Safe>;
impl R {
#[inline(always)]
pub fn dr16(&self) -> DR16_R {
DR16_R::new(self.bits)
}
}
impl core::fmt::Debug for R {
fn fmt(&self, f: &mut core::fmt::Formatter) -> core::fmt::Result {
f.debug_struct("DR16").field("dr16", &self.dr16()).finish()
}
}
impl W {
#[inline(always)]
pub fn dr16(&mut self) -> DR16_W<DR16rs> {
DR16_W::new(self, 0)
}
}
pub struct DR16rs;
impl crate::RegisterSpec for DR16rs {
type Ux = u16;
}
impl crate::Readable for DR16rs {}
impl crate::Writable for DR16rs {
type Safety = crate::Safe;
}
impl crate::Resettable for DR16rs {
const RESET_VALUE: u16 = 0xffff;
}