#[doc = "Register `SM0CVAL0` reader"]
pub type R = crate::R<Sm0cval0Spec>;
#[doc = "Field `CAPTVAL0` reader - Capture Value 0"]
pub type Captval0R = crate::FieldReader<u16>;
impl R {
#[doc = "Bits 0:15 - Capture Value 0"]
#[inline(always)]
pub fn captval0(&self) -> Captval0R {
Captval0R::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("SM0CVAL0").field("captval0", &self.captval0()).finish()
}
}
#[doc = "Capture Value 0 Register\n\nYou can [`read`](crate::Reg::read) this register and get [`sm0cval0::R`](R). See [API](https://docs.rs/svd2rust/#read--modify--write-api)."]
pub struct Sm0cval0Spec;
impl crate::RegisterSpec for Sm0cval0Spec {
type Ux = u16;
}
#[doc = "`read()` method returns [`sm0cval0::R`](R) reader structure"]
impl crate::Readable for Sm0cval0Spec {}
#[doc = "`reset()` method sets SM0CVAL0 to value 0"]
impl crate::Resettable for Sm0cval0Spec {}