mcxa-pac 0.3.0

Peripheral Access Crate for MCXA256 devices
Documentation
#[doc = "Register `SM1CVAL1` reader"]
pub type R = crate::R<Sm1cval1Spec>;
#[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("SM1CVAL1").field("captval1", &self.captval1()).finish()
    }
}
#[doc = "Capture Value 1 Register\n\nYou can [`read`](crate::Reg::read) this register and get [`sm1cval1::R`](R). See [API](https://docs.rs/svd2rust/#read--modify--write-api)."]
pub struct Sm1cval1Spec;
impl crate::RegisterSpec for Sm1cval1Spec {
    type Ux = u16;
}
#[doc = "`read()` method returns [`sm1cval1::R`](R) reader structure"]
impl crate::Readable for Sm1cval1Spec {}
#[doc = "`reset()` method sets SM1CVAL1 to value 0"]
impl crate::Resettable for Sm1cval1Spec {}