1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
#[doc = "Register `DBG_CFGINFO` reader"]
pub type R = crate::R<DBG_CFGINFO_SPEC>;
#[doc = "Field `FIFO_DEPTH` reader - The depth of the state machine TX/RX FIFOs, measured in words.  
 Joining fifos via SHIFTCTRL_FJOIN gives one FIFO with double  
 this depth."]
pub type FIFO_DEPTH_R = crate::FieldReader;
#[doc = "Field `SM_COUNT` reader - The number of state machines this PIO instance is equipped with."]
pub type SM_COUNT_R = crate::FieldReader;
#[doc = "Field `IMEM_SIZE` reader - The size of the instruction memory, measured in units of one instruction"]
pub type IMEM_SIZE_R = crate::FieldReader;
impl R {
    #[doc = "Bits 0:5 - The depth of the state machine TX/RX FIFOs, measured in words.  
 Joining fifos via SHIFTCTRL_FJOIN gives one FIFO with double  
 this depth."]
    #[inline(always)]
    pub fn fifo_depth(&self) -> FIFO_DEPTH_R {
        FIFO_DEPTH_R::new((self.bits & 0x3f) as u8)
    }
    #[doc = "Bits 8:11 - The number of state machines this PIO instance is equipped with."]
    #[inline(always)]
    pub fn sm_count(&self) -> SM_COUNT_R {
        SM_COUNT_R::new(((self.bits >> 8) & 0x0f) as u8)
    }
    #[doc = "Bits 16:21 - The size of the instruction memory, measured in units of one instruction"]
    #[inline(always)]
    pub fn imem_size(&self) -> IMEM_SIZE_R {
        IMEM_SIZE_R::new(((self.bits >> 16) & 0x3f) as u8)
    }
}
#[doc = "The PIO hardware has some free parameters that may vary between chip products.  
 These should be provided in the chip datasheet, but are also exposed here.  

You can [`read`](crate::generic::Reg::read) this register and get [`dbg_cfginfo::R`](R).  See [API](https://docs.rs/svd2rust/#read--modify--write-api)."]
pub struct DBG_CFGINFO_SPEC;
impl crate::RegisterSpec for DBG_CFGINFO_SPEC {
    type Ux = u32;
}
#[doc = "`read()` method returns [`dbg_cfginfo::R`](R) reader structure"]
impl crate::Readable for DBG_CFGINFO_SPEC {}
#[doc = "`reset()` method sets DBG_CFGINFO to value 0"]
impl crate::Resettable for DBG_CFGINFO_SPEC {
    const RESET_VALUE: u32 = 0;
}