pub type R = crate::R<FMT0_DRrs>;
pub type DR_R = crate::FieldReader<u32>;
pub type PE_R = crate::BitReader;
pub type V_R = crate::BitReader;
pub type U_R = crate::BitReader;
pub type C_R = crate::BitReader;
pub type PT_R = crate::FieldReader;
impl R {
#[inline(always)]
pub fn dr(&self) -> DR_R {
DR_R::new(self.bits & 0x00ff_ffff)
}
#[inline(always)]
pub fn pe(&self) -> PE_R {
PE_R::new(((self.bits >> 24) & 1) != 0)
}
#[inline(always)]
pub fn v(&self) -> V_R {
V_R::new(((self.bits >> 25) & 1) != 0)
}
#[inline(always)]
pub fn u(&self) -> U_R {
U_R::new(((self.bits >> 26) & 1) != 0)
}
#[inline(always)]
pub fn c(&self) -> C_R {
C_R::new(((self.bits >> 27) & 1) != 0)
}
#[inline(always)]
pub fn pt(&self) -> PT_R {
PT_R::new(((self.bits >> 28) & 3) as u8)
}
}
impl core::fmt::Debug for R {
fn fmt(&self, f: &mut core::fmt::Formatter) -> core::fmt::Result {
f.debug_struct("FMT0_DR")
.field("dr", &self.dr())
.field("pe", &self.pe())
.field("v", &self.v())
.field("u", &self.u())
.field("c", &self.c())
.field("pt", &self.pt())
.finish()
}
}
pub struct FMT0_DRrs;
impl crate::RegisterSpec for FMT0_DRrs {
type Ux = u32;
}
impl crate::Readable for FMT0_DRrs {}
impl crate::Resettable for FMT0_DRrs {}