esp32 0.40.0

Peripheral access crate for the ESP32
Documentation
#[doc = "Register `INFIFO_POP` reader"]
pub type R = crate::R<INFIFO_POP_SPEC>;
#[doc = "Register `INFIFO_POP` writer"]
pub type W = crate::W<INFIFO_POP_SPEC>;
#[doc = "Field `INFIFO_RDATA` reader - "]
pub type INFIFO_RDATA_R = crate::FieldReader<u16>;
#[doc = "Field `INFIFO_POP` reader - "]
pub type INFIFO_POP_R = crate::BitReader;
#[doc = "Field `INFIFO_POP` writer - "]
pub type INFIFO_POP_W<'a, REG> = crate::BitWriter<'a, REG>;
impl R {
    #[doc = "Bits 0:11"]
    #[inline(always)]
    pub fn infifo_rdata(&self) -> INFIFO_RDATA_R {
        INFIFO_RDATA_R::new((self.bits & 0x0fff) as u16)
    }
    #[doc = "Bit 16"]
    #[inline(always)]
    pub fn infifo_pop(&self) -> INFIFO_POP_R {
        INFIFO_POP_R::new(((self.bits >> 16) & 1) != 0)
    }
}
#[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("INFIFO_POP")
            .field("infifo_rdata", &self.infifo_rdata())
            .field("infifo_pop", &self.infifo_pop())
            .finish()
    }
}
impl W {
    #[doc = "Bit 16"]
    #[inline(always)]
    pub fn infifo_pop(&mut self) -> INFIFO_POP_W<'_, INFIFO_POP_SPEC> {
        INFIFO_POP_W::new(self, 16)
    }
}
#[doc = "\n\nYou can [`read`](crate::Reg::read) this register and get [`infifo_pop::R`](R). You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`infifo_pop::W`](W). You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api)."]
pub struct INFIFO_POP_SPEC;
impl crate::RegisterSpec for INFIFO_POP_SPEC {
    type Ux = u32;
}
#[doc = "`read()` method returns [`infifo_pop::R`](R) reader structure"]
impl crate::Readable for INFIFO_POP_SPEC {}
#[doc = "`write(|w| ..)` method takes [`infifo_pop::W`](W) writer structure"]
impl crate::Writable for INFIFO_POP_SPEC {
    type Safety = crate::Unsafe;
}
#[doc = "`reset()` method sets INFIFO_POP to value 0"]
impl crate::Resettable for INFIFO_POP_SPEC {}