efm32pg1b-pac 0.4.4

Peripheral access API for Silicon Labs EFM32PG1B microcontrollers
Documentation
///Register `CC0_CCV` reader
pub type R = crate::R<CC0_CCVrs>;
///Register `CC0_CCV` writer
pub type W = crate::W<CC0_CCVrs>;
///Field `CCV` reader - CC Channel Value
pub type CcvR = crate::FieldReader<u16>;
///Field `CCV` writer - CC Channel Value
pub type CcvW<'a, REG> = crate::FieldWriter<'a, REG, 16, u16>;
impl R {
    ///Bits 0:15 - CC Channel Value
    #[inline(always)]
    pub fn ccv(&self) -> CcvR {
        CcvR::new((self.bits & 0xffff) as u16)
    }
}
impl core::fmt::Debug for crate::generic::Reg<CC0_CCVrs> {
    fn fmt(&self, f: &mut core::fmt::Formatter<'_>) -> core::fmt::Result {
        write!(f, "(not readable)")
    }
}
impl W {
    ///Bits 0:15 - CC Channel Value
    #[inline(always)]
    pub fn ccv(&mut self) -> CcvW<'_, CC0_CCVrs> {
        CcvW::new(self, 0)
    }
}
///CC Channel Value Register
///
///You can [`read`](crate::Reg::read) this register and get [`cc0_ccv::R`](R). You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`cc0_ccv::W`](W). You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api).
///
///<div class="warning">One or more dependent resources other than the current register are immediately affected by a read operation.</div>
pub struct CC0_CCVrs;
impl crate::RegisterSpec for CC0_CCVrs {
    type Ux = u32;
}
///`read()` method returns [`cc0_ccv::R`](R) reader structure
impl crate::Readable for CC0_CCVrs {}
///`write(|w| ..)` method takes [`cc0_ccv::W`](W) writer structure
impl crate::Writable for CC0_CCVrs {
    type Safety = crate::Unsafe;
}
///`reset()` method sets CC0_CCV to value 0
impl crate::Resettable for CC0_CCVrs {}