esp32c3/uhci0/
int_st.rs

1#[doc = "Register `INT_ST` reader"]
2pub type R = crate::R<INT_ST_SPEC>;
3#[doc = "Field `RX_START` reader - a"]
4pub type RX_START_R = crate::BitReader;
5#[doc = "Field `TX_START` reader - a"]
6pub type TX_START_R = crate::BitReader;
7#[doc = "Field `RX_HUNG` reader - a"]
8pub type RX_HUNG_R = crate::BitReader;
9#[doc = "Field `TX_HUNG` reader - a"]
10pub type TX_HUNG_R = crate::BitReader;
11#[doc = "Field `SEND_S_REG_Q` reader - a"]
12pub type SEND_S_REG_Q_R = crate::BitReader;
13#[doc = "Field `SEND_A_REG_Q` reader - a"]
14pub type SEND_A_REG_Q_R = crate::BitReader;
15#[doc = "Field `OUTLINK_EOF_ERR` reader - a"]
16pub type OUTLINK_EOF_ERR_R = crate::BitReader;
17#[doc = "Field `APP_CTRL0` reader - a"]
18pub type APP_CTRL0_R = crate::BitReader;
19#[doc = "Field `APP_CTRL1` reader - a"]
20pub type APP_CTRL1_R = crate::BitReader;
21impl R {
22    #[doc = "Bit 0 - a"]
23    #[inline(always)]
24    pub fn rx_start(&self) -> RX_START_R {
25        RX_START_R::new((self.bits & 1) != 0)
26    }
27    #[doc = "Bit 1 - a"]
28    #[inline(always)]
29    pub fn tx_start(&self) -> TX_START_R {
30        TX_START_R::new(((self.bits >> 1) & 1) != 0)
31    }
32    #[doc = "Bit 2 - a"]
33    #[inline(always)]
34    pub fn rx_hung(&self) -> RX_HUNG_R {
35        RX_HUNG_R::new(((self.bits >> 2) & 1) != 0)
36    }
37    #[doc = "Bit 3 - a"]
38    #[inline(always)]
39    pub fn tx_hung(&self) -> TX_HUNG_R {
40        TX_HUNG_R::new(((self.bits >> 3) & 1) != 0)
41    }
42    #[doc = "Bit 4 - a"]
43    #[inline(always)]
44    pub fn send_s_reg_q(&self) -> SEND_S_REG_Q_R {
45        SEND_S_REG_Q_R::new(((self.bits >> 4) & 1) != 0)
46    }
47    #[doc = "Bit 5 - a"]
48    #[inline(always)]
49    pub fn send_a_reg_q(&self) -> SEND_A_REG_Q_R {
50        SEND_A_REG_Q_R::new(((self.bits >> 5) & 1) != 0)
51    }
52    #[doc = "Bit 6 - a"]
53    #[inline(always)]
54    pub fn outlink_eof_err(&self) -> OUTLINK_EOF_ERR_R {
55        OUTLINK_EOF_ERR_R::new(((self.bits >> 6) & 1) != 0)
56    }
57    #[doc = "Bit 7 - a"]
58    #[inline(always)]
59    pub fn app_ctrl0(&self) -> APP_CTRL0_R {
60        APP_CTRL0_R::new(((self.bits >> 7) & 1) != 0)
61    }
62    #[doc = "Bit 8 - a"]
63    #[inline(always)]
64    pub fn app_ctrl1(&self) -> APP_CTRL1_R {
65        APP_CTRL1_R::new(((self.bits >> 8) & 1) != 0)
66    }
67}
68#[cfg(feature = "impl-register-debug")]
69impl core::fmt::Debug for R {
70    fn fmt(&self, f: &mut core::fmt::Formatter) -> core::fmt::Result {
71        f.debug_struct("INT_ST")
72            .field("rx_start", &self.rx_start())
73            .field("tx_start", &self.tx_start())
74            .field("rx_hung", &self.rx_hung())
75            .field("tx_hung", &self.tx_hung())
76            .field("send_s_reg_q", &self.send_s_reg_q())
77            .field("send_a_reg_q", &self.send_a_reg_q())
78            .field("outlink_eof_err", &self.outlink_eof_err())
79            .field("app_ctrl0", &self.app_ctrl0())
80            .field("app_ctrl1", &self.app_ctrl1())
81            .finish()
82    }
83}
84#[doc = "a\n\nYou can [`read`](crate::Reg::read) this register and get [`int_st::R`](R). See [API](https://docs.rs/svd2rust/#read--modify--write-api)."]
85pub struct INT_ST_SPEC;
86impl crate::RegisterSpec for INT_ST_SPEC {
87    type Ux = u32;
88}
89#[doc = "`read()` method returns [`int_st::R`](R) reader structure"]
90impl crate::Readable for INT_ST_SPEC {}
91#[doc = "`reset()` method sets INT_ST to value 0"]
92impl crate::Resettable for INT_ST_SPEC {}