bl602_pac/rf/
rf_fsm_ctrl1.rs

1#[doc = "Register `rf_fsm_ctrl1` reader"]
2pub struct R(crate::R<RF_FSM_CTRL1_SPEC>);
3impl core::ops::Deref for R {
4    type Target = crate::R<RF_FSM_CTRL1_SPEC>;
5    #[inline(always)]
6    fn deref(&self) -> &Self::Target {
7        &self.0
8    }
9}
10impl From<crate::R<RF_FSM_CTRL1_SPEC>> for R {
11    #[inline(always)]
12    fn from(reader: crate::R<RF_FSM_CTRL1_SPEC>) -> Self {
13        R(reader)
14    }
15}
16#[doc = "Register `rf_fsm_ctrl1` writer"]
17pub struct W(crate::W<RF_FSM_CTRL1_SPEC>);
18impl core::ops::Deref for W {
19    type Target = crate::W<RF_FSM_CTRL1_SPEC>;
20    #[inline(always)]
21    fn deref(&self) -> &Self::Target {
22        &self.0
23    }
24}
25impl core::ops::DerefMut for W {
26    #[inline(always)]
27    fn deref_mut(&mut self) -> &mut Self::Target {
28        &mut self.0
29    }
30}
31impl From<crate::W<RF_FSM_CTRL1_SPEC>> for W {
32    #[inline(always)]
33    fn from(writer: crate::W<RF_FSM_CTRL1_SPEC>) -> Self {
34        W(writer)
35    }
36}
37#[doc = "Field `rf_fsm_lo_time` reader - "]
38pub type RF_FSM_LO_TIME_R = crate::FieldReader<u16, u16>;
39#[doc = "Field `rf_fsm_lo_time` writer - "]
40pub type RF_FSM_LO_TIME_W<'a, const O: u8> =
41    crate::FieldWriter<'a, u32, RF_FSM_CTRL1_SPEC, u16, u16, 16, O>;
42#[doc = "Field `rf_fsm_lo_rdy` reader - "]
43pub type RF_FSM_LO_RDY_R = crate::BitReader<bool>;
44#[doc = "Field `rf_fsm_lo_rdy` writer - "]
45pub type RF_FSM_LO_RDY_W<'a, const O: u8> = crate::BitWriter<'a, u32, RF_FSM_CTRL1_SPEC, bool, O>;
46#[doc = "Field `rf_fsm_lo_rdy_rst` reader - "]
47pub type RF_FSM_LO_RDY_RST_R = crate::BitReader<bool>;
48#[doc = "Field `rf_fsm_lo_rdy_rst` writer - "]
49pub type RF_FSM_LO_RDY_RST_W<'a, const O: u8> =
50    crate::BitWriter<'a, u32, RF_FSM_CTRL1_SPEC, bool, O>;
51#[doc = "Field `rf_fsm_lo_rdy_4s_1` reader - "]
52pub type RF_FSM_LO_RDY_4S_1_R = crate::BitReader<bool>;
53#[doc = "Field `rf_fsm_lo_rdy_4s_1` writer - "]
54pub type RF_FSM_LO_RDY_4S_1_W<'a, const O: u8> =
55    crate::BitWriter<'a, u32, RF_FSM_CTRL1_SPEC, bool, O>;
56#[doc = "Field `rf_fsm_lo_rdy_sbclr` reader - "]
57pub type RF_FSM_LO_RDY_SBCLR_R = crate::BitReader<bool>;
58#[doc = "Field `rf_fsm_lo_rdy_sbclr` writer - "]
59pub type RF_FSM_LO_RDY_SBCLR_W<'a, const O: u8> =
60    crate::BitWriter<'a, u32, RF_FSM_CTRL1_SPEC, bool, O>;
61#[doc = "Field `rf_fsm_pu_pa_dly_n` reader - "]
62pub type RF_FSM_PU_PA_DLY_N_R = crate::FieldReader<u16, u16>;
63#[doc = "Field `rf_fsm_pu_pa_dly_n` writer - "]
64pub type RF_FSM_PU_PA_DLY_N_W<'a, const O: u8> =
65    crate::FieldWriter<'a, u32, RF_FSM_CTRL1_SPEC, u16, u16, 10, O>;
66impl R {
67    #[doc = "Bits 0:15"]
68    #[inline(always)]
69    pub fn rf_fsm_lo_time(&self) -> RF_FSM_LO_TIME_R {
70        RF_FSM_LO_TIME_R::new((self.bits & 0xffff) as u16)
71    }
72    #[doc = "Bit 16"]
73    #[inline(always)]
74    pub fn rf_fsm_lo_rdy(&self) -> RF_FSM_LO_RDY_R {
75        RF_FSM_LO_RDY_R::new(((self.bits >> 16) & 1) != 0)
76    }
77    #[doc = "Bit 17"]
78    #[inline(always)]
79    pub fn rf_fsm_lo_rdy_rst(&self) -> RF_FSM_LO_RDY_RST_R {
80        RF_FSM_LO_RDY_RST_R::new(((self.bits >> 17) & 1) != 0)
81    }
82    #[doc = "Bit 18"]
83    #[inline(always)]
84    pub fn rf_fsm_lo_rdy_4s_1(&self) -> RF_FSM_LO_RDY_4S_1_R {
85        RF_FSM_LO_RDY_4S_1_R::new(((self.bits >> 18) & 1) != 0)
86    }
87    #[doc = "Bit 19"]
88    #[inline(always)]
89    pub fn rf_fsm_lo_rdy_sbclr(&self) -> RF_FSM_LO_RDY_SBCLR_R {
90        RF_FSM_LO_RDY_SBCLR_R::new(((self.bits >> 19) & 1) != 0)
91    }
92    #[doc = "Bits 20:29"]
93    #[inline(always)]
94    pub fn rf_fsm_pu_pa_dly_n(&self) -> RF_FSM_PU_PA_DLY_N_R {
95        RF_FSM_PU_PA_DLY_N_R::new(((self.bits >> 20) & 0x03ff) as u16)
96    }
97}
98impl W {
99    #[doc = "Bits 0:15"]
100    #[inline(always)]
101    #[must_use]
102    pub fn rf_fsm_lo_time(&mut self) -> RF_FSM_LO_TIME_W<0> {
103        RF_FSM_LO_TIME_W::new(self)
104    }
105    #[doc = "Bit 16"]
106    #[inline(always)]
107    #[must_use]
108    pub fn rf_fsm_lo_rdy(&mut self) -> RF_FSM_LO_RDY_W<16> {
109        RF_FSM_LO_RDY_W::new(self)
110    }
111    #[doc = "Bit 17"]
112    #[inline(always)]
113    #[must_use]
114    pub fn rf_fsm_lo_rdy_rst(&mut self) -> RF_FSM_LO_RDY_RST_W<17> {
115        RF_FSM_LO_RDY_RST_W::new(self)
116    }
117    #[doc = "Bit 18"]
118    #[inline(always)]
119    #[must_use]
120    pub fn rf_fsm_lo_rdy_4s_1(&mut self) -> RF_FSM_LO_RDY_4S_1_W<18> {
121        RF_FSM_LO_RDY_4S_1_W::new(self)
122    }
123    #[doc = "Bit 19"]
124    #[inline(always)]
125    #[must_use]
126    pub fn rf_fsm_lo_rdy_sbclr(&mut self) -> RF_FSM_LO_RDY_SBCLR_W<19> {
127        RF_FSM_LO_RDY_SBCLR_W::new(self)
128    }
129    #[doc = "Bits 20:29"]
130    #[inline(always)]
131    #[must_use]
132    pub fn rf_fsm_pu_pa_dly_n(&mut self) -> RF_FSM_PU_PA_DLY_N_W<20> {
133        RF_FSM_PU_PA_DLY_N_W::new(self)
134    }
135    #[doc = "Writes raw bits to the register."]
136    #[inline(always)]
137    pub unsafe fn bits(&mut self, bits: u32) -> &mut Self {
138        self.0.bits(bits);
139        self
140    }
141}
142#[doc = "rf_fsm_ctrl1.\n\nThis register you can [`read`](crate::generic::Reg::read), [`write_with_zero`](crate::generic::Reg::write_with_zero), [`reset`](crate::generic::Reg::reset), [`write`](crate::generic::Reg::write), [`modify`](crate::generic::Reg::modify). See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [rf_fsm_ctrl1](index.html) module"]
143pub struct RF_FSM_CTRL1_SPEC;
144impl crate::RegisterSpec for RF_FSM_CTRL1_SPEC {
145    type Ux = u32;
146}
147#[doc = "`read()` method returns [rf_fsm_ctrl1::R](R) reader structure"]
148impl crate::Readable for RF_FSM_CTRL1_SPEC {
149    type Reader = R;
150}
151#[doc = "`write(|w| ..)` method takes [rf_fsm_ctrl1::W](W) writer structure"]
152impl crate::Writable for RF_FSM_CTRL1_SPEC {
153    type Writer = W;
154    const ZERO_TO_MODIFY_FIELDS_BITMAP: Self::Ux = 0;
155    const ONE_TO_MODIFY_FIELDS_BITMAP: Self::Ux = 0;
156}
157#[doc = "`reset()` method sets rf_fsm_ctrl1 to value 0"]
158impl crate::Resettable for RF_FSM_CTRL1_SPEC {
159    const RESET_VALUE: Self::Ux = 0;
160}