mcxa_pac/cdog0/
instruction_timer.rs

1#[doc = "Register `INSTRUCTION_TIMER` reader"]
2pub type R = crate::R<InstructionTimerSpec>;
3#[doc = "Field `INSTIM` reader - Current value of the Instruction Timer"]
4pub type InstimR = crate::FieldReader<u32>;
5impl R {
6    #[doc = "Bits 0:31 - Current value of the Instruction Timer"]
7    #[inline(always)]
8    pub fn instim(&self) -> InstimR {
9        InstimR::new(self.bits)
10    }
11}
12#[cfg(feature = "debug")]
13impl core::fmt::Debug for R {
14    fn fmt(&self, f: &mut core::fmt::Formatter) -> core::fmt::Result {
15        f.debug_struct("INSTRUCTION_TIMER")
16            .field("instim", &self.instim())
17            .finish()
18    }
19}
20#[doc = "Instruction Timer Register\n\nYou can [`read`](crate::Reg::read) this register and get [`instruction_timer::R`](R). See [API](https://docs.rs/svd2rust/#read--modify--write-api)."]
21pub struct InstructionTimerSpec;
22impl crate::RegisterSpec for InstructionTimerSpec {
23    type Ux = u32;
24}
25#[doc = "`read()` method returns [`instruction_timer::R`](R) reader structure"]
26impl crate::Readable for InstructionTimerSpec {}
27#[doc = "`reset()` method sets INSTRUCTION_TIMER to value 0xffff_ffff"]
28impl crate::Resettable for InstructionTimerSpec {
29    const RESET_VALUE: u32 = 0xffff_ffff;
30}