stm32f0/stm32f0x1/adc/
dr.rs

1///Register `DR` reader
2pub type R = crate::R<DRrs>;
3///Field `DATA` reader - Converted data
4pub type DATA_R = crate::FieldReader<u16>;
5impl R {
6    ///Bits 0:15 - Converted data
7    #[inline(always)]
8    pub fn data(&self) -> DATA_R {
9        DATA_R::new((self.bits & 0xffff) as u16)
10    }
11}
12impl core::fmt::Debug for R {
13    fn fmt(&self, f: &mut core::fmt::Formatter) -> core::fmt::Result {
14        f.debug_struct("DR").field("data", &self.data()).finish()
15    }
16}
17/**data register
18
19You can [`read`](crate::Reg::read) this register and get [`dr::R`](R). See [API](https://docs.rs/svd2rust/#read--modify--write-api).
20
21See register [structure](https://stm32-rs.github.io/stm32-rs/STM32F0x1.html#ADC:DR)*/
22pub struct DRrs;
23impl crate::RegisterSpec for DRrs {
24    type Ux = u32;
25}
26///`read()` method returns [`dr::R`](R) reader structure
27impl crate::Readable for DRrs {}
28///`reset()` method sets DR to value 0
29impl crate::Resettable for DRrs {}