pub type R = crate::R<DATINRrs>;
pub type W = crate::W<DATINRrs>;
pub type INDAT0_R = crate::FieldReader<u16>;
pub type INDAT0_W<'a, REG> = crate::FieldWriter<'a, REG, 16, u16, crate::Safe>;
pub type INDAT1_R = crate::FieldReader<u16>;
pub type INDAT1_W<'a, REG> = crate::FieldWriter<'a, REG, 16, u16, crate::Safe>;
impl R {
#[inline(always)]
pub fn indat0(&self) -> INDAT0_R {
INDAT0_R::new((self.bits & 0xffff) as u16)
}
#[inline(always)]
pub fn indat1(&self) -> INDAT1_R {
INDAT1_R::new(((self.bits >> 16) & 0xffff) as u16)
}
}
impl core::fmt::Debug for R {
fn fmt(&self, f: &mut core::fmt::Formatter) -> core::fmt::Result {
f.debug_struct("DATINR")
.field("indat1", &self.indat1())
.field("indat0", &self.indat0())
.finish()
}
}
impl W {
#[inline(always)]
pub fn indat0(&mut self) -> INDAT0_W<DATINRrs> {
INDAT0_W::new(self, 0)
}
#[inline(always)]
pub fn indat1(&mut self) -> INDAT1_W<DATINRrs> {
INDAT1_W::new(self, 16)
}
}
pub struct DATINRrs;
impl crate::RegisterSpec for DATINRrs {
type Ux = u32;
}
impl crate::Readable for DATINRrs {}
impl crate::Writable for DATINRrs {
type Safety = crate::Unsafe;
}
impl crate::Resettable for DATINRrs {}