1#[doc = "Register `GIDLS` writer"]
2pub type W = crate::W<GIDLS_SPEC>;
3#[doc = "Field `SS0I` writer - CC40 IDLE mode set"]
4pub type SS0I_W<'a, REG> = crate::BitWriter<'a, REG>;
5#[doc = "Field `SS1I` writer - CC41 IDLE mode set"]
6pub type SS1I_W<'a, REG> = crate::BitWriter<'a, REG>;
7#[doc = "Field `SS2I` writer - CC42 IDLE mode set"]
8pub type SS2I_W<'a, REG> = crate::BitWriter<'a, REG>;
9#[doc = "Field `SS3I` writer - CC43 IDLE mode set"]
10pub type SS3I_W<'a, REG> = crate::BitWriter<'a, REG>;
11#[doc = "Field `CPRB` writer - Prescaler Run Bit Clear"]
12pub type CPRB_W<'a, REG> = crate::BitWriter<'a, REG>;
13#[doc = "Field `PSIC` writer - Prescaler clear"]
14pub type PSIC_W<'a, REG> = crate::BitWriter<'a, REG>;
15impl W {
16 #[doc = "Bit 0 - CC40 IDLE mode set"]
17 #[inline(always)]
18 pub fn ss0i(&mut self) -> SS0I_W<GIDLS_SPEC> {
19 SS0I_W::new(self, 0)
20 }
21 #[doc = "Bit 1 - CC41 IDLE mode set"]
22 #[inline(always)]
23 pub fn ss1i(&mut self) -> SS1I_W<GIDLS_SPEC> {
24 SS1I_W::new(self, 1)
25 }
26 #[doc = "Bit 2 - CC42 IDLE mode set"]
27 #[inline(always)]
28 pub fn ss2i(&mut self) -> SS2I_W<GIDLS_SPEC> {
29 SS2I_W::new(self, 2)
30 }
31 #[doc = "Bit 3 - CC43 IDLE mode set"]
32 #[inline(always)]
33 pub fn ss3i(&mut self) -> SS3I_W<GIDLS_SPEC> {
34 SS3I_W::new(self, 3)
35 }
36 #[doc = "Bit 8 - Prescaler Run Bit Clear"]
37 #[inline(always)]
38 pub fn cprb(&mut self) -> CPRB_W<GIDLS_SPEC> {
39 CPRB_W::new(self, 8)
40 }
41 #[doc = "Bit 9 - Prescaler clear"]
42 #[inline(always)]
43 pub fn psic(&mut self) -> PSIC_W<GIDLS_SPEC> {
44 PSIC_W::new(self, 9)
45 }
46}
47#[doc = "Global Idle Set\n\nYou can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`gidls::W`](W). See [API](https://docs.rs/svd2rust/#read--modify--write-api)."]
48pub struct GIDLS_SPEC;
49impl crate::RegisterSpec for GIDLS_SPEC {
50 type Ux = u32;
51}
52#[doc = "`write(|w| ..)` method takes [`gidls::W`](W) writer structure"]
53impl crate::Writable for GIDLS_SPEC {
54 type Safety = crate::Unsafe;
55 const ZERO_TO_MODIFY_FIELDS_BITMAP: u32 = 0;
56 const ONE_TO_MODIFY_FIELDS_BITMAP: u32 = 0;
57}
58#[doc = "`reset()` method sets GIDLS to value 0"]
59impl crate::Resettable for GIDLS_SPEC {
60 const RESET_VALUE: u32 = 0;
61}