xmc4300/ecat0/
eep_data.rs

1#[doc = "Register `EEP_DATA[%s]` reader"]
2pub type R = crate::R<EEP_DATA_SPEC>;
3#[doc = "Register `EEP_DATA[%s]` writer"]
4pub type W = crate::W<EEP_DATA_SPEC>;
5#[doc = "Field `EEP_DATA` reader - EEPROM Data"]
6pub type EEP_DATA_R = crate::FieldReader<u32>;
7#[doc = "Field `EEP_DATA` writer - EEPROM Data"]
8pub type EEP_DATA_W<'a, REG> = crate::FieldWriter<'a, REG, 32, u32>;
9impl R {
10    #[doc = "Bits 0:31 - EEPROM Data"]
11    #[inline(always)]
12    pub fn eep_data(&self) -> EEP_DATA_R {
13        EEP_DATA_R::new(self.bits)
14    }
15}
16impl W {
17    #[doc = "Bits 0:31 - EEPROM Data"]
18    #[inline(always)]
19    pub fn eep_data(&mut self) -> EEP_DATA_W<EEP_DATA_SPEC> {
20        EEP_DATA_W::new(self, 0)
21    }
22}
23#[doc = "EEPROM Read/Write data\n\nYou can [`read`](crate::Reg::read) this register and get [`eep_data::R`](R). You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`eep_data::W`](W). You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api)."]
24pub struct EEP_DATA_SPEC;
25impl crate::RegisterSpec for EEP_DATA_SPEC {
26    type Ux = u32;
27}
28#[doc = "`read()` method returns [`eep_data::R`](R) reader structure"]
29impl crate::Readable for EEP_DATA_SPEC {}
30#[doc = "`write(|w| ..)` method takes [`eep_data::W`](W) writer structure"]
31impl crate::Writable for EEP_DATA_SPEC {
32    type Safety = crate::Unsafe;
33    const ZERO_TO_MODIFY_FIELDS_BITMAP: u32 = 0;
34    const ONE_TO_MODIFY_FIELDS_BITMAP: u32 = 0;
35}
36#[doc = "`reset()` method sets EEP_DATA[%s]
37to value 0"]
38impl crate::Resettable for EEP_DATA_SPEC {
39    const RESET_VALUE: u32 = 0;
40}