1#[doc = "Register `GIDLS` writer"]
2pub type W = crate::W<GIDLS_SPEC>;
3#[doc = "Field `SS0I` writer - CC80 IDLE mode set"]
4pub type SS0I_W<'a, REG> = crate::BitWriter<'a, REG>;
5#[doc = "Field `SS1I` writer - CC81 IDLE mode set"]
6pub type SS1I_W<'a, REG> = crate::BitWriter<'a, REG>;
7#[doc = "Field `SS2I` writer - CC82 IDLE mode set"]
8pub type SS2I_W<'a, REG> = crate::BitWriter<'a, REG>;
9#[doc = "Field `SS3I` writer - CC83 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>;
15#[doc = "Field `CPCH` writer - Parity Checker Run bit clear"]
16pub type CPCH_W<'a, REG> = crate::BitWriter<'a, REG>;
17impl W {
18 #[doc = "Bit 0 - CC80 IDLE mode set"]
19 #[inline(always)]
20 pub fn ss0i(&mut self) -> SS0I_W<GIDLS_SPEC> {
21 SS0I_W::new(self, 0)
22 }
23 #[doc = "Bit 1 - CC81 IDLE mode set"]
24 #[inline(always)]
25 pub fn ss1i(&mut self) -> SS1I_W<GIDLS_SPEC> {
26 SS1I_W::new(self, 1)
27 }
28 #[doc = "Bit 2 - CC82 IDLE mode set"]
29 #[inline(always)]
30 pub fn ss2i(&mut self) -> SS2I_W<GIDLS_SPEC> {
31 SS2I_W::new(self, 2)
32 }
33 #[doc = "Bit 3 - CC83 IDLE mode set"]
34 #[inline(always)]
35 pub fn ss3i(&mut self) -> SS3I_W<GIDLS_SPEC> {
36 SS3I_W::new(self, 3)
37 }
38 #[doc = "Bit 8 - Prescaler# Run Bit Clear"]
39 #[inline(always)]
40 pub fn cprb(&mut self) -> CPRB_W<GIDLS_SPEC> {
41 CPRB_W::new(self, 8)
42 }
43 #[doc = "Bit 9 - Prescaler clear"]
44 #[inline(always)]
45 pub fn psic(&mut self) -> PSIC_W<GIDLS_SPEC> {
46 PSIC_W::new(self, 9)
47 }
48 #[doc = "Bit 10 - Parity Checker Run bit clear"]
49 #[inline(always)]
50 pub fn cpch(&mut self) -> CPCH_W<GIDLS_SPEC> {
51 CPCH_W::new(self, 10)
52 }
53}
54#[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)."]
55pub struct GIDLS_SPEC;
56impl crate::RegisterSpec for GIDLS_SPEC {
57 type Ux = u32;
58}
59#[doc = "`write(|w| ..)` method takes [`gidls::W`](W) writer structure"]
60impl crate::Writable for GIDLS_SPEC {
61 type Safety = crate::Unsafe;
62 const ZERO_TO_MODIFY_FIELDS_BITMAP: u32 = 0;
63 const ONE_TO_MODIFY_FIELDS_BITMAP: u32 = 0;
64}
65#[doc = "`reset()` method sets GIDLS to value 0"]
66impl crate::Resettable for GIDLS_SPEC {
67 const RESET_VALUE: u32 = 0;
68}