pub type R = crate::R<DIRrs>;
pub type THI_R = crate::FieldReader<u16>;
pub type TLO_R = crate::FieldReader<u16>;
impl R {
#[inline(always)]
pub fn thi(&self) -> THI_R {
THI_R::new((self.bits & 0x1fff) as u16)
}
#[inline(always)]
pub fn tlo(&self) -> TLO_R {
TLO_R::new(((self.bits >> 16) & 0x1fff) as u16)
}
}
impl core::fmt::Debug for R {
fn fmt(&self, f: &mut core::fmt::Formatter) -> core::fmt::Result {
f.debug_struct("DIR")
.field("thi", &self.thi())
.field("tlo", &self.tlo())
.finish()
}
}
pub struct DIRrs;
impl crate::RegisterSpec for DIRrs {
type Ux = u32;
}
impl crate::Readable for DIRrs {}
impl crate::Resettable for DIRrs {}