rp2040_pac/pio0/
fstat.rs

1#[doc = "Register `FSTAT` reader"]
2pub type R = crate::R<FSTAT_SPEC>;
3#[doc = "Field `RXFULL` reader - State machine RX FIFO is full"]
4pub type RXFULL_R = crate::FieldReader;
5#[doc = "Field `RXEMPTY` reader - State machine RX FIFO is empty"]
6pub type RXEMPTY_R = crate::FieldReader;
7#[doc = "Field `TXFULL` reader - State machine TX FIFO is full"]
8pub type TXFULL_R = crate::FieldReader;
9#[doc = "Field `TXEMPTY` reader - State machine TX FIFO is empty"]
10pub type TXEMPTY_R = crate::FieldReader;
11impl R {
12    #[doc = "Bits 0:3 - State machine RX FIFO is full"]
13    #[inline(always)]
14    pub fn rxfull(&self) -> RXFULL_R {
15        RXFULL_R::new((self.bits & 0x0f) as u8)
16    }
17    #[doc = "Bits 8:11 - State machine RX FIFO is empty"]
18    #[inline(always)]
19    pub fn rxempty(&self) -> RXEMPTY_R {
20        RXEMPTY_R::new(((self.bits >> 8) & 0x0f) as u8)
21    }
22    #[doc = "Bits 16:19 - State machine TX FIFO is full"]
23    #[inline(always)]
24    pub fn txfull(&self) -> TXFULL_R {
25        TXFULL_R::new(((self.bits >> 16) & 0x0f) as u8)
26    }
27    #[doc = "Bits 24:27 - State machine TX FIFO is empty"]
28    #[inline(always)]
29    pub fn txempty(&self) -> TXEMPTY_R {
30        TXEMPTY_R::new(((self.bits >> 24) & 0x0f) as u8)
31    }
32}
33#[doc = "FIFO status register  
34
35You can [`read`](crate::generic::Reg::read) this register and get [`fstat::R`](R).  See [API](https://docs.rs/svd2rust/#read--modify--write-api)."]
36pub struct FSTAT_SPEC;
37impl crate::RegisterSpec for FSTAT_SPEC {
38    type Ux = u32;
39}
40#[doc = "`read()` method returns [`fstat::R`](R) reader structure"]
41impl crate::Readable for FSTAT_SPEC {}
42#[doc = "`reset()` method sets FSTAT to value 0x0f00_0f00"]
43impl crate::Resettable for FSTAT_SPEC {
44    const RESET_VALUE: u32 = 0x0f00_0f00;
45}