xmc4700/ccu80_cc80/
cr2s.rs1#[doc = "Register `CR2S` reader"]
2pub type R = crate::R<CR2S_SPEC>;
3#[doc = "Register `CR2S` writer"]
4pub type W = crate::W<CR2S_SPEC>;
5#[doc = "Field `CR2S` reader - Shadow Compare Register for Channel 2"]
6pub type CR2S_R = crate::FieldReader<u16>;
7#[doc = "Field `CR2S` writer - Shadow Compare Register for Channel 2"]
8pub type CR2S_W<'a, REG> = crate::FieldWriter<'a, REG, 16, u16>;
9impl R {
10 #[doc = "Bits 0:15 - Shadow Compare Register for Channel 2"]
11 #[inline(always)]
12 pub fn cr2s(&self) -> CR2S_R {
13 CR2S_R::new((self.bits & 0xffff) as u16)
14 }
15}
16impl W {
17 #[doc = "Bits 0:15 - Shadow Compare Register for Channel 2"]
18 #[inline(always)]
19 pub fn cr2s(&mut self) -> CR2S_W<CR2S_SPEC> {
20 CR2S_W::new(self, 0)
21 }
22}
23#[doc = "Channel 2 Compare Shadow Value\n\nYou can [`read`](crate::Reg::read) this register and get [`cr2s::R`](R). You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`cr2s::W`](W). You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api)."]
24pub struct CR2S_SPEC;
25impl crate::RegisterSpec for CR2S_SPEC {
26 type Ux = u32;
27}
28#[doc = "`read()` method returns [`cr2s::R`](R) reader structure"]
29impl crate::Readable for CR2S_SPEC {}
30#[doc = "`write(|w| ..)` method takes [`cr2s::W`](W) writer structure"]
31impl crate::Writable for CR2S_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 CR2S to value 0"]
37impl crate::Resettable for CR2S_SPEC {
38 const RESET_VALUE: u32 = 0;
39}