efm32pg1b-pac 0.4.3

Peripheral access API for Silicon Labs EFM32PG1B microcontrollers
Documentation
///Register `COMP0` reader
pub type R = crate::R<COMP0rs>;
///Register `COMP0` writer
pub type W = crate::W<COMP0rs>;
///Field `COMP0` reader - Compare Value 0
pub type Comp0R = crate::FieldReader<u16>;
///Field `COMP0` writer - Compare Value 0
pub type Comp0W<'a, REG> = crate::FieldWriter<'a, REG, 16, u16>;
impl R {
    ///Bits 0:15 - Compare Value 0
    #[inline(always)]
    pub fn comp0(&self) -> Comp0R {
        Comp0R::new((self.bits & 0xffff) as u16)
    }
}
impl core::fmt::Debug for R {
    fn fmt(&self, f: &mut core::fmt::Formatter) -> core::fmt::Result {
        f.debug_struct("COMP0")
            .field("comp0", &self.comp0())
            .finish()
    }
}
impl W {
    ///Bits 0:15 - Compare Value 0
    #[inline(always)]
    pub fn comp0(&mut self) -> Comp0W<'_, COMP0rs> {
        Comp0W::new(self, 0)
    }
}
///Compare Value Register 0
///
///You can [`read`](crate::Reg::read) this register and get [`comp0::R`](R). You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`comp0::W`](W). You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api).
pub struct COMP0rs;
impl crate::RegisterSpec for COMP0rs {
    type Ux = u32;
}
///`read()` method returns [`comp0::R`](R) reader structure
impl crate::Readable for COMP0rs {}
///`write(|w| ..)` method takes [`comp0::W`](W) writer structure
impl crate::Writable for COMP0rs {
    type Safety = crate::Unsafe;
}
///`reset()` method sets COMP0 to value 0
impl crate::Resettable for COMP0rs {}