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