xmc4200/ccu40_cc40/
pr.rs

1#[doc = "Register `PR` reader"]
2pub type R = crate::R<PR_SPEC>;
3#[doc = "Field `PR` reader - Period Register"]
4pub type PR_R = crate::FieldReader<u16>;
5impl R {
6    #[doc = "Bits 0:15 - Period Register"]
7    #[inline(always)]
8    pub fn pr(&self) -> PR_R {
9        PR_R::new((self.bits & 0xffff) as u16)
10    }
11}
12#[doc = "Timer Period Value\n\nYou can [`read`](crate::Reg::read) this register and get [`pr::R`](R). See [API](https://docs.rs/svd2rust/#read--modify--write-api)."]
13pub struct PR_SPEC;
14impl crate::RegisterSpec for PR_SPEC {
15    type Ux = u32;
16}
17#[doc = "`read()` method returns [`pr::R`](R) reader structure"]
18impl crate::Readable for PR_SPEC {}
19#[doc = "`reset()` method sets PR to value 0"]
20impl crate::Resettable for PR_SPEC {
21    const RESET_VALUE: u32 = 0;
22}