#[doc = "Register `SM2CVAL1CYC` reader"]
pub type R = crate::R<Sm2cval1cycSpec>;
#[doc = "Field `CVAL1CYC` reader - Capture Value 1 Cycle"]
pub type Cval1cycR = crate::FieldReader;
impl R {
#[doc = "Bits 0:3 - Capture Value 1 Cycle"]
#[inline(always)]
pub fn cval1cyc(&self) -> Cval1cycR {
Cval1cycR::new((self.bits & 0x0f) as u8)
}
}
#[cfg(feature = "debug")]
impl core::fmt::Debug for R {
fn fmt(&self, f: &mut core::fmt::Formatter) -> core::fmt::Result {
f.debug_struct("SM2CVAL1CYC")
.field("cval1cyc", &self.cval1cyc())
.finish()
}
}
#[doc = "Capture Value 1 Cycle Register\n\nYou can [`read`](crate::Reg::read) this register and get [`sm2cval1cyc::R`](R). See [API](https://docs.rs/svd2rust/#read--modify--write-api)."]
pub struct Sm2cval1cycSpec;
impl crate::RegisterSpec for Sm2cval1cycSpec {
type Ux = u16;
}
#[doc = "`read()` method returns [`sm2cval1cyc::R`](R) reader structure"]
impl crate::Readable for Sm2cval1cycSpec {}
#[doc = "`reset()` method sets SM2CVAL1CYC to value 0"]
impl crate::Resettable for Sm2cval1cycSpec {}