bl702_pac/sf_ctrl/
sf_if_iahb_12.rs

1#[doc = "Register `sf_if_iahb_12` reader"]
2pub struct R(crate::R<SF_IF_IAHB_12_SPEC>);
3impl core::ops::Deref for R {
4    type Target = crate::R<SF_IF_IAHB_12_SPEC>;
5    #[inline(always)]
6    fn deref(&self) -> &Self::Target {
7        &self.0
8    }
9}
10impl From<crate::R<SF_IF_IAHB_12_SPEC>> for R {
11    #[inline(always)]
12    fn from(reader: crate::R<SF_IF_IAHB_12_SPEC>) -> Self {
13        R(reader)
14    }
15}
16#[doc = "Register `sf_if_iahb_12` writer"]
17pub struct W(crate::W<SF_IF_IAHB_12_SPEC>);
18impl core::ops::Deref for W {
19    type Target = crate::W<SF_IF_IAHB_12_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<SF_IF_IAHB_12_SPEC>> for W {
32    #[inline(always)]
33    fn from(writer: crate::W<SF_IF_IAHB_12_SPEC>) -> Self {
34        W(writer)
35    }
36}
37#[doc = "Field `sf2_clk_sf_rx_inv_sel` reader - "]
38pub type SF2_CLK_SF_RX_INV_SEL_R = crate::BitReader<bool>;
39#[doc = "Field `sf2_clk_sf_rx_inv_sel` writer - "]
40pub type SF2_CLK_SF_RX_INV_SEL_W<'a, const O: u8> =
41    crate::BitWriter<'a, u32, SF_IF_IAHB_12_SPEC, bool, O>;
42#[doc = "Field `sf2_clk_sf_rx_inv_src` reader - "]
43pub type SF2_CLK_SF_RX_INV_SRC_R = crate::BitReader<bool>;
44#[doc = "Field `sf2_clk_sf_rx_inv_src` writer - "]
45pub type SF2_CLK_SF_RX_INV_SRC_W<'a, const O: u8> =
46    crate::BitWriter<'a, u32, SF_IF_IAHB_12_SPEC, bool, O>;
47#[doc = "Field `sf2_clk_out_inv_sel` reader - "]
48pub type SF2_CLK_OUT_INV_SEL_R = crate::BitReader<bool>;
49#[doc = "Field `sf2_clk_out_inv_sel` writer - "]
50pub type SF2_CLK_OUT_INV_SEL_W<'a, const O: u8> =
51    crate::BitWriter<'a, u32, SF_IF_IAHB_12_SPEC, bool, O>;
52#[doc = "Field `sf3_clk_out_inv_sel` reader - "]
53pub type SF3_CLK_OUT_INV_SEL_R = crate::BitReader<bool>;
54#[doc = "Field `sf3_clk_out_inv_sel` writer - "]
55pub type SF3_CLK_OUT_INV_SEL_W<'a, const O: u8> =
56    crate::BitWriter<'a, u32, SF_IF_IAHB_12_SPEC, bool, O>;
57#[doc = "Field `sf2_if_read_dly_n` reader - "]
58pub type SF2_IF_READ_DLY_N_R = crate::FieldReader<u8, u8>;
59#[doc = "Field `sf2_if_read_dly_n` writer - "]
60pub type SF2_IF_READ_DLY_N_W<'a, const O: u8> =
61    crate::FieldWriter<'a, u32, SF_IF_IAHB_12_SPEC, u8, u8, 3, O>;
62#[doc = "Field `sf2_if_read_dly_en` reader - "]
63pub type SF2_IF_READ_DLY_EN_R = crate::BitReader<bool>;
64#[doc = "Field `sf2_if_read_dly_en` writer - "]
65pub type SF2_IF_READ_DLY_EN_W<'a, const O: u8> =
66    crate::BitWriter<'a, u32, SF_IF_IAHB_12_SPEC, bool, O>;
67#[doc = "Field `sf2_if_read_dly_src` reader - "]
68pub type SF2_IF_READ_DLY_SRC_R = crate::BitReader<bool>;
69#[doc = "Field `sf2_if_read_dly_src` writer - "]
70pub type SF2_IF_READ_DLY_SRC_W<'a, const O: u8> =
71    crate::BitWriter<'a, u32, SF_IF_IAHB_12_SPEC, bool, O>;
72impl R {
73    #[doc = "Bit 2"]
74    #[inline(always)]
75    pub fn sf2_clk_sf_rx_inv_sel(&self) -> SF2_CLK_SF_RX_INV_SEL_R {
76        SF2_CLK_SF_RX_INV_SEL_R::new(((self.bits >> 2) & 1) != 0)
77    }
78    #[doc = "Bit 3"]
79    #[inline(always)]
80    pub fn sf2_clk_sf_rx_inv_src(&self) -> SF2_CLK_SF_RX_INV_SRC_R {
81        SF2_CLK_SF_RX_INV_SRC_R::new(((self.bits >> 3) & 1) != 0)
82    }
83    #[doc = "Bit 4"]
84    #[inline(always)]
85    pub fn sf2_clk_out_inv_sel(&self) -> SF2_CLK_OUT_INV_SEL_R {
86        SF2_CLK_OUT_INV_SEL_R::new(((self.bits >> 4) & 1) != 0)
87    }
88    #[doc = "Bit 5"]
89    #[inline(always)]
90    pub fn sf3_clk_out_inv_sel(&self) -> SF3_CLK_OUT_INV_SEL_R {
91        SF3_CLK_OUT_INV_SEL_R::new(((self.bits >> 5) & 1) != 0)
92    }
93    #[doc = "Bits 8:10"]
94    #[inline(always)]
95    pub fn sf2_if_read_dly_n(&self) -> SF2_IF_READ_DLY_N_R {
96        SF2_IF_READ_DLY_N_R::new(((self.bits >> 8) & 7) as u8)
97    }
98    #[doc = "Bit 11"]
99    #[inline(always)]
100    pub fn sf2_if_read_dly_en(&self) -> SF2_IF_READ_DLY_EN_R {
101        SF2_IF_READ_DLY_EN_R::new(((self.bits >> 11) & 1) != 0)
102    }
103    #[doc = "Bit 12"]
104    #[inline(always)]
105    pub fn sf2_if_read_dly_src(&self) -> SF2_IF_READ_DLY_SRC_R {
106        SF2_IF_READ_DLY_SRC_R::new(((self.bits >> 12) & 1) != 0)
107    }
108}
109impl W {
110    #[doc = "Bit 2"]
111    #[inline(always)]
112    #[must_use]
113    pub fn sf2_clk_sf_rx_inv_sel(&mut self) -> SF2_CLK_SF_RX_INV_SEL_W<2> {
114        SF2_CLK_SF_RX_INV_SEL_W::new(self)
115    }
116    #[doc = "Bit 3"]
117    #[inline(always)]
118    #[must_use]
119    pub fn sf2_clk_sf_rx_inv_src(&mut self) -> SF2_CLK_SF_RX_INV_SRC_W<3> {
120        SF2_CLK_SF_RX_INV_SRC_W::new(self)
121    }
122    #[doc = "Bit 4"]
123    #[inline(always)]
124    #[must_use]
125    pub fn sf2_clk_out_inv_sel(&mut self) -> SF2_CLK_OUT_INV_SEL_W<4> {
126        SF2_CLK_OUT_INV_SEL_W::new(self)
127    }
128    #[doc = "Bit 5"]
129    #[inline(always)]
130    #[must_use]
131    pub fn sf3_clk_out_inv_sel(&mut self) -> SF3_CLK_OUT_INV_SEL_W<5> {
132        SF3_CLK_OUT_INV_SEL_W::new(self)
133    }
134    #[doc = "Bits 8:10"]
135    #[inline(always)]
136    #[must_use]
137    pub fn sf2_if_read_dly_n(&mut self) -> SF2_IF_READ_DLY_N_W<8> {
138        SF2_IF_READ_DLY_N_W::new(self)
139    }
140    #[doc = "Bit 11"]
141    #[inline(always)]
142    #[must_use]
143    pub fn sf2_if_read_dly_en(&mut self) -> SF2_IF_READ_DLY_EN_W<11> {
144        SF2_IF_READ_DLY_EN_W::new(self)
145    }
146    #[doc = "Bit 12"]
147    #[inline(always)]
148    #[must_use]
149    pub fn sf2_if_read_dly_src(&mut self) -> SF2_IF_READ_DLY_SRC_W<12> {
150        SF2_IF_READ_DLY_SRC_W::new(self)
151    }
152    #[doc = "Writes raw bits to the register."]
153    #[inline(always)]
154    pub unsafe fn bits(&mut self, bits: u32) -> &mut Self {
155        self.0.bits(bits);
156        self
157    }
158}
159#[doc = "sf_if_iahb_12.\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 [sf_if_iahb_12](index.html) module"]
160pub struct SF_IF_IAHB_12_SPEC;
161impl crate::RegisterSpec for SF_IF_IAHB_12_SPEC {
162    type Ux = u32;
163}
164#[doc = "`read()` method returns [sf_if_iahb_12::R](R) reader structure"]
165impl crate::Readable for SF_IF_IAHB_12_SPEC {
166    type Reader = R;
167}
168#[doc = "`write(|w| ..)` method takes [sf_if_iahb_12::W](W) writer structure"]
169impl crate::Writable for SF_IF_IAHB_12_SPEC {
170    type Writer = W;
171    const ZERO_TO_MODIFY_FIELDS_BITMAP: Self::Ux = 0;
172    const ONE_TO_MODIFY_FIELDS_BITMAP: Self::Ux = 0;
173}
174#[doc = "`reset()` method sets sf_if_iahb_12 to value 0"]
175impl crate::Resettable for SF_IF_IAHB_12_SPEC {
176    const RESET_VALUE: Self::Ux = 0;
177}