ra6m1 0.2.0

Peripheral access API for ra6m1 microcontrollers (generated using svd2rust)
Documentation
#[doc = "Register `BCNT2CP%s` reader"]
pub struct R(crate::R<BCNT2CP_SPEC>);
impl core::ops::Deref for R {
    type Target = crate::R<BCNT2CP_SPEC>;
    #[inline(always)]
    fn deref(&self) -> &Self::Target {
        &self.0
    }
}
impl From<crate::R<BCNT2CP_SPEC>> for R {
    #[inline(always)]
    fn from(reader: crate::R<BCNT2CP_SPEC>) -> Self {
        R(reader)
    }
}
#[doc = "Field `BCNT2CP` reader - BCNT2CP is a read-only register that captures the BCNT2 value when a time capture event is detected."]
pub type BCNT2CP_R = crate::FieldReader<u8, u8>;
impl R {
    #[doc = "Bits 0:7 - BCNT2CP is a read-only register that captures the BCNT2 value when a time capture event is detected."]
    #[inline(always)]
    pub fn bcnt2cp(&self) -> BCNT2CP_R {
        BCNT2CP_R::new(self.bits)
    }
}
#[doc = "BCNT2 Capture Register %s\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 [bcnt2cp](index.html) module"]
pub struct BCNT2CP_SPEC;
impl crate::RegisterSpec for BCNT2CP_SPEC {
    type Ux = u8;
}
#[doc = "`read()` method returns [bcnt2cp::R](R) reader structure"]
impl crate::Readable for BCNT2CP_SPEC {
    type Reader = R;
}
#[doc = "`reset()` method sets BCNT2CP%s to value 0"]
impl crate::Resettable for BCNT2CP_SPEC {
    const RESET_VALUE: Self::Ux = 0;
}