xmc4300/ecat0/
build.rs

1#[doc = "Register `BUILD` reader"]
2pub type R = crate::R<BUILD_SPEC>;
3#[doc = "Field `BUILD` reader - Actual build of EtherCAT controller"]
4pub type BUILD_R = crate::FieldReader<u16>;
5impl R {
6    #[doc = "Bits 0:15 - Actual build of EtherCAT controller"]
7    #[inline(always)]
8    pub fn build(&self) -> BUILD_R {
9        BUILD_R::new(self.bits)
10    }
11}
12#[doc = "Build Version\n\nYou can [`read`](crate::Reg::read) this register and get [`build::R`](R). See [API](https://docs.rs/svd2rust/#read--modify--write-api)."]
13pub struct BUILD_SPEC;
14impl crate::RegisterSpec for BUILD_SPEC {
15    type Ux = u16;
16}
17#[doc = "`read()` method returns [`build::R`](R) reader structure"]
18impl crate::Readable for BUILD_SPEC {}
19#[doc = "`reset()` method sets BUILD to value 0x01"]
20impl crate::Resettable for BUILD_SPEC {
21    const RESET_VALUE: u16 = 0x01;
22}