esp32p4/lp_i2s0/
int_raw.rs1#[doc = "Register `INT_RAW` reader"]
2pub type R = crate::R<INT_RAW_SPEC>;
3#[doc = "Field `RX_DONE_INT_RAW` reader - The raw interrupt status bit for the i2s_rx_done_int interrupt"]
4pub type RX_DONE_INT_RAW_R = crate::BitReader;
5#[doc = "Field `RX_HUNG_INT_RAW` reader - The raw interrupt status bit for the i2s_rx_hung_int interrupt"]
6pub type RX_HUNG_INT_RAW_R = crate::BitReader;
7#[doc = "Field `RX_FIFOMEM_UDF_INT_RAW` reader - The raw interrupt status bit for the i2s_rx_fifomem_udf_int interrupt"]
8pub type RX_FIFOMEM_UDF_INT_RAW_R = crate::BitReader;
9#[doc = "Field `VAD_DONE_INT_RAW` reader - The raw interrupt status bit for the vad_done_int interrupt"]
10pub type VAD_DONE_INT_RAW_R = crate::BitReader;
11#[doc = "Field `VAD_RESET_DONE_INT_RAW` reader - The raw interrupt status bit for the vad_reset_done_int interrupt"]
12pub type VAD_RESET_DONE_INT_RAW_R = crate::BitReader;
13#[doc = "Field `RX_MEM_THRESHOLD_INT_RAW` reader - The raw interrupt status bit for the rx_mem_threshold_int interrupt"]
14pub type RX_MEM_THRESHOLD_INT_RAW_R = crate::BitReader;
15impl R {
16 #[doc = "Bit 0 - The raw interrupt status bit for the i2s_rx_done_int interrupt"]
17 #[inline(always)]
18 pub fn rx_done_int_raw(&self) -> RX_DONE_INT_RAW_R {
19 RX_DONE_INT_RAW_R::new((self.bits & 1) != 0)
20 }
21 #[doc = "Bit 1 - The raw interrupt status bit for the i2s_rx_hung_int interrupt"]
22 #[inline(always)]
23 pub fn rx_hung_int_raw(&self) -> RX_HUNG_INT_RAW_R {
24 RX_HUNG_INT_RAW_R::new(((self.bits >> 1) & 1) != 0)
25 }
26 #[doc = "Bit 2 - The raw interrupt status bit for the i2s_rx_fifomem_udf_int interrupt"]
27 #[inline(always)]
28 pub fn rx_fifomem_udf_int_raw(&self) -> RX_FIFOMEM_UDF_INT_RAW_R {
29 RX_FIFOMEM_UDF_INT_RAW_R::new(((self.bits >> 2) & 1) != 0)
30 }
31 #[doc = "Bit 3 - The raw interrupt status bit for the vad_done_int interrupt"]
32 #[inline(always)]
33 pub fn vad_done_int_raw(&self) -> VAD_DONE_INT_RAW_R {
34 VAD_DONE_INT_RAW_R::new(((self.bits >> 3) & 1) != 0)
35 }
36 #[doc = "Bit 4 - The raw interrupt status bit for the vad_reset_done_int interrupt"]
37 #[inline(always)]
38 pub fn vad_reset_done_int_raw(&self) -> VAD_RESET_DONE_INT_RAW_R {
39 VAD_RESET_DONE_INT_RAW_R::new(((self.bits >> 4) & 1) != 0)
40 }
41 #[doc = "Bit 5 - The raw interrupt status bit for the rx_mem_threshold_int interrupt"]
42 #[inline(always)]
43 pub fn rx_mem_threshold_int_raw(&self) -> RX_MEM_THRESHOLD_INT_RAW_R {
44 RX_MEM_THRESHOLD_INT_RAW_R::new(((self.bits >> 5) & 1) != 0)
45 }
46}
47#[cfg(feature = "impl-register-debug")]
48impl core::fmt::Debug for R {
49 fn fmt(&self, f: &mut core::fmt::Formatter) -> core::fmt::Result {
50 f.debug_struct("INT_RAW")
51 .field(
52 "rx_done_int_raw",
53 &format_args!("{}", self.rx_done_int_raw().bit()),
54 )
55 .field(
56 "rx_hung_int_raw",
57 &format_args!("{}", self.rx_hung_int_raw().bit()),
58 )
59 .field(
60 "rx_fifomem_udf_int_raw",
61 &format_args!("{}", self.rx_fifomem_udf_int_raw().bit()),
62 )
63 .field(
64 "vad_done_int_raw",
65 &format_args!("{}", self.vad_done_int_raw().bit()),
66 )
67 .field(
68 "vad_reset_done_int_raw",
69 &format_args!("{}", self.vad_reset_done_int_raw().bit()),
70 )
71 .field(
72 "rx_mem_threshold_int_raw",
73 &format_args!("{}", self.rx_mem_threshold_int_raw().bit()),
74 )
75 .finish()
76 }
77}
78#[cfg(feature = "impl-register-debug")]
79impl core::fmt::Debug for crate::generic::Reg<INT_RAW_SPEC> {
80 fn fmt(&self, f: &mut core::fmt::Formatter<'_>) -> core::fmt::Result {
81 core::fmt::Debug::fmt(&self.read(), f)
82 }
83}
84#[doc = "I2S interrupt raw register, valid in level.\n\nYou can [`read`](crate::generic::Reg::read) this register and get [`int_raw::R`](R). See [API](https://docs.rs/svd2rust/#read--modify--write-api)."]
85pub struct INT_RAW_SPEC;
86impl crate::RegisterSpec for INT_RAW_SPEC {
87 type Ux = u32;
88}
89#[doc = "`read()` method returns [`int_raw::R`](R) reader structure"]
90impl crate::Readable for INT_RAW_SPEC {}
91#[doc = "`reset()` method sets INT_RAW to value 0"]
92impl crate::Resettable for INT_RAW_SPEC {
93 const RESET_VALUE: u32 = 0;
94}