stm32f1/stm32f101/adc1/
jdr.rs

1///Register `JDR%s` reader
2pub type R = crate::R<JDRrs>;
3///Field `JDATA` reader - Injected data
4pub type JDATA_R = crate::FieldReader<u16>;
5impl R {
6    ///Bits 0:15 - Injected data
7    #[inline(always)]
8    pub fn jdata(&self) -> JDATA_R {
9        JDATA_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("JDR").field("jdata", &self.jdata()).finish()
15    }
16}
17/**injected data register x
18
19You can [`read`](crate::Reg::read) this register and get [`jdr::R`](R). See [API](https://docs.rs/svd2rust/#read--modify--write-api).
20
21See register [structure](https://stm32-rs.github.io/stm32-rs/STM32F101.html#ADC1:JDR[1])*/
22pub struct JDRrs;
23impl crate::RegisterSpec for JDRrs {
24    type Ux = u32;
25}
26///`read()` method returns [`jdr::R`](R) reader structure
27impl crate::Readable for JDRrs {}
28///`reset()` method sets JDR%s to value 0
29impl crate::Resettable for JDRrs {}