esp32 0.40.2

Peripheral access crate for the ESP32
Documentation
#[doc = "Register `DMA_IN_STATUS` reader"]
pub type R = crate::R<DMA_IN_STATUS_SPEC>;
#[doc = "Field `IN_FULL` reader - "]
pub type IN_FULL_R = crate::BitReader;
#[doc = "Field `IN_EMPTY` reader - "]
pub type IN_EMPTY_R = crate::BitReader;
#[doc = "Field `RX_ERR_CAUSE` reader - This register stores the errors caused in out link descriptor's data packet."]
pub type RX_ERR_CAUSE_R = crate::FieldReader;
impl R {
    #[doc = "Bit 0"]
    #[inline(always)]
    pub fn in_full(&self) -> IN_FULL_R {
        IN_FULL_R::new((self.bits & 1) != 0)
    }
    #[doc = "Bit 1"]
    #[inline(always)]
    pub fn in_empty(&self) -> IN_EMPTY_R {
        IN_EMPTY_R::new(((self.bits >> 1) & 1) != 0)
    }
    #[doc = "Bits 4:6 - This register stores the errors caused in out link descriptor's data packet."]
    #[inline(always)]
    pub fn rx_err_cause(&self) -> RX_ERR_CAUSE_R {
        RX_ERR_CAUSE_R::new(((self.bits >> 4) & 7) as u8)
    }
}
#[cfg(feature = "impl-register-debug")]
impl core::fmt::Debug for R {
    fn fmt(&self, f: &mut core::fmt::Formatter) -> core::fmt::Result {
        f.debug_struct("DMA_IN_STATUS")
            .field("in_full", &self.in_full())
            .field("in_empty", &self.in_empty())
            .field("rx_err_cause", &self.rx_err_cause())
            .finish()
    }
}
#[doc = "\n\nYou can [`read`](crate::Reg::read) this register and get [`dma_in_status::R`](R). See [API](https://docs.rs/svd2rust/#read--modify--write-api)."]
pub struct DMA_IN_STATUS_SPEC;
impl crate::RegisterSpec for DMA_IN_STATUS_SPEC {
    type Ux = u32;
}
#[doc = "`read()` method returns [`dma_in_status::R`](R) reader structure"]
impl crate::Readable for DMA_IN_STATUS_SPEC {}
#[doc = "`reset()` method sets DMA_IN_STATUS to value 0x02"]
impl crate::Resettable for DMA_IN_STATUS_SPEC {
    const RESET_VALUE: u32 = 0x02;
}