xmc4100 0.14.0

XMC4100 Cortex-M peripheral access library
Documentation
#[doc = "Register `SDSV1` reader"]
pub type R = crate::R<SDSV1_SPEC>;
#[doc = "Register `SDSV1` writer"]
pub type W = crate::W<SDSV1_SPEC>;
#[doc = "Field `SDSV1` reader - Shadow DAC reference value 1"]
pub type SDSV1_R = crate::FieldReader<u16>;
#[doc = "Field `SDSV1` writer - Shadow DAC reference value 1"]
pub type SDSV1_W<'a, REG> = crate::FieldWriter<'a, REG, 10, u16>;
impl R {
    #[doc = "Bits 0:9 - Shadow DAC reference value 1"]
    #[inline(always)]
    pub fn sdsv1(&self) -> SDSV1_R {
        SDSV1_R::new((self.bits & 0x03ff) as u16)
    }
}
impl W {
    #[doc = "Bits 0:9 - Shadow DAC reference value 1"]
    #[inline(always)]
    pub fn sdsv1(&mut self) -> SDSV1_W<SDSV1_SPEC> {
        SDSV1_W::new(self, 0)
    }
}
#[doc = "Shadow reference value 1\n\nYou can [`read`](crate::Reg::read) this register and get [`sdsv1::R`](R). You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`sdsv1::W`](W). You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api)."]
pub struct SDSV1_SPEC;
impl crate::RegisterSpec for SDSV1_SPEC {
    type Ux = u32;
}
#[doc = "`read()` method returns [`sdsv1::R`](R) reader structure"]
impl crate::Readable for SDSV1_SPEC {}
#[doc = "`write(|w| ..)` method takes [`sdsv1::W`](W) writer structure"]
impl crate::Writable for SDSV1_SPEC {
    type Safety = crate::Unsafe;
    const ZERO_TO_MODIFY_FIELDS_BITMAP: u32 = 0;
    const ONE_TO_MODIFY_FIELDS_BITMAP: u32 = 0;
}
#[doc = "`reset()` method sets SDSV1 to value 0"]
impl crate::Resettable for SDSV1_SPEC {
    const RESET_VALUE: u32 = 0;
}