xmc4100/ccu40/
gcss.rs

1#[doc = "Register `GCSS` writer"]
2pub type W = crate::W<GCSS_SPEC>;
3#[doc = "Field `S0SE` writer - Slice 0 shadow transfer set enable"]
4pub type S0SE_W<'a, REG> = crate::BitWriter<'a, REG>;
5#[doc = "Field `S0DSE` writer - Slice 0 Dither shadow transfer set enable"]
6pub type S0DSE_W<'a, REG> = crate::BitWriter<'a, REG>;
7#[doc = "Field `S0PSE` writer - Slice 0 Prescaler shadow transfer set enable"]
8pub type S0PSE_W<'a, REG> = crate::BitWriter<'a, REG>;
9#[doc = "Field `S1SE` writer - Slice 1 shadow transfer set enable"]
10pub type S1SE_W<'a, REG> = crate::BitWriter<'a, REG>;
11#[doc = "Field `S1DSE` writer - Slice 1 Dither shadow transfer set enable"]
12pub type S1DSE_W<'a, REG> = crate::BitWriter<'a, REG>;
13#[doc = "Field `S1PSE` writer - Slice 1 Prescaler shadow transfer set enable"]
14pub type S1PSE_W<'a, REG> = crate::BitWriter<'a, REG>;
15#[doc = "Field `S2SE` writer - Slice 2 shadow transfer set enable"]
16pub type S2SE_W<'a, REG> = crate::BitWriter<'a, REG>;
17#[doc = "Field `S2DSE` writer - Slice 2 Dither shadow transfer set enable"]
18pub type S2DSE_W<'a, REG> = crate::BitWriter<'a, REG>;
19#[doc = "Field `S2PSE` writer - Slice 2 Prescaler shadow transfer set enable"]
20pub type S2PSE_W<'a, REG> = crate::BitWriter<'a, REG>;
21#[doc = "Field `S3SE` writer - Slice 3 shadow transfer set enable"]
22pub type S3SE_W<'a, REG> = crate::BitWriter<'a, REG>;
23#[doc = "Field `S3DSE` writer - Slice 3 Dither shadow transfer set enable"]
24pub type S3DSE_W<'a, REG> = crate::BitWriter<'a, REG>;
25#[doc = "Field `S3PSE` writer - Slice 3 Prescaler shadow transfer set enable"]
26pub type S3PSE_W<'a, REG> = crate::BitWriter<'a, REG>;
27#[doc = "Field `S0STS` writer - Slice 0 status bit set"]
28pub type S0STS_W<'a, REG> = crate::BitWriter<'a, REG>;
29#[doc = "Field `S1STS` writer - Slice 1 status bit set"]
30pub type S1STS_W<'a, REG> = crate::BitWriter<'a, REG>;
31#[doc = "Field `S2STS` writer - Slice 2 status bit set"]
32pub type S2STS_W<'a, REG> = crate::BitWriter<'a, REG>;
33#[doc = "Field `S3STS` writer - Slice 3 status bit set"]
34pub type S3STS_W<'a, REG> = crate::BitWriter<'a, REG>;
35impl W {
36    #[doc = "Bit 0 - Slice 0 shadow transfer set enable"]
37    #[inline(always)]
38    pub fn s0se(&mut self) -> S0SE_W<GCSS_SPEC> {
39        S0SE_W::new(self, 0)
40    }
41    #[doc = "Bit 1 - Slice 0 Dither shadow transfer set enable"]
42    #[inline(always)]
43    pub fn s0dse(&mut self) -> S0DSE_W<GCSS_SPEC> {
44        S0DSE_W::new(self, 1)
45    }
46    #[doc = "Bit 2 - Slice 0 Prescaler shadow transfer set enable"]
47    #[inline(always)]
48    pub fn s0pse(&mut self) -> S0PSE_W<GCSS_SPEC> {
49        S0PSE_W::new(self, 2)
50    }
51    #[doc = "Bit 4 - Slice 1 shadow transfer set enable"]
52    #[inline(always)]
53    pub fn s1se(&mut self) -> S1SE_W<GCSS_SPEC> {
54        S1SE_W::new(self, 4)
55    }
56    #[doc = "Bit 5 - Slice 1 Dither shadow transfer set enable"]
57    #[inline(always)]
58    pub fn s1dse(&mut self) -> S1DSE_W<GCSS_SPEC> {
59        S1DSE_W::new(self, 5)
60    }
61    #[doc = "Bit 6 - Slice 1 Prescaler shadow transfer set enable"]
62    #[inline(always)]
63    pub fn s1pse(&mut self) -> S1PSE_W<GCSS_SPEC> {
64        S1PSE_W::new(self, 6)
65    }
66    #[doc = "Bit 8 - Slice 2 shadow transfer set enable"]
67    #[inline(always)]
68    pub fn s2se(&mut self) -> S2SE_W<GCSS_SPEC> {
69        S2SE_W::new(self, 8)
70    }
71    #[doc = "Bit 9 - Slice 2 Dither shadow transfer set enable"]
72    #[inline(always)]
73    pub fn s2dse(&mut self) -> S2DSE_W<GCSS_SPEC> {
74        S2DSE_W::new(self, 9)
75    }
76    #[doc = "Bit 10 - Slice 2 Prescaler shadow transfer set enable"]
77    #[inline(always)]
78    pub fn s2pse(&mut self) -> S2PSE_W<GCSS_SPEC> {
79        S2PSE_W::new(self, 10)
80    }
81    #[doc = "Bit 12 - Slice 3 shadow transfer set enable"]
82    #[inline(always)]
83    pub fn s3se(&mut self) -> S3SE_W<GCSS_SPEC> {
84        S3SE_W::new(self, 12)
85    }
86    #[doc = "Bit 13 - Slice 3 Dither shadow transfer set enable"]
87    #[inline(always)]
88    pub fn s3dse(&mut self) -> S3DSE_W<GCSS_SPEC> {
89        S3DSE_W::new(self, 13)
90    }
91    #[doc = "Bit 14 - Slice 3 Prescaler shadow transfer set enable"]
92    #[inline(always)]
93    pub fn s3pse(&mut self) -> S3PSE_W<GCSS_SPEC> {
94        S3PSE_W::new(self, 14)
95    }
96    #[doc = "Bit 16 - Slice 0 status bit set"]
97    #[inline(always)]
98    pub fn s0sts(&mut self) -> S0STS_W<GCSS_SPEC> {
99        S0STS_W::new(self, 16)
100    }
101    #[doc = "Bit 17 - Slice 1 status bit set"]
102    #[inline(always)]
103    pub fn s1sts(&mut self) -> S1STS_W<GCSS_SPEC> {
104        S1STS_W::new(self, 17)
105    }
106    #[doc = "Bit 18 - Slice 2 status bit set"]
107    #[inline(always)]
108    pub fn s2sts(&mut self) -> S2STS_W<GCSS_SPEC> {
109        S2STS_W::new(self, 18)
110    }
111    #[doc = "Bit 19 - Slice 3 status bit set"]
112    #[inline(always)]
113    pub fn s3sts(&mut self) -> S3STS_W<GCSS_SPEC> {
114        S3STS_W::new(self, 19)
115    }
116}
117#[doc = "Global Channel Set\n\nYou can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`gcss::W`](W). See [API](https://docs.rs/svd2rust/#read--modify--write-api)."]
118pub struct GCSS_SPEC;
119impl crate::RegisterSpec for GCSS_SPEC {
120    type Ux = u32;
121}
122#[doc = "`write(|w| ..)` method takes [`gcss::W`](W) writer structure"]
123impl crate::Writable for GCSS_SPEC {
124    type Safety = crate::Unsafe;
125    const ZERO_TO_MODIFY_FIELDS_BITMAP: u32 = 0;
126    const ONE_TO_MODIFY_FIELDS_BITMAP: u32 = 0;
127}
128#[doc = "`reset()` method sets GCSS to value 0"]
129impl crate::Resettable for GCSS_SPEC {
130    const RESET_VALUE: u32 = 0;
131}