bl61x_pac/cci/
audio_pll_cfg8.rs1#[doc = "Register `audio_pll_cfg8` reader"]
2pub type R = crate::R<AUDIO_PLL_CFG8_SPEC>;
3#[doc = "Register `audio_pll_cfg8` writer"]
4pub type W = crate::W<AUDIO_PLL_CFG8_SPEC>;
5#[doc = "Field `aupll_en_div1` reader - "]
6pub type AUPLL_EN_DIV1_R = crate::BitReader;
7#[doc = "Field `aupll_en_div1` writer - "]
8pub type AUPLL_EN_DIV1_W<'a, REG> = crate::BitWriter<'a, REG>;
9#[doc = "Field `aupll_en_div2` reader - "]
10pub type AUPLL_EN_DIV2_R = crate::BitReader;
11#[doc = "Field `aupll_en_div2` writer - "]
12pub type AUPLL_EN_DIV2_W<'a, REG> = crate::BitWriter<'a, REG>;
13#[doc = "Field `aupll_en_div2p5` reader - "]
14pub type AUPLL_EN_DIV2P5_R = crate::BitReader;
15#[doc = "Field `aupll_en_div2p5` writer - "]
16pub type AUPLL_EN_DIV2P5_W<'a, REG> = crate::BitWriter<'a, REG>;
17#[doc = "Field `aupll_en_div3` reader - "]
18pub type AUPLL_EN_DIV3_R = crate::BitReader;
19#[doc = "Field `aupll_en_div3` writer - "]
20pub type AUPLL_EN_DIV3_W<'a, REG> = crate::BitWriter<'a, REG>;
21#[doc = "Field `aupll_en_div4` reader - "]
22pub type AUPLL_EN_DIV4_R = crate::BitReader;
23#[doc = "Field `aupll_en_div4` writer - "]
24pub type AUPLL_EN_DIV4_W<'a, REG> = crate::BitWriter<'a, REG>;
25#[doc = "Field `aupll_en_div5` reader - "]
26pub type AUPLL_EN_DIV5_R = crate::BitReader;
27#[doc = "Field `aupll_en_div5` writer - "]
28pub type AUPLL_EN_DIV5_W<'a, REG> = crate::BitWriter<'a, REG>;
29#[doc = "Field `aupll_en_div6` reader - "]
30pub type AUPLL_EN_DIV6_R = crate::BitReader;
31#[doc = "Field `aupll_en_div6` writer - "]
32pub type AUPLL_EN_DIV6_W<'a, REG> = crate::BitWriter<'a, REG>;
33#[doc = "Field `aupll_en_div10` reader - "]
34pub type AUPLL_EN_DIV10_R = crate::BitReader;
35#[doc = "Field `aupll_en_div10` writer - "]
36pub type AUPLL_EN_DIV10_W<'a, REG> = crate::BitWriter<'a, REG>;
37#[doc = "Field `aupll_en_div15` reader - "]
38pub type AUPLL_EN_DIV15_R = crate::BitReader;
39#[doc = "Field `aupll_en_div15` writer - "]
40pub type AUPLL_EN_DIV15_W<'a, REG> = crate::BitWriter<'a, REG>;
41#[doc = "Field `aupll_sel_div1_div2` reader - "]
42pub type AUPLL_SEL_DIV1_DIV2_R = crate::BitReader;
43#[doc = "Field `aupll_sel_div1_div2` writer - "]
44pub type AUPLL_SEL_DIV1_DIV2_W<'a, REG> = crate::BitWriter<'a, REG>;
45impl R {
46 #[doc = "Bit 0"]
47 #[inline(always)]
48 pub fn aupll_en_div1(&self) -> AUPLL_EN_DIV1_R {
49 AUPLL_EN_DIV1_R::new((self.bits & 1) != 0)
50 }
51 #[doc = "Bit 1"]
52 #[inline(always)]
53 pub fn aupll_en_div2(&self) -> AUPLL_EN_DIV2_R {
54 AUPLL_EN_DIV2_R::new(((self.bits >> 1) & 1) != 0)
55 }
56 #[doc = "Bit 2"]
57 #[inline(always)]
58 pub fn aupll_en_div2p5(&self) -> AUPLL_EN_DIV2P5_R {
59 AUPLL_EN_DIV2P5_R::new(((self.bits >> 2) & 1) != 0)
60 }
61 #[doc = "Bit 3"]
62 #[inline(always)]
63 pub fn aupll_en_div3(&self) -> AUPLL_EN_DIV3_R {
64 AUPLL_EN_DIV3_R::new(((self.bits >> 3) & 1) != 0)
65 }
66 #[doc = "Bit 4"]
67 #[inline(always)]
68 pub fn aupll_en_div4(&self) -> AUPLL_EN_DIV4_R {
69 AUPLL_EN_DIV4_R::new(((self.bits >> 4) & 1) != 0)
70 }
71 #[doc = "Bit 5"]
72 #[inline(always)]
73 pub fn aupll_en_div5(&self) -> AUPLL_EN_DIV5_R {
74 AUPLL_EN_DIV5_R::new(((self.bits >> 5) & 1) != 0)
75 }
76 #[doc = "Bit 6"]
77 #[inline(always)]
78 pub fn aupll_en_div6(&self) -> AUPLL_EN_DIV6_R {
79 AUPLL_EN_DIV6_R::new(((self.bits >> 6) & 1) != 0)
80 }
81 #[doc = "Bit 7"]
82 #[inline(always)]
83 pub fn aupll_en_div10(&self) -> AUPLL_EN_DIV10_R {
84 AUPLL_EN_DIV10_R::new(((self.bits >> 7) & 1) != 0)
85 }
86 #[doc = "Bit 8"]
87 #[inline(always)]
88 pub fn aupll_en_div15(&self) -> AUPLL_EN_DIV15_R {
89 AUPLL_EN_DIV15_R::new(((self.bits >> 8) & 1) != 0)
90 }
91 #[doc = "Bit 9"]
92 #[inline(always)]
93 pub fn aupll_sel_div1_div2(&self) -> AUPLL_SEL_DIV1_DIV2_R {
94 AUPLL_SEL_DIV1_DIV2_R::new(((self.bits >> 9) & 1) != 0)
95 }
96}
97impl W {
98 #[doc = "Bit 0"]
99 #[inline(always)]
100 #[must_use]
101 pub fn aupll_en_div1(&mut self) -> AUPLL_EN_DIV1_W<AUDIO_PLL_CFG8_SPEC> {
102 AUPLL_EN_DIV1_W::new(self, 0)
103 }
104 #[doc = "Bit 1"]
105 #[inline(always)]
106 #[must_use]
107 pub fn aupll_en_div2(&mut self) -> AUPLL_EN_DIV2_W<AUDIO_PLL_CFG8_SPEC> {
108 AUPLL_EN_DIV2_W::new(self, 1)
109 }
110 #[doc = "Bit 2"]
111 #[inline(always)]
112 #[must_use]
113 pub fn aupll_en_div2p5(&mut self) -> AUPLL_EN_DIV2P5_W<AUDIO_PLL_CFG8_SPEC> {
114 AUPLL_EN_DIV2P5_W::new(self, 2)
115 }
116 #[doc = "Bit 3"]
117 #[inline(always)]
118 #[must_use]
119 pub fn aupll_en_div3(&mut self) -> AUPLL_EN_DIV3_W<AUDIO_PLL_CFG8_SPEC> {
120 AUPLL_EN_DIV3_W::new(self, 3)
121 }
122 #[doc = "Bit 4"]
123 #[inline(always)]
124 #[must_use]
125 pub fn aupll_en_div4(&mut self) -> AUPLL_EN_DIV4_W<AUDIO_PLL_CFG8_SPEC> {
126 AUPLL_EN_DIV4_W::new(self, 4)
127 }
128 #[doc = "Bit 5"]
129 #[inline(always)]
130 #[must_use]
131 pub fn aupll_en_div5(&mut self) -> AUPLL_EN_DIV5_W<AUDIO_PLL_CFG8_SPEC> {
132 AUPLL_EN_DIV5_W::new(self, 5)
133 }
134 #[doc = "Bit 6"]
135 #[inline(always)]
136 #[must_use]
137 pub fn aupll_en_div6(&mut self) -> AUPLL_EN_DIV6_W<AUDIO_PLL_CFG8_SPEC> {
138 AUPLL_EN_DIV6_W::new(self, 6)
139 }
140 #[doc = "Bit 7"]
141 #[inline(always)]
142 #[must_use]
143 pub fn aupll_en_div10(&mut self) -> AUPLL_EN_DIV10_W<AUDIO_PLL_CFG8_SPEC> {
144 AUPLL_EN_DIV10_W::new(self, 7)
145 }
146 #[doc = "Bit 8"]
147 #[inline(always)]
148 #[must_use]
149 pub fn aupll_en_div15(&mut self) -> AUPLL_EN_DIV15_W<AUDIO_PLL_CFG8_SPEC> {
150 AUPLL_EN_DIV15_W::new(self, 8)
151 }
152 #[doc = "Bit 9"]
153 #[inline(always)]
154 #[must_use]
155 pub fn aupll_sel_div1_div2(&mut self) -> AUPLL_SEL_DIV1_DIV2_W<AUDIO_PLL_CFG8_SPEC> {
156 AUPLL_SEL_DIV1_DIV2_W::new(self, 9)
157 }
158 #[doc = r" Writes raw bits to the register."]
159 #[doc = r""]
160 #[doc = r" # Safety"]
161 #[doc = r""]
162 #[doc = r" Passing incorrect value can cause undefined behaviour. See reference manual"]
163 #[inline(always)]
164 pub unsafe fn bits(&mut self, bits: u32) -> &mut Self {
165 self.bits = bits;
166 self
167 }
168}
169#[doc = "audio_pll_cfg8.\n\nYou can [`read`](crate::generic::Reg::read) this register and get [`audio_pll_cfg8::R`](R). You can [`reset`](crate::generic::Reg::reset), [`write`](crate::generic::Reg::write), [`write_with_zero`](crate::generic::Reg::write_with_zero) this register using [`audio_pll_cfg8::W`](W). You can also [`modify`](crate::generic::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api)."]
170pub struct AUDIO_PLL_CFG8_SPEC;
171impl crate::RegisterSpec for AUDIO_PLL_CFG8_SPEC {
172 type Ux = u32;
173}
174#[doc = "`read()` method returns [`audio_pll_cfg8::R`](R) reader structure"]
175impl crate::Readable for AUDIO_PLL_CFG8_SPEC {}
176#[doc = "`write(|w| ..)` method takes [`audio_pll_cfg8::W`](W) writer structure"]
177impl crate::Writable for AUDIO_PLL_CFG8_SPEC {
178 const ZERO_TO_MODIFY_FIELDS_BITMAP: Self::Ux = 0;
179 const ONE_TO_MODIFY_FIELDS_BITMAP: Self::Ux = 0;
180}
181#[doc = "`reset()` method sets audio_pll_cfg8 to value 0"]
182impl crate::Resettable for AUDIO_PLL_CFG8_SPEC {
183 const RESET_VALUE: Self::Ux = 0;
184}