esp32/uhci0/
dma_in_pop.rs1#[doc = "Register `DMA_IN_POP` reader"]
2pub type R = crate::R<DMA_IN_POP_SPEC>;
3#[doc = "Register `DMA_IN_POP` writer"]
4pub type W = crate::W<DMA_IN_POP_SPEC>;
5#[doc = "Field `INFIFO_RDATA` reader - This register stores the data pop from in link descriptor's fifo."]
6pub type INFIFO_RDATA_R = crate::FieldReader<u16>;
7#[doc = "Field `INFIFO_POP` reader - Set this bit to pop data in in link descriptor's fifo."]
8pub type INFIFO_POP_R = crate::BitReader;
9#[doc = "Field `INFIFO_POP` writer - Set this bit to pop data in in link descriptor's fifo."]
10pub type INFIFO_POP_W<'a, REG> = crate::BitWriter<'a, REG>;
11impl R {
12 #[doc = "Bits 0:11 - This register stores the data pop from in link descriptor's fifo."]
13 #[inline(always)]
14 pub fn infifo_rdata(&self) -> INFIFO_RDATA_R {
15 INFIFO_RDATA_R::new((self.bits & 0x0fff) as u16)
16 }
17 #[doc = "Bit 16 - Set this bit to pop data in in link descriptor's fifo."]
18 #[inline(always)]
19 pub fn infifo_pop(&self) -> INFIFO_POP_R {
20 INFIFO_POP_R::new(((self.bits >> 16) & 1) != 0)
21 }
22}
23#[cfg(feature = "impl-register-debug")]
24impl core::fmt::Debug for R {
25 fn fmt(&self, f: &mut core::fmt::Formatter) -> core::fmt::Result {
26 f.debug_struct("DMA_IN_POP")
27 .field("infifo_rdata", &self.infifo_rdata())
28 .field("infifo_pop", &self.infifo_pop())
29 .finish()
30 }
31}
32impl W {
33 #[doc = "Bit 16 - Set this bit to pop data in in link descriptor's fifo."]
34 #[inline(always)]
35 pub fn infifo_pop(&mut self) -> INFIFO_POP_W<DMA_IN_POP_SPEC> {
36 INFIFO_POP_W::new(self, 16)
37 }
38}
39#[doc = "\n\nYou can [`read`](crate::Reg::read) this register and get [`dma_in_pop::R`](R). You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`dma_in_pop::W`](W). You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api)."]
40pub struct DMA_IN_POP_SPEC;
41impl crate::RegisterSpec for DMA_IN_POP_SPEC {
42 type Ux = u32;
43}
44#[doc = "`read()` method returns [`dma_in_pop::R`](R) reader structure"]
45impl crate::Readable for DMA_IN_POP_SPEC {}
46#[doc = "`write(|w| ..)` method takes [`dma_in_pop::W`](W) writer structure"]
47impl crate::Writable for DMA_IN_POP_SPEC {
48 type Safety = crate::Unsafe;
49 const ZERO_TO_MODIFY_FIELDS_BITMAP: u32 = 0;
50 const ONE_TO_MODIFY_FIELDS_BITMAP: u32 = 0;
51}
52#[doc = "`reset()` method sets DMA_IN_POP to value 0"]
53impl crate::Resettable for DMA_IN_POP_SPEC {
54 const RESET_VALUE: u32 = 0;
55}