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