bl702_pac/ir/
irrx_int_sts.rs1#[doc = "Register `irrx_int_sts` reader"]
2pub struct R(crate::R<IRRX_INT_STS_SPEC>);
3impl core::ops::Deref for R {
4 type Target = crate::R<IRRX_INT_STS_SPEC>;
5 #[inline(always)]
6 fn deref(&self) -> &Self::Target {
7 &self.0
8 }
9}
10impl From<crate::R<IRRX_INT_STS_SPEC>> for R {
11 #[inline(always)]
12 fn from(reader: crate::R<IRRX_INT_STS_SPEC>) -> Self {
13 R(reader)
14 }
15}
16#[doc = "Register `irrx_int_sts` writer"]
17pub struct W(crate::W<IRRX_INT_STS_SPEC>);
18impl core::ops::Deref for W {
19 type Target = crate::W<IRRX_INT_STS_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<IRRX_INT_STS_SPEC>> for W {
32 #[inline(always)]
33 fn from(writer: crate::W<IRRX_INT_STS_SPEC>) -> Self {
34 W(writer)
35 }
36}
37#[doc = "Field `irrx_end_int` reader - "]
38pub type IRRX_END_INT_R = crate::BitReader<bool>;
39#[doc = "Field `irrx_end_int` writer - "]
40pub type IRRX_END_INT_W<'a, const O: u8> = crate::BitWriter<'a, u32, IRRX_INT_STS_SPEC, bool, O>;
41#[doc = "Field `cr_irrx_end_mask` reader - "]
42pub type CR_IRRX_END_MASK_R = crate::BitReader<bool>;
43#[doc = "Field `cr_irrx_end_mask` writer - "]
44pub type CR_IRRX_END_MASK_W<'a, const O: u8> =
45 crate::BitWriter<'a, u32, IRRX_INT_STS_SPEC, bool, O>;
46#[doc = "Field `cr_irrx_end_clr` reader - "]
47pub type CR_IRRX_END_CLR_R = crate::BitReader<bool>;
48#[doc = "Field `cr_irrx_end_clr` writer - "]
49pub type CR_IRRX_END_CLR_W<'a, const O: u8> = crate::BitWriter<'a, u32, IRRX_INT_STS_SPEC, bool, O>;
50#[doc = "Field `cr_irrx_end_en` reader - "]
51pub type CR_IRRX_END_EN_R = crate::BitReader<bool>;
52#[doc = "Field `cr_irrx_end_en` writer - "]
53pub type CR_IRRX_END_EN_W<'a, const O: u8> = crate::BitWriter<'a, u32, IRRX_INT_STS_SPEC, bool, O>;
54impl R {
55 #[doc = "Bit 0"]
56 #[inline(always)]
57 pub fn irrx_end_int(&self) -> IRRX_END_INT_R {
58 IRRX_END_INT_R::new((self.bits & 1) != 0)
59 }
60 #[doc = "Bit 8"]
61 #[inline(always)]
62 pub fn cr_irrx_end_mask(&self) -> CR_IRRX_END_MASK_R {
63 CR_IRRX_END_MASK_R::new(((self.bits >> 8) & 1) != 0)
64 }
65 #[doc = "Bit 16"]
66 #[inline(always)]
67 pub fn cr_irrx_end_clr(&self) -> CR_IRRX_END_CLR_R {
68 CR_IRRX_END_CLR_R::new(((self.bits >> 16) & 1) != 0)
69 }
70 #[doc = "Bit 24"]
71 #[inline(always)]
72 pub fn cr_irrx_end_en(&self) -> CR_IRRX_END_EN_R {
73 CR_IRRX_END_EN_R::new(((self.bits >> 24) & 1) != 0)
74 }
75}
76impl W {
77 #[doc = "Bit 0"]
78 #[inline(always)]
79 #[must_use]
80 pub fn irrx_end_int(&mut self) -> IRRX_END_INT_W<0> {
81 IRRX_END_INT_W::new(self)
82 }
83 #[doc = "Bit 8"]
84 #[inline(always)]
85 #[must_use]
86 pub fn cr_irrx_end_mask(&mut self) -> CR_IRRX_END_MASK_W<8> {
87 CR_IRRX_END_MASK_W::new(self)
88 }
89 #[doc = "Bit 16"]
90 #[inline(always)]
91 #[must_use]
92 pub fn cr_irrx_end_clr(&mut self) -> CR_IRRX_END_CLR_W<16> {
93 CR_IRRX_END_CLR_W::new(self)
94 }
95 #[doc = "Bit 24"]
96 #[inline(always)]
97 #[must_use]
98 pub fn cr_irrx_end_en(&mut self) -> CR_IRRX_END_EN_W<24> {
99 CR_IRRX_END_EN_W::new(self)
100 }
101 #[doc = "Writes raw bits to the register."]
102 #[inline(always)]
103 pub unsafe fn bits(&mut self, bits: u32) -> &mut Self {
104 self.0.bits(bits);
105 self
106 }
107}
108#[doc = "irrx_int_sts.\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 [irrx_int_sts](index.html) module"]
109pub struct IRRX_INT_STS_SPEC;
110impl crate::RegisterSpec for IRRX_INT_STS_SPEC {
111 type Ux = u32;
112}
113#[doc = "`read()` method returns [irrx_int_sts::R](R) reader structure"]
114impl crate::Readable for IRRX_INT_STS_SPEC {
115 type Reader = R;
116}
117#[doc = "`write(|w| ..)` method takes [irrx_int_sts::W](W) writer structure"]
118impl crate::Writable for IRRX_INT_STS_SPEC {
119 type Writer = W;
120 const ZERO_TO_MODIFY_FIELDS_BITMAP: Self::Ux = 0;
121 const ONE_TO_MODIFY_FIELDS_BITMAP: Self::Ux = 0;
122}
123#[doc = "`reset()` method sets irrx_int_sts to value 0"]
124impl crate::Resettable for IRRX_INT_STS_SPEC {
125 const RESET_VALUE: Self::Ux = 0;
126}