#[doc = "Register `CC2_ICVALUE` reader"]
pub struct R(crate::R<CC2_ICVALUE_SPEC>);
impl core::ops::Deref for R {
type Target = crate::R<CC2_ICVALUE_SPEC>;
#[inline(always)]
fn deref(&self) -> &Self::Target {
&self.0
}
}
impl From<crate::R<CC2_ICVALUE_SPEC>> for R {
#[inline(always)]
fn from(reader: crate::R<CC2_ICVALUE_SPEC>) -> Self {
R(reader)
}
}
#[doc = "Field `IC` reader - Input Capture Value"]
pub type IC_R = crate::FieldReader<u32, u32>;
impl R {
#[doc = "Bits 0:31 - Input Capture Value"]
#[inline(always)]
pub fn ic(&self) -> IC_R {
IC_R::new(self.bits)
}
}
#[doc = "No Description\n\nThis register you can [`read`](crate::generic::Reg::read). See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [cc2_icvalue](index.html) module"]
pub struct CC2_ICVALUE_SPEC;
impl crate::RegisterSpec for CC2_ICVALUE_SPEC {
type Ux = u32;
}
#[doc = "`read()` method returns [cc2_icvalue::R](R) reader structure"]
impl crate::Readable for CC2_ICVALUE_SPEC {
type Reader = R;
}
#[doc = "`reset()` method sets CC2_ICVALUE to value 0"]
impl crate::Resettable for CC2_ICVALUE_SPEC {
const RESET_VALUE: Self::Ux = 0;
}