xmc4300/ecat0/
dc_speed_count_diff.rs

1#[doc = "Register `DC_SPEED_COUNT_DIFF` reader"]
2pub type R = crate::R<DC_SPEED_COUNT_DIFF_SPEC>;
3#[doc = "Field `DEVIATION` reader - Representation of the deviation between local clock period and Reference Clock's clock period"]
4pub type DEVIATION_R = crate::FieldReader<u16>;
5impl R {
6    #[doc = "Bits 0:15 - Representation of the deviation between local clock period and Reference Clock's clock period"]
7    #[inline(always)]
8    pub fn deviation(&self) -> DEVIATION_R {
9        DEVIATION_R::new(self.bits)
10    }
11}
12#[doc = "Speed Counter Diff\n\nYou can [`read`](crate::Reg::read) this register and get [`dc_speed_count_diff::R`](R). See [API](https://docs.rs/svd2rust/#read--modify--write-api)."]
13pub struct DC_SPEED_COUNT_DIFF_SPEC;
14impl crate::RegisterSpec for DC_SPEED_COUNT_DIFF_SPEC {
15    type Ux = u16;
16}
17#[doc = "`read()` method returns [`dc_speed_count_diff::R`](R) reader structure"]
18impl crate::Readable for DC_SPEED_COUNT_DIFF_SPEC {}
19#[doc = "`reset()` method sets DC_SPEED_COUNT_DIFF to value 0"]
20impl crate::Resettable for DC_SPEED_COUNT_DIFF_SPEC {
21    const RESET_VALUE: u16 = 0;
22}