bl602_pac/gpip/
gpadc_dma_rdata.rs1#[doc = "Register `gpadc_dma_rdata` reader"]
2pub struct R(crate::R<GPADC_DMA_RDATA_SPEC>);
3impl core::ops::Deref for R {
4 type Target = crate::R<GPADC_DMA_RDATA_SPEC>;
5 #[inline(always)]
6 fn deref(&self) -> &Self::Target {
7 &self.0
8 }
9}
10impl From<crate::R<GPADC_DMA_RDATA_SPEC>> for R {
11 #[inline(always)]
12 fn from(reader: crate::R<GPADC_DMA_RDATA_SPEC>) -> Self {
13 R(reader)
14 }
15}
16#[doc = "Field `gpadc_dma_rdata` reader - "]
17pub type GPADC_DMA_RDATA_R = crate::FieldReader<u32, u32>;
18#[doc = "Field `rsvd_31_26` reader - "]
19pub type RSVD_31_26_R = crate::FieldReader<u8, u8>;
20impl R {
21 #[doc = "Bits 0:25"]
22 #[inline(always)]
23 pub fn gpadc_dma_rdata(&self) -> GPADC_DMA_RDATA_R {
24 GPADC_DMA_RDATA_R::new(self.bits & 0x03ff_ffff)
25 }
26 #[doc = "Bits 26:31"]
27 #[inline(always)]
28 pub fn rsvd_31_26(&self) -> RSVD_31_26_R {
29 RSVD_31_26_R::new(((self.bits >> 26) & 0x3f) as u8)
30 }
31}
32#[doc = "gpadc_dma_rdata.\n\nThis register you can [`read`](crate::generic::Reg::read). See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [gpadc_dma_rdata](index.html) module"]
33pub struct GPADC_DMA_RDATA_SPEC;
34impl crate::RegisterSpec for GPADC_DMA_RDATA_SPEC {
35 type Ux = u32;
36}
37#[doc = "`read()` method returns [gpadc_dma_rdata::R](R) reader structure"]
38impl crate::Readable for GPADC_DMA_RDATA_SPEC {
39 type Reader = R;
40}
41#[doc = "`reset()` method sets gpadc_dma_rdata to value 0"]
42impl crate::Resettable for GPADC_DMA_RDATA_SPEC {
43 const RESET_VALUE: Self::Ux = 0;
44}