mimxrt685s_pac/sysctl0/
system_nstick_calib.rs

1#[doc = "Register `SYSTEM_NSTICK_CALIB` reader"]
2pub type R = crate::R<SystemNstickCalibSpec>;
3#[doc = "Register `SYSTEM_NSTICK_CALIB` writer"]
4pub type W = crate::W<SystemNstickCalibSpec>;
5#[doc = "Field `SYSTEM_NSTICK_CALIB` reader - Selects the system non-secure tick calibration value of the M33."]
6pub type SystemNstickCalibR = crate::FieldReader<u32>;
7#[doc = "Field `SYSTEM_NSTICK_CALIB` writer - Selects the system non-secure tick calibration value of the M33."]
8pub type SystemNstickCalibW<'a, REG> = crate::FieldWriter<'a, REG, 26, u32>;
9impl R {
10    #[doc = "Bits 0:25 - Selects the system non-secure tick calibration value of the M33."]
11    #[inline(always)]
12    pub fn system_nstick_calib(&self) -> SystemNstickCalibR {
13        SystemNstickCalibR::new(self.bits & 0x03ff_ffff)
14    }
15}
16#[cfg(feature = "debug")]
17impl core::fmt::Debug for R {
18    fn fmt(&self, f: &mut core::fmt::Formatter) -> core::fmt::Result {
19        f.debug_struct("SYSTEM_NSTICK_CALIB")
20            .field("system_nstick_calib", &self.system_nstick_calib())
21            .finish()
22    }
23}
24impl W {
25    #[doc = "Bits 0:25 - Selects the system non-secure tick calibration value of the M33."]
26    #[inline(always)]
27    pub fn system_nstick_calib(&mut self) -> SystemNstickCalibW<SystemNstickCalibSpec> {
28        SystemNstickCalibW::new(self, 0)
29    }
30}
31#[doc = "system nstick calibration\n\nYou can [`read`](crate::Reg::read) this register and get [`system_nstick_calib::R`](R). You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`system_nstick_calib::W`](W). You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api)."]
32pub struct SystemNstickCalibSpec;
33impl crate::RegisterSpec for SystemNstickCalibSpec {
34    type Ux = u32;
35}
36#[doc = "`read()` method returns [`system_nstick_calib::R`](R) reader structure"]
37impl crate::Readable for SystemNstickCalibSpec {}
38#[doc = "`write(|w| ..)` method takes [`system_nstick_calib::W`](W) writer structure"]
39impl crate::Writable for SystemNstickCalibSpec {
40    type Safety = crate::Unsafe;
41    const ZERO_TO_MODIFY_FIELDS_BITMAP: u32 = 0;
42    const ONE_TO_MODIFY_FIELDS_BITMAP: u32 = 0;
43}
44#[doc = "`reset()` method sets SYSTEM_NSTICK_CALIB to value 0"]
45impl crate::Resettable for SystemNstickCalibSpec {
46    const RESET_VALUE: u32 = 0;
47}