1#[doc = "Register `GEN_CTRL` reader"]
2pub type R = crate::R<GEN_CTRL_SPEC>;
3#[doc = "Register `GEN_CTRL` writer"]
4pub type W = crate::W<GEN_CTRL_SPEC>;
5#[doc = "Field `IQ_EST_FORCE_PD` reader - Force Power Down for IQ Estimation"]
6pub type IQ_EST_FORCE_PD_R = crate::BitReader;
7#[doc = "Field `IQ_EST_FORCE_PD` writer - Force Power Down for IQ Estimation"]
8pub type IQ_EST_FORCE_PD_W<'a, REG> = crate::BitWriter<'a, REG>;
9#[doc = "Field `IQ_EST_FORCE_PU` reader - Force Power Up for IQ Estimation"]
10pub type IQ_EST_FORCE_PU_R = crate::BitReader;
11#[doc = "Field `IQ_EST_FORCE_PU` writer - Force Power Up for IQ Estimation"]
12pub type IQ_EST_FORCE_PU_W<'a, REG> = crate::BitWriter<'a, REG>;
13impl R {
14 #[doc = "Bit 4 - Force Power Down for IQ Estimation"]
15 #[inline(always)]
16 pub fn iq_est_force_pd(&self) -> IQ_EST_FORCE_PD_R {
17 IQ_EST_FORCE_PD_R::new(((self.bits >> 4) & 1) != 0)
18 }
19 #[doc = "Bit 5 - Force Power Up for IQ Estimation"]
20 #[inline(always)]
21 pub fn iq_est_force_pu(&self) -> IQ_EST_FORCE_PU_R {
22 IQ_EST_FORCE_PU_R::new(((self.bits >> 5) & 1) != 0)
23 }
24}
25#[cfg(feature = "impl-register-debug")]
26impl core::fmt::Debug for R {
27 fn fmt(&self, f: &mut core::fmt::Formatter) -> core::fmt::Result {
28 f.debug_struct("GEN_CTRL")
29 .field("iq_est_force_pu", &self.iq_est_force_pu())
30 .field("iq_est_force_pd", &self.iq_est_force_pd())
31 .finish()
32 }
33}
34impl W {
35 #[doc = "Bit 4 - Force Power Down for IQ Estimation"]
36 #[inline(always)]
37 pub fn iq_est_force_pd(&mut self) -> IQ_EST_FORCE_PD_W<GEN_CTRL_SPEC> {
38 IQ_EST_FORCE_PD_W::new(self, 4)
39 }
40 #[doc = "Bit 5 - Force Power Up for IQ Estimation"]
41 #[inline(always)]
42 pub fn iq_est_force_pu(&mut self) -> IQ_EST_FORCE_PU_W<GEN_CTRL_SPEC> {
43 IQ_EST_FORCE_PU_W::new(self, 5)
44 }
45}
46#[doc = "FE General Control Register\n\nYou can [`read`](crate::Reg::read) this register and get [`gen_ctrl::R`](R). You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`gen_ctrl::W`](W). You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api)."]
47pub struct GEN_CTRL_SPEC;
48impl crate::RegisterSpec for GEN_CTRL_SPEC {
49 type Ux = u8;
50}
51#[doc = "`read()` method returns [`gen_ctrl::R`](R) reader structure"]
52impl crate::Readable for GEN_CTRL_SPEC {}
53#[doc = "`write(|w| ..)` method takes [`gen_ctrl::W`](W) writer structure"]
54impl crate::Writable for GEN_CTRL_SPEC {
55 type Safety = crate::Unsafe;
56 const ZERO_TO_MODIFY_FIELDS_BITMAP: u8 = 0;
57 const ONE_TO_MODIFY_FIELDS_BITMAP: u8 = 0;
58}
59#[doc = "`reset()` method sets GEN_CTRL to value 0"]
60impl crate::Resettable for GEN_CTRL_SPEC {
61 const RESET_VALUE: u8 = 0;
62}