va416xx-rs/va416xx/src/sysconfig/dac0_cal.rs
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
865 B
Rust

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