rp2040_pac/pio0/
flevel.rs

1#[doc = "Register `FLEVEL` reader"]
2pub type R = crate::R<FLEVEL_SPEC>;
3#[doc = "Field `TX0` reader - "]
4pub type TX0_R = crate::FieldReader;
5#[doc = "Field `RX0` reader - "]
6pub type RX0_R = crate::FieldReader;
7#[doc = "Field `TX1` reader - "]
8pub type TX1_R = crate::FieldReader;
9#[doc = "Field `RX1` reader - "]
10pub type RX1_R = crate::FieldReader;
11#[doc = "Field `TX2` reader - "]
12pub type TX2_R = crate::FieldReader;
13#[doc = "Field `RX2` reader - "]
14pub type RX2_R = crate::FieldReader;
15#[doc = "Field `TX3` reader - "]
16pub type TX3_R = crate::FieldReader;
17#[doc = "Field `RX3` reader - "]
18pub type RX3_R = crate::FieldReader;
19impl R {
20    #[doc = "Bits 0:3"]
21    #[inline(always)]
22    pub fn tx0(&self) -> TX0_R {
23        TX0_R::new((self.bits & 0x0f) as u8)
24    }
25    #[doc = "Bits 4:7"]
26    #[inline(always)]
27    pub fn rx0(&self) -> RX0_R {
28        RX0_R::new(((self.bits >> 4) & 0x0f) as u8)
29    }
30    #[doc = "Bits 8:11"]
31    #[inline(always)]
32    pub fn tx1(&self) -> TX1_R {
33        TX1_R::new(((self.bits >> 8) & 0x0f) as u8)
34    }
35    #[doc = "Bits 12:15"]
36    #[inline(always)]
37    pub fn rx1(&self) -> RX1_R {
38        RX1_R::new(((self.bits >> 12) & 0x0f) as u8)
39    }
40    #[doc = "Bits 16:19"]
41    #[inline(always)]
42    pub fn tx2(&self) -> TX2_R {
43        TX2_R::new(((self.bits >> 16) & 0x0f) as u8)
44    }
45    #[doc = "Bits 20:23"]
46    #[inline(always)]
47    pub fn rx2(&self) -> RX2_R {
48        RX2_R::new(((self.bits >> 20) & 0x0f) as u8)
49    }
50    #[doc = "Bits 24:27"]
51    #[inline(always)]
52    pub fn tx3(&self) -> TX3_R {
53        TX3_R::new(((self.bits >> 24) & 0x0f) as u8)
54    }
55    #[doc = "Bits 28:31"]
56    #[inline(always)]
57    pub fn rx3(&self) -> RX3_R {
58        RX3_R::new(((self.bits >> 28) & 0x0f) as u8)
59    }
60}
61#[doc = "FIFO levels  
62
63You can [`read`](crate::generic::Reg::read) this register and get [`flevel::R`](R).  See [API](https://docs.rs/svd2rust/#read--modify--write-api)."]
64pub struct FLEVEL_SPEC;
65impl crate::RegisterSpec for FLEVEL_SPEC {
66    type Ux = u32;
67}
68#[doc = "`read()` method returns [`flevel::R`](R) reader structure"]
69impl crate::Readable for FLEVEL_SPEC {}
70#[doc = "`reset()` method sets FLEVEL to value 0"]
71impl crate::Resettable for FLEVEL_SPEC {
72    const RESET_VALUE: u32 = 0;
73}