efm32pg1b-pac 0.4.3

Peripheral access API for Silicon Labs EFM32PG1B microcontrollers
Documentation
///Register `COMBCNT` reader
pub type R = crate::R<COMBCNTrs>;
///Field `PRECNT` reader - Pre-Counter Value
pub type PrecntR = crate::FieldReader<u16>;
///Field `CNTLSB` reader - Counter Value
pub type CntlsbR = crate::FieldReader<u32>;
impl R {
    ///Bits 0:14 - Pre-Counter Value
    #[inline(always)]
    pub fn precnt(&self) -> PrecntR {
        PrecntR::new((self.bits & 0x7fff) as u16)
    }
    ///Bits 15:31 - Counter Value
    #[inline(always)]
    pub fn cntlsb(&self) -> CntlsbR {
        CntlsbR::new((self.bits >> 15) & 0x0001_ffff)
    }
}
impl core::fmt::Debug for R {
    fn fmt(&self, f: &mut core::fmt::Formatter) -> core::fmt::Result {
        f.debug_struct("COMBCNT")
            .field("precnt", &self.precnt())
            .field("cntlsb", &self.cntlsb())
            .finish()
    }
}
///Combined Pre-Counter and Counter Value Register
///
///You can [`read`](crate::Reg::read) this register and get [`combcnt::R`](R). See [API](https://docs.rs/svd2rust/#read--modify--write-api).
pub struct COMBCNTrs;
impl crate::RegisterSpec for COMBCNTrs {
    type Ux = u32;
}
///`read()` method returns [`combcnt::R`](R) reader structure
impl crate::Readable for COMBCNTrs {}
///`reset()` method sets COMBCNT to value 0
impl crate::Resettable for COMBCNTrs {}