stm32f1/stm32f101/adc1/
dr.rs1pub type R = crate::R<DRrs>;
3pub type DATA_R = crate::FieldReader<u16>;
5pub type ADC2DATA_R = crate::FieldReader<u16>;
7impl R {
8 #[inline(always)]
10 pub fn data(&self) -> DATA_R {
11 DATA_R::new((self.bits & 0xffff) as u16)
12 }
13 #[inline(always)]
15 pub fn adc2data(&self) -> ADC2DATA_R {
16 ADC2DATA_R::new(((self.bits >> 16) & 0xffff) as u16)
17 }
18}
19impl core::fmt::Debug for R {
20 fn fmt(&self, f: &mut core::fmt::Formatter) -> core::fmt::Result {
21 f.debug_struct("DR")
22 .field("data", &self.data())
23 .field("adc2data", &self.adc2data())
24 .finish()
25 }
26}
27pub struct DRrs;
33impl crate::RegisterSpec for DRrs {
34 type Ux = u32;
35}
36impl crate::Readable for DRrs {}
38impl crate::Resettable for DRrs {}