efm32pg1b-pac 0.4.4

Peripheral access API for Silicon Labs EFM32PG1B microcontrollers
Documentation
///Register `DTFAULT` reader
pub type R = crate::R<DTFAULTrs>;
///Field `DTPRS0F` reader - DTI PRS 0 Fault
pub type Dtprs0fR = crate::BitReader;
///Field `DTPRS1F` reader - DTI PRS 1 Fault
pub type Dtprs1fR = crate::BitReader;
///Field `DTDBGF` reader - DTI Debugger Fault
pub type DtdbgfR = crate::BitReader;
///Field `DTLOCKUPF` reader - DTI Lockup Fault
pub type DtlockupfR = crate::BitReader;
impl R {
    ///Bit 0 - DTI PRS 0 Fault
    #[inline(always)]
    pub fn dtprs0f(&self) -> Dtprs0fR {
        Dtprs0fR::new((self.bits & 1) != 0)
    }
    ///Bit 1 - DTI PRS 1 Fault
    #[inline(always)]
    pub fn dtprs1f(&self) -> Dtprs1fR {
        Dtprs1fR::new(((self.bits >> 1) & 1) != 0)
    }
    ///Bit 2 - DTI Debugger Fault
    #[inline(always)]
    pub fn dtdbgf(&self) -> DtdbgfR {
        DtdbgfR::new(((self.bits >> 2) & 1) != 0)
    }
    ///Bit 3 - DTI Lockup Fault
    #[inline(always)]
    pub fn dtlockupf(&self) -> DtlockupfR {
        DtlockupfR::new(((self.bits >> 3) & 1) != 0)
    }
}
impl core::fmt::Debug for R {
    fn fmt(&self, f: &mut core::fmt::Formatter) -> core::fmt::Result {
        f.debug_struct("DTFAULT")
            .field("dtprs0f", &self.dtprs0f())
            .field("dtprs1f", &self.dtprs1f())
            .field("dtdbgf", &self.dtdbgf())
            .field("dtlockupf", &self.dtlockupf())
            .finish()
    }
}
///DTI Fault Register
///
///You can [`read`](crate::Reg::read) this register and get [`dtfault::R`](R). See [API](https://docs.rs/svd2rust/#read--modify--write-api).
pub struct DTFAULTrs;
impl crate::RegisterSpec for DTFAULTrs {
    type Ux = u32;
}
///`read()` method returns [`dtfault::R`](R) reader structure
impl crate::Readable for DTFAULTrs {}
///`reset()` method sets DTFAULT to value 0
impl crate::Resettable for DTFAULTrs {}