pub type R = crate::R<DMACMFCRrs>;
pub type MFC_R = crate::FieldReader<u16>;
pub type MFCO_R = crate::BitReader;
impl R {
#[inline(always)]
pub fn mfc(&self) -> MFC_R {
MFC_R::new((self.bits & 0x07ff) as u16)
}
#[inline(always)]
pub fn mfco(&self) -> MFCO_R {
MFCO_R::new(((self.bits >> 15) & 1) != 0)
}
}
impl core::fmt::Debug for R {
fn fmt(&self, f: &mut core::fmt::Formatter) -> core::fmt::Result {
f.debug_struct("DMACMFCR")
.field("mfc", &self.mfc())
.field("mfco", &self.mfco())
.finish()
}
}
pub struct DMACMFCRrs;
impl crate::RegisterSpec for DMACMFCRrs {
type Ux = u32;
}
impl crate::Readable for DMACMFCRrs {}
impl crate::Resettable for DMACMFCRrs {}