bl61x_pac/cci/
audio_pll_cfg11.rs

1#[doc = "Register `audio_pll_cfg11` reader"]
2pub type R = crate::R<AUDIO_PLL_CFG11_SPEC>;
3#[doc = "Register `audio_pll_cfg11` writer"]
4pub type W = crate::W<AUDIO_PLL_CFG11_SPEC>;
5#[doc = "Field `aupll_resv` reader - "]
6pub type AUPLL_RESV_R = crate::FieldReader<u16>;
7#[doc = "Field `aupll_resv` writer - "]
8pub type AUPLL_RESV_W<'a, REG> = crate::FieldWriter<'a, REG, 16, u16>;
9#[doc = "Field `aupll_dl_ctrl_15` reader - "]
10pub type AUPLL_DL_CTRL_15_R = crate::BitReader;
11#[doc = "Field `aupll_dl_ctrl_15` writer - "]
12pub type AUPLL_DL_CTRL_15_W<'a, REG> = crate::BitWriter<'a, REG>;
13#[doc = "Field `aupll_dl_ctrl_10` reader - "]
14pub type AUPLL_DL_CTRL_10_R = crate::BitReader;
15#[doc = "Field `aupll_dl_ctrl_10` writer - "]
16pub type AUPLL_DL_CTRL_10_W<'a, REG> = crate::BitWriter<'a, REG>;
17#[doc = "Field `aupll_dl_ctrl_6` reader - "]
18pub type AUPLL_DL_CTRL_6_R = crate::BitReader;
19#[doc = "Field `aupll_dl_ctrl_6` writer - "]
20pub type AUPLL_DL_CTRL_6_W<'a, REG> = crate::BitWriter<'a, REG>;
21#[doc = "Field `aupll_dl_ctrl_5` reader - "]
22pub type AUPLL_DL_CTRL_5_R = crate::BitReader;
23#[doc = "Field `aupll_dl_ctrl_5` writer - "]
24pub type AUPLL_DL_CTRL_5_W<'a, REG> = crate::BitWriter<'a, REG>;
25#[doc = "Field `aupll_dl_ctrl_4` reader - "]
26pub type AUPLL_DL_CTRL_4_R = crate::BitReader;
27#[doc = "Field `aupll_dl_ctrl_4` writer - "]
28pub type AUPLL_DL_CTRL_4_W<'a, REG> = crate::BitWriter<'a, REG>;
29#[doc = "Field `aupll_dl_ctrl_3` reader - "]
30pub type AUPLL_DL_CTRL_3_R = crate::BitReader;
31#[doc = "Field `aupll_dl_ctrl_3` writer - "]
32pub type AUPLL_DL_CTRL_3_W<'a, REG> = crate::BitWriter<'a, REG>;
33#[doc = "Field `aupll_dl_ctrl_2p5` reader - "]
34pub type AUPLL_DL_CTRL_2P5_R = crate::BitReader;
35#[doc = "Field `aupll_dl_ctrl_2p5` writer - "]
36pub type AUPLL_DL_CTRL_2P5_W<'a, REG> = crate::BitWriter<'a, REG>;
37#[doc = "Field `aupll_dl_ctrl_2` reader - "]
38pub type AUPLL_DL_CTRL_2_R = crate::BitReader;
39#[doc = "Field `aupll_dl_ctrl_2` writer - "]
40pub type AUPLL_DL_CTRL_2_W<'a, REG> = crate::BitWriter<'a, REG>;
41#[doc = "Field `aupll_dl_ctrl_1` reader - "]
42pub type AUPLL_DL_CTRL_1_R = crate::BitReader;
43#[doc = "Field `aupll_dl_ctrl_1` writer - "]
44pub type AUPLL_DL_CTRL_1_W<'a, REG> = crate::BitWriter<'a, REG>;
45impl R {
46    #[doc = "Bits 0:15"]
47    #[inline(always)]
48    pub fn aupll_resv(&self) -> AUPLL_RESV_R {
49        AUPLL_RESV_R::new((self.bits & 0xffff) as u16)
50    }
51    #[doc = "Bit 23"]
52    #[inline(always)]
53    pub fn aupll_dl_ctrl_15(&self) -> AUPLL_DL_CTRL_15_R {
54        AUPLL_DL_CTRL_15_R::new(((self.bits >> 23) & 1) != 0)
55    }
56    #[doc = "Bit 24"]
57    #[inline(always)]
58    pub fn aupll_dl_ctrl_10(&self) -> AUPLL_DL_CTRL_10_R {
59        AUPLL_DL_CTRL_10_R::new(((self.bits >> 24) & 1) != 0)
60    }
61    #[doc = "Bit 25"]
62    #[inline(always)]
63    pub fn aupll_dl_ctrl_6(&self) -> AUPLL_DL_CTRL_6_R {
64        AUPLL_DL_CTRL_6_R::new(((self.bits >> 25) & 1) != 0)
65    }
66    #[doc = "Bit 26"]
67    #[inline(always)]
68    pub fn aupll_dl_ctrl_5(&self) -> AUPLL_DL_CTRL_5_R {
69        AUPLL_DL_CTRL_5_R::new(((self.bits >> 26) & 1) != 0)
70    }
71    #[doc = "Bit 27"]
72    #[inline(always)]
73    pub fn aupll_dl_ctrl_4(&self) -> AUPLL_DL_CTRL_4_R {
74        AUPLL_DL_CTRL_4_R::new(((self.bits >> 27) & 1) != 0)
75    }
76    #[doc = "Bit 28"]
77    #[inline(always)]
78    pub fn aupll_dl_ctrl_3(&self) -> AUPLL_DL_CTRL_3_R {
79        AUPLL_DL_CTRL_3_R::new(((self.bits >> 28) & 1) != 0)
80    }
81    #[doc = "Bit 29"]
82    #[inline(always)]
83    pub fn aupll_dl_ctrl_2p5(&self) -> AUPLL_DL_CTRL_2P5_R {
84        AUPLL_DL_CTRL_2P5_R::new(((self.bits >> 29) & 1) != 0)
85    }
86    #[doc = "Bit 30"]
87    #[inline(always)]
88    pub fn aupll_dl_ctrl_2(&self) -> AUPLL_DL_CTRL_2_R {
89        AUPLL_DL_CTRL_2_R::new(((self.bits >> 30) & 1) != 0)
90    }
91    #[doc = "Bit 31"]
92    #[inline(always)]
93    pub fn aupll_dl_ctrl_1(&self) -> AUPLL_DL_CTRL_1_R {
94        AUPLL_DL_CTRL_1_R::new(((self.bits >> 31) & 1) != 0)
95    }
96}
97impl W {
98    #[doc = "Bits 0:15"]
99    #[inline(always)]
100    #[must_use]
101    pub fn aupll_resv(&mut self) -> AUPLL_RESV_W<AUDIO_PLL_CFG11_SPEC> {
102        AUPLL_RESV_W::new(self, 0)
103    }
104    #[doc = "Bit 23"]
105    #[inline(always)]
106    #[must_use]
107    pub fn aupll_dl_ctrl_15(&mut self) -> AUPLL_DL_CTRL_15_W<AUDIO_PLL_CFG11_SPEC> {
108        AUPLL_DL_CTRL_15_W::new(self, 23)
109    }
110    #[doc = "Bit 24"]
111    #[inline(always)]
112    #[must_use]
113    pub fn aupll_dl_ctrl_10(&mut self) -> AUPLL_DL_CTRL_10_W<AUDIO_PLL_CFG11_SPEC> {
114        AUPLL_DL_CTRL_10_W::new(self, 24)
115    }
116    #[doc = "Bit 25"]
117    #[inline(always)]
118    #[must_use]
119    pub fn aupll_dl_ctrl_6(&mut self) -> AUPLL_DL_CTRL_6_W<AUDIO_PLL_CFG11_SPEC> {
120        AUPLL_DL_CTRL_6_W::new(self, 25)
121    }
122    #[doc = "Bit 26"]
123    #[inline(always)]
124    #[must_use]
125    pub fn aupll_dl_ctrl_5(&mut self) -> AUPLL_DL_CTRL_5_W<AUDIO_PLL_CFG11_SPEC> {
126        AUPLL_DL_CTRL_5_W::new(self, 26)
127    }
128    #[doc = "Bit 27"]
129    #[inline(always)]
130    #[must_use]
131    pub fn aupll_dl_ctrl_4(&mut self) -> AUPLL_DL_CTRL_4_W<AUDIO_PLL_CFG11_SPEC> {
132        AUPLL_DL_CTRL_4_W::new(self, 27)
133    }
134    #[doc = "Bit 28"]
135    #[inline(always)]
136    #[must_use]
137    pub fn aupll_dl_ctrl_3(&mut self) -> AUPLL_DL_CTRL_3_W<AUDIO_PLL_CFG11_SPEC> {
138        AUPLL_DL_CTRL_3_W::new(self, 28)
139    }
140    #[doc = "Bit 29"]
141    #[inline(always)]
142    #[must_use]
143    pub fn aupll_dl_ctrl_2p5(&mut self) -> AUPLL_DL_CTRL_2P5_W<AUDIO_PLL_CFG11_SPEC> {
144        AUPLL_DL_CTRL_2P5_W::new(self, 29)
145    }
146    #[doc = "Bit 30"]
147    #[inline(always)]
148    #[must_use]
149    pub fn aupll_dl_ctrl_2(&mut self) -> AUPLL_DL_CTRL_2_W<AUDIO_PLL_CFG11_SPEC> {
150        AUPLL_DL_CTRL_2_W::new(self, 30)
151    }
152    #[doc = "Bit 31"]
153    #[inline(always)]
154    #[must_use]
155    pub fn aupll_dl_ctrl_1(&mut self) -> AUPLL_DL_CTRL_1_W<AUDIO_PLL_CFG11_SPEC> {
156        AUPLL_DL_CTRL_1_W::new(self, 31)
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_cfg11.\n\nYou can [`read`](crate::generic::Reg::read) this register and get [`audio_pll_cfg11::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_cfg11::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_CFG11_SPEC;
171impl crate::RegisterSpec for AUDIO_PLL_CFG11_SPEC {
172    type Ux = u32;
173}
174#[doc = "`read()` method returns [`audio_pll_cfg11::R`](R) reader structure"]
175impl crate::Readable for AUDIO_PLL_CFG11_SPEC {}
176#[doc = "`write(|w| ..)` method takes [`audio_pll_cfg11::W`](W) writer structure"]
177impl crate::Writable for AUDIO_PLL_CFG11_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_cfg11 to value 0"]
182impl crate::Resettable for AUDIO_PLL_CFG11_SPEC {
183    const RESET_VALUE: Self::Ux = 0;
184}