mimxrt685s_pac/spi0/
fifointenclr.rs1#[doc = "Register `FIFOINTENCLR` reader"]
2pub type R = crate::R<FifointenclrSpec>;
3#[doc = "Register `FIFOINTENCLR` writer"]
4pub type W = crate::W<FifointenclrSpec>;
5#[doc = "Field `TXERR` reader - Writing one clears the corresponding bits in the FIFOINTENSET register."]
6pub type TxerrR = crate::BitReader;
7#[doc = "Field `TXERR` writer - Writing one clears the corresponding bits in the FIFOINTENSET register."]
8pub type TxerrW<'a, REG> = crate::BitWriter<'a, REG>;
9#[doc = "Field `RXERR` reader - Writing one clears the corresponding bits in the FIFOINTENSET register."]
10pub type RxerrR = crate::BitReader;
11#[doc = "Field `RXERR` writer - Writing one clears the corresponding bits in the FIFOINTENSET register."]
12pub type RxerrW<'a, REG> = crate::BitWriter<'a, REG>;
13#[doc = "Field `TXLVL` reader - Writing one clears the corresponding bits in the FIFOINTENSET register."]
14pub type TxlvlR = crate::BitReader;
15#[doc = "Field `TXLVL` writer - Writing one clears the corresponding bits in the FIFOINTENSET register."]
16pub type TxlvlW<'a, REG> = crate::BitWriter<'a, REG>;
17#[doc = "Field `RXLVL` reader - Writing one clears the corresponding bits in the FIFOINTENSET register."]
18pub type RxlvlR = crate::BitReader;
19#[doc = "Field `RXLVL` writer - Writing one clears the corresponding bits in the FIFOINTENSET register."]
20pub type RxlvlW<'a, REG> = crate::BitWriter<'a, REG>;
21impl R {
22 #[doc = "Bit 0 - Writing one clears the corresponding bits in the FIFOINTENSET register."]
23 #[inline(always)]
24 pub fn txerr(&self) -> TxerrR {
25 TxerrR::new((self.bits & 1) != 0)
26 }
27 #[doc = "Bit 1 - Writing one clears the corresponding bits in the FIFOINTENSET register."]
28 #[inline(always)]
29 pub fn rxerr(&self) -> RxerrR {
30 RxerrR::new(((self.bits >> 1) & 1) != 0)
31 }
32 #[doc = "Bit 2 - Writing one clears the corresponding bits in the FIFOINTENSET register."]
33 #[inline(always)]
34 pub fn txlvl(&self) -> TxlvlR {
35 TxlvlR::new(((self.bits >> 2) & 1) != 0)
36 }
37 #[doc = "Bit 3 - Writing one clears the corresponding bits in the FIFOINTENSET register."]
38 #[inline(always)]
39 pub fn rxlvl(&self) -> RxlvlR {
40 RxlvlR::new(((self.bits >> 3) & 1) != 0)
41 }
42}
43#[cfg(feature = "debug")]
44impl core::fmt::Debug for R {
45 fn fmt(&self, f: &mut core::fmt::Formatter) -> core::fmt::Result {
46 f.debug_struct("FIFOINTENCLR")
47 .field("txerr", &self.txerr())
48 .field("rxerr", &self.rxerr())
49 .field("txlvl", &self.txlvl())
50 .field("rxlvl", &self.rxlvl())
51 .finish()
52 }
53}
54impl W {
55 #[doc = "Bit 0 - Writing one clears the corresponding bits in the FIFOINTENSET register."]
56 #[inline(always)]
57 pub fn txerr(&mut self) -> TxerrW<FifointenclrSpec> {
58 TxerrW::new(self, 0)
59 }
60 #[doc = "Bit 1 - Writing one clears the corresponding bits in the FIFOINTENSET register."]
61 #[inline(always)]
62 pub fn rxerr(&mut self) -> RxerrW<FifointenclrSpec> {
63 RxerrW::new(self, 1)
64 }
65 #[doc = "Bit 2 - Writing one clears the corresponding bits in the FIFOINTENSET register."]
66 #[inline(always)]
67 pub fn txlvl(&mut self) -> TxlvlW<FifointenclrSpec> {
68 TxlvlW::new(self, 2)
69 }
70 #[doc = "Bit 3 - Writing one clears the corresponding bits in the FIFOINTENSET register."]
71 #[inline(always)]
72 pub fn rxlvl(&mut self) -> RxlvlW<FifointenclrSpec> {
73 RxlvlW::new(self, 3)
74 }
75}
76#[doc = "FIFO interrupt enable clear (disable) and read register.\n\nYou can [`read`](crate::Reg::read) this register and get [`fifointenclr::R`](R). You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`fifointenclr::W`](W). You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api)."]
77pub struct FifointenclrSpec;
78impl crate::RegisterSpec for FifointenclrSpec {
79 type Ux = u32;
80}
81#[doc = "`read()` method returns [`fifointenclr::R`](R) reader structure"]
82impl crate::Readable for FifointenclrSpec {}
83#[doc = "`write(|w| ..)` method takes [`fifointenclr::W`](W) writer structure"]
84impl crate::Writable for FifointenclrSpec {
85 type Safety = crate::Unsafe;
86 const ZERO_TO_MODIFY_FIELDS_BITMAP: u32 = 0;
87 const ONE_TO_MODIFY_FIELDS_BITMAP: u32 = 0;
88}
89#[doc = "`reset()` method sets FIFOINTENCLR to value 0"]
90impl crate::Resettable for FifointenclrSpec {
91 const RESET_VALUE: u32 = 0;
92}