xmc4500/ccu40_cc40/
fpcs.rs1#[doc = "Register `FPCS` reader"]
2pub type R = crate::R<FPCS_SPEC>;
3#[doc = "Register `FPCS` writer"]
4pub type W = crate::W<FPCS_SPEC>;
5#[doc = "Field `PCMP` reader - Floating Prescaler Shadow Compare Value"]
6pub type PCMP_R = crate::FieldReader;
7#[doc = "Field `PCMP` writer - Floating Prescaler Shadow Compare Value"]
8pub type PCMP_W<'a, REG> = crate::FieldWriter<'a, REG, 4>;
9impl R {
10 #[doc = "Bits 0:3 - Floating Prescaler Shadow Compare Value"]
11 #[inline(always)]
12 pub fn pcmp(&self) -> PCMP_R {
13 PCMP_R::new((self.bits & 0x0f) as u8)
14 }
15}
16impl W {
17 #[doc = "Bits 0:3 - Floating Prescaler Shadow Compare Value"]
18 #[inline(always)]
19 pub fn pcmp(&mut self) -> PCMP_W<FPCS_SPEC> {
20 PCMP_W::new(self, 0)
21 }
22}
23#[doc = "Floating Prescaler Shadow\n\nYou can [`read`](crate::Reg::read) this register and get [`fpcs::R`](R). You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`fpcs::W`](W). You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api)."]
24pub struct FPCS_SPEC;
25impl crate::RegisterSpec for FPCS_SPEC {
26 type Ux = u32;
27}
28#[doc = "`read()` method returns [`fpcs::R`](R) reader structure"]
29impl crate::Readable for FPCS_SPEC {}
30#[doc = "`write(|w| ..)` method takes [`fpcs::W`](W) writer structure"]
31impl crate::Writable for FPCS_SPEC {
32 type Safety = crate::Unsafe;
33 const ZERO_TO_MODIFY_FIELDS_BITMAP: u32 = 0;
34 const ONE_TO_MODIFY_FIELDS_BITMAP: u32 = 0;
35}
36#[doc = "`reset()` method sets FPCS to value 0"]
37impl crate::Resettable for FPCS_SPEC {
38 const RESET_VALUE: u32 = 0;
39}