1# [doc = "Register `DESC` reader"] pub type R = crate :: R < DESC_SPEC > ; # [doc = "Field `DESC_MINREV` reader - Minor rev of the IP"] pub type DESC_MINREV_R = crate :: FieldReader ; # [doc = "Field `DESC_MAJREV` reader - Major rev of the IP"] pub type DESC_MAJREV_R = crate :: FieldReader ; # [doc = "Field `DESC_FEATUREVER` reader - Feature Set for the DMA: number of DMA channel minus one (e.g. 0-&gt;1ch, 2-&gt;3ch, 15-&gt;16ch)."] pub type DESC_FEATUREVER_R = crate :: FieldReader ; # [doc = "Field `DESC_MODULEID` reader - Module identification contains a unique peripheral identification number. The assignments are maintained in a central database for all of the platform modules to ensure uniqueness."] pub type DESC_MODULEID_R = crate :: FieldReader < u16 > ; impl R { # [doc = "Bits 0:3 - Minor rev of the IP"] # [inline (always)] pub fn desc_minrev (& self) -> DESC_MINREV_R { DESC_MINREV_R :: new ((self . bits & 0x0f) as u8) } # [doc = "Bits 4:7 - Major rev of the IP"] # [inline (always)] pub fn desc_majrev (& self) -> DESC_MAJREV_R { DESC_MAJREV_R :: new (((self . bits >> 4) & 0x0f) as u8) } # [doc = "Bits 12:15 - Feature Set for the DMA: number of DMA channel minus one (e.g. 0-&gt;1ch, 2-&gt;3ch, 15-&gt;16ch)."] # [inline (always)] pub fn desc_featurever (& self) -> DESC_FEATUREVER_R { DESC_FEATUREVER_R :: new (((self . bits >> 12) & 0x0f) as u8) } # [doc = "Bits 16:31 - Module identification contains a unique peripheral identification number. The assignments are maintained in a central database for all of the platform modules to ensure uniqueness."] # [inline (always)] pub fn desc_moduleid (& self) -> DESC_MODULEID_R { DESC_MODULEID_R :: new (((self . bits >> 16) & 0xffff) as u16) } } # [doc = "Module Description\n\nYou can [`read`](crate::generic::Reg::read) this register and get [`desc::R`](R). See [API](https://docs.rs/svd2rust/#read--modify--write-api)."] pub struct DESC_SPEC ; impl crate :: RegisterSpec for DESC_SPEC { type Ux = u32 ; } # [doc = "`read()` method returns [`desc::R`](R) reader structure"] impl crate :: Readable for DESC_SPEC { } # [doc = "`reset()` method sets DESC to value 0"] impl crate :: Resettable for DESC_SPEC { const RESET_VALUE : Self :: Ux = 0 ; }