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