esp32c6/trace/
fifo_status.rs1#[doc = "Register `FIFO_STATUS` reader"]
2pub type R = crate::R<FIFO_STATUS_SPEC>;
3#[doc = "Field `FIFO_EMPTY` reader - 1 indicate that fifo is empty"]
4pub type FIFO_EMPTY_R = crate::BitReader;
5#[doc = "Field `WORK_STATUS` reader - mem_full interrupt status"]
6pub type WORK_STATUS_R = crate::BitReader;
7impl R {
8 #[doc = "Bit 0 - 1 indicate that fifo is empty"]
9 #[inline(always)]
10 pub fn fifo_empty(&self) -> FIFO_EMPTY_R {
11 FIFO_EMPTY_R::new((self.bits & 1) != 0)
12 }
13 #[doc = "Bit 1 - mem_full interrupt status"]
14 #[inline(always)]
15 pub fn work_status(&self) -> WORK_STATUS_R {
16 WORK_STATUS_R::new(((self.bits >> 1) & 1) != 0)
17 }
18}
19#[cfg(feature = "impl-register-debug")]
20impl core::fmt::Debug for R {
21 fn fmt(&self, f: &mut core::fmt::Formatter) -> core::fmt::Result {
22 f.debug_struct("FIFO_STATUS")
23 .field("fifo_empty", &self.fifo_empty())
24 .field("work_status", &self.work_status())
25 .finish()
26 }
27}
28#[doc = "fifo status register\n\nYou can [`read`](crate::Reg::read) this register and get [`fifo_status::R`](R). See [API](https://docs.rs/svd2rust/#read--modify--write-api)."]
29pub struct FIFO_STATUS_SPEC;
30impl crate::RegisterSpec for FIFO_STATUS_SPEC {
31 type Ux = u32;
32}
33#[doc = "`read()` method returns [`fifo_status::R`](R) reader structure"]
34impl crate::Readable for FIFO_STATUS_SPEC {}
35#[doc = "`reset()` method sets FIFO_STATUS to value 0x01"]
36impl crate::Resettable for FIFO_STATUS_SPEC {
37 const RESET_VALUE: u32 = 0x01;
38}