stm32f1_staging/stm32f101/adc3/jdr3.rs
///Register `JDR3` reader
pub type R = crate::R<JDR3rs>;
///Field `JDATA` reader - Injected data
pub type JDATA_R = crate::FieldReader<u16>;
impl R {
///Bits 0:15 - Injected data
#[inline(always)]
pub fn jdata(&self) -> JDATA_R {
JDATA_R::new((self.bits & 0xffff) as u16)
}
}
impl core::fmt::Debug for R {
fn fmt(&self, f: &mut core::fmt::Formatter) -> core::fmt::Result {
f.debug_struct("JDR3")
.field("jdata", &self.jdata())
.finish()
}
}
/**injected data register x
You can [`read`](crate::Reg::read) this register and get [`jdr3::R`](R). See [API](https://docs.rs/svd2rust/#read--modify--write-api).
See register [structure](https://stm32-rs.github.io/stm32-rs/STM32F101.html#ADC3:JDR3)*/
pub struct JDR3rs;
impl crate::RegisterSpec for JDR3rs {
type Ux = u32;
}
///`read()` method returns [`jdr3::R`](R) reader structure
impl crate::Readable for JDR3rs {}
///`reset()` method sets JDR3 to value 0
impl crate::Resettable for JDR3rs {
const RESET_VALUE: u32 = 0;
}