mcxa_pac/ostimer0/
evtimerh.rs1#[doc = "Register `EVTIMERH` reader"]
2pub type R = crate::R<EvtimerhSpec>;
3#[doc = "Field `EVTIMER_COUNT_VALUE` reader - EVTimer Count Value"]
4pub type EvtimerCountValueR = crate::FieldReader<u16>;
5impl R {
6 #[doc = "Bits 0:9 - EVTimer Count Value"]
7 #[inline(always)]
8 pub fn evtimer_count_value(&self) -> EvtimerCountValueR {
9 EvtimerCountValueR::new((self.bits & 0x03ff) as u16)
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("EVTIMERH")
16 .field("evtimer_count_value", &self.evtimer_count_value())
17 .finish()
18 }
19}
20#[doc = "EVTIMER High\n\nYou can [`read`](crate::Reg::read) this register and get [`evtimerh::R`](R). See [API](https://docs.rs/svd2rust/#read--modify--write-api)."]
21pub struct EvtimerhSpec;
22impl crate::RegisterSpec for EvtimerhSpec {
23 type Ux = u32;
24}
25#[doc = "`read()` method returns [`evtimerh::R`](R) reader structure"]
26impl crate::Readable for EvtimerhSpec {}
27#[doc = "`reset()` method sets EVTIMERH to value 0"]
28impl crate::Resettable for EvtimerhSpec {}