esp32s2/copy_dma/
int_st.rs1#[doc = "Register `INT_ST` reader"]
2pub type R = crate::R<INT_ST_SPEC>;
3#[doc = "Field `IN_DONE` reader - This is the masked interrupt bit for IN_DONE interrupt when IN_DONE is enabled."]
4pub type IN_DONE_R = crate::BitReader;
5#[doc = "Field `IN_SUC_EOF` reader - This is the masked interrupt bit for IN_SUC_EOF interrupt when IN_SUC_EOF is enabled."]
6pub type IN_SUC_EOF_R = crate::BitReader;
7#[doc = "Field `OUT_DONE` reader - This is the masked interrupt bit for OUT_DONE interrupt when OUT_DONE is enabled."]
8pub type OUT_DONE_R = crate::BitReader;
9#[doc = "Field `OUT_EOF` reader - This is the masked interrupt bit for OUT_EOF interrupt when OUT_EOF is enabled."]
10pub type OUT_EOF_R = crate::BitReader;
11#[doc = "Field `IN_DSCR_ERR` reader - This is the masked interrupt bit for IN_DSCR_ERR interrupt when IN_DSCR_ERR is enabled."]
12pub type IN_DSCR_ERR_R = crate::BitReader;
13#[doc = "Field `OUT_DSCR_ERR` reader - This is the masked interrupt bit for OUT_DSCR_ERR interrupt when OUT_DSCR_ERR is enabled."]
14pub type OUT_DSCR_ERR_R = crate::BitReader;
15#[doc = "Field `IN_DSCR_EMPTY` reader - This is the masked interrupt bit for IN_DSCR_EMPTY interrupt when IN_DSCR_EMPTY is enabled."]
16pub type IN_DSCR_EMPTY_R = crate::BitReader;
17#[doc = "Field `OUT_TOTAL_EOF` reader - This is the masked interrupt bit for OUT_TOTAL_EOF interrupt when OUT_TOTAL_EOF is enabled."]
18pub type OUT_TOTAL_EOF_R = crate::BitReader;
19impl R {
20 #[doc = "Bit 0 - This is the masked interrupt bit for IN_DONE interrupt when IN_DONE is enabled."]
21 #[inline(always)]
22 pub fn in_done(&self) -> IN_DONE_R {
23 IN_DONE_R::new((self.bits & 1) != 0)
24 }
25 #[doc = "Bit 1 - This is the masked interrupt bit for IN_SUC_EOF interrupt when IN_SUC_EOF is enabled."]
26 #[inline(always)]
27 pub fn in_suc_eof(&self) -> IN_SUC_EOF_R {
28 IN_SUC_EOF_R::new(((self.bits >> 1) & 1) != 0)
29 }
30 #[doc = "Bit 2 - This is the masked interrupt bit for OUT_DONE interrupt when OUT_DONE is enabled."]
31 #[inline(always)]
32 pub fn out_done(&self) -> OUT_DONE_R {
33 OUT_DONE_R::new(((self.bits >> 2) & 1) != 0)
34 }
35 #[doc = "Bit 3 - This is the masked interrupt bit for OUT_EOF interrupt when OUT_EOF is enabled."]
36 #[inline(always)]
37 pub fn out_eof(&self) -> OUT_EOF_R {
38 OUT_EOF_R::new(((self.bits >> 3) & 1) != 0)
39 }
40 #[doc = "Bit 4 - This is the masked interrupt bit for IN_DSCR_ERR interrupt when IN_DSCR_ERR is enabled."]
41 #[inline(always)]
42 pub fn in_dscr_err(&self) -> IN_DSCR_ERR_R {
43 IN_DSCR_ERR_R::new(((self.bits >> 4) & 1) != 0)
44 }
45 #[doc = "Bit 5 - This is the masked interrupt bit for OUT_DSCR_ERR interrupt when OUT_DSCR_ERR is enabled."]
46 #[inline(always)]
47 pub fn out_dscr_err(&self) -> OUT_DSCR_ERR_R {
48 OUT_DSCR_ERR_R::new(((self.bits >> 5) & 1) != 0)
49 }
50 #[doc = "Bit 6 - This is the masked interrupt bit for IN_DSCR_EMPTY interrupt when IN_DSCR_EMPTY is enabled."]
51 #[inline(always)]
52 pub fn in_dscr_empty(&self) -> IN_DSCR_EMPTY_R {
53 IN_DSCR_EMPTY_R::new(((self.bits >> 6) & 1) != 0)
54 }
55 #[doc = "Bit 7 - This is the masked interrupt bit for OUT_TOTAL_EOF interrupt when OUT_TOTAL_EOF is enabled."]
56 #[inline(always)]
57 pub fn out_total_eof(&self) -> OUT_TOTAL_EOF_R {
58 OUT_TOTAL_EOF_R::new(((self.bits >> 7) & 1) != 0)
59 }
60}
61#[cfg(feature = "impl-register-debug")]
62impl core::fmt::Debug for R {
63 fn fmt(&self, f: &mut core::fmt::Formatter) -> core::fmt::Result {
64 f.debug_struct("INT_ST")
65 .field("in_done", &self.in_done())
66 .field("in_suc_eof", &self.in_suc_eof())
67 .field("out_done", &self.out_done())
68 .field("out_eof", &self.out_eof())
69 .field("in_dscr_err", &self.in_dscr_err())
70 .field("out_dscr_err", &self.out_dscr_err())
71 .field("in_dscr_empty", &self.in_dscr_empty())
72 .field("out_total_eof", &self.out_total_eof())
73 .finish()
74 }
75}
76#[doc = "Masked interrupt status\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)."]
77pub struct INT_ST_SPEC;
78impl crate::RegisterSpec for INT_ST_SPEC {
79 type Ux = u32;
80}
81#[doc = "`read()` method returns [`int_st::R`](R) reader structure"]
82impl crate::Readable for INT_ST_SPEC {}
83#[doc = "`reset()` method sets INT_ST to value 0"]
84impl crate::Resettable for INT_ST_SPEC {}