Robin Mueller 5d1740efea
All checks were successful
Rust/va416xx-rs/pipeline/head This commit looks good
Init Commit
Monorepo for Rust support of VA416XX family of radiation hardened MCUs
2024-06-25 20:01:21 +02:00

23 lines
848 B
Rust

#[doc = "Register `ADC_CAL` reader"]
pub type R = crate::R<AdcCalSpec>;
#[doc = "Field `ADC_CAL` reader - ADC Calibration bits"]
pub type AdcCalR = crate::FieldReader;
impl R {
#[doc = "Bits 0:4 - ADC Calibration bits"]
#[inline(always)]
pub fn adc_cal(&self) -> AdcCalR {
AdcCalR::new((self.bits & 0x1f) as u8)
}
}
#[doc = "ADC Calibration Register\n\nYou can [`read`](crate::generic::Reg::read) this register and get [`adc_cal::R`](R). See [API](https://docs.rs/svd2rust/#read--modify--write-api)."]
pub struct AdcCalSpec;
impl crate::RegisterSpec for AdcCalSpec {
type Ux = u32;
}
#[doc = "`read()` method returns [`adc_cal::R`](R) reader structure"]
impl crate::Readable for AdcCalSpec {}
#[doc = "`reset()` method sets ADC_CAL to value 0"]
impl crate::Resettable for AdcCalSpec {
const RESET_VALUE: u32 = 0;
}