pub type R = crate::R<DINrs>;
pub type W = crate::W<DINrs>;
pub type DATAIN_R = crate::FieldReader<u32>;
pub type DATAIN_W<'a, REG> = crate::FieldWriter<'a, REG, 32, u32>;
impl R {
#[inline(always)]
pub fn datain(&self) -> DATAIN_R {
DATAIN_R::new(self.bits)
}
}
impl core::fmt::Debug for R {
fn fmt(&self, f: &mut core::fmt::Formatter) -> core::fmt::Result {
f.debug_struct("DIN")
.field("datain", &self.datain())
.finish()
}
}
impl W {
#[inline(always)]
pub fn datain(&mut self) -> DATAIN_W<DINrs> {
DATAIN_W::new(self, 0)
}
}
pub struct DINrs;
impl crate::RegisterSpec for DINrs {
type Ux = u32;
}
impl crate::Readable for DINrs {}
impl crate::Writable for DINrs {
type Safety = crate::Unsafe;
}
impl crate::Resettable for DINrs {}