#[doc = "Register `INT_RAW` reader"]
pub type R = crate::R<INT_RAW_SPEC>;
#[doc = "Field `CNT_THR_EVENT_U0` reader - This is the interrupt raw bit for channel0 event."]
pub type CNT_THR_EVENT_U0_R = crate::BitReader;
#[doc = "Field `CNT_THR_EVENT_U1` reader - This is the interrupt raw bit for channel1 event."]
pub type CNT_THR_EVENT_U1_R = crate::BitReader;
#[doc = "Field `CNT_THR_EVENT_U2` reader - This is the interrupt raw bit for channel2 event."]
pub type CNT_THR_EVENT_U2_R = crate::BitReader;
#[doc = "Field `CNT_THR_EVENT_U3` reader - This is the interrupt raw bit for channel3 event."]
pub type CNT_THR_EVENT_U3_R = crate::BitReader;
#[doc = "Field `CNT_THR_EVENT_U4` reader - This is the interrupt raw bit for channel4 event."]
pub type CNT_THR_EVENT_U4_R = crate::BitReader;
#[doc = "Field `CNT_THR_EVENT_U5` reader - This is the interrupt raw bit for channel5 event."]
pub type CNT_THR_EVENT_U5_R = crate::BitReader;
#[doc = "Field `CNT_THR_EVENT_U6` reader - This is the interrupt raw bit for channel6 event."]
pub type CNT_THR_EVENT_U6_R = crate::BitReader;
#[doc = "Field `CNT_THR_EVENT_U7` reader - This is the interrupt raw bit for channel7 event."]
pub type CNT_THR_EVENT_U7_R = crate::BitReader;
impl R {
#[doc = "Bit 0 - This is the interrupt raw bit for channel0 event."]
#[inline(always)]
pub fn cnt_thr_event_u0(&self) -> CNT_THR_EVENT_U0_R {
CNT_THR_EVENT_U0_R::new((self.bits & 1) != 0)
}
#[doc = "Bit 1 - This is the interrupt raw bit for channel1 event."]
#[inline(always)]
pub fn cnt_thr_event_u1(&self) -> CNT_THR_EVENT_U1_R {
CNT_THR_EVENT_U1_R::new(((self.bits >> 1) & 1) != 0)
}
#[doc = "Bit 2 - This is the interrupt raw bit for channel2 event."]
#[inline(always)]
pub fn cnt_thr_event_u2(&self) -> CNT_THR_EVENT_U2_R {
CNT_THR_EVENT_U2_R::new(((self.bits >> 2) & 1) != 0)
}
#[doc = "Bit 3 - This is the interrupt raw bit for channel3 event."]
#[inline(always)]
pub fn cnt_thr_event_u3(&self) -> CNT_THR_EVENT_U3_R {
CNT_THR_EVENT_U3_R::new(((self.bits >> 3) & 1) != 0)
}
#[doc = "Bit 4 - This is the interrupt raw bit for channel4 event."]
#[inline(always)]
pub fn cnt_thr_event_u4(&self) -> CNT_THR_EVENT_U4_R {
CNT_THR_EVENT_U4_R::new(((self.bits >> 4) & 1) != 0)
}
#[doc = "Bit 5 - This is the interrupt raw bit for channel5 event."]
#[inline(always)]
pub fn cnt_thr_event_u5(&self) -> CNT_THR_EVENT_U5_R {
CNT_THR_EVENT_U5_R::new(((self.bits >> 5) & 1) != 0)
}
#[doc = "Bit 6 - This is the interrupt raw bit for channel6 event."]
#[inline(always)]
pub fn cnt_thr_event_u6(&self) -> CNT_THR_EVENT_U6_R {
CNT_THR_EVENT_U6_R::new(((self.bits >> 6) & 1) != 0)
}
#[doc = "Bit 7 - This is the interrupt raw bit for channel7 event."]
#[inline(always)]
pub fn cnt_thr_event_u7(&self) -> CNT_THR_EVENT_U7_R {
CNT_THR_EVENT_U7_R::new(((self.bits >> 7) & 1) != 0)
}
}
#[cfg(feature = "impl-register-debug")]
impl core::fmt::Debug for R {
fn fmt(&self, f: &mut core::fmt::Formatter) -> core::fmt::Result {
f.debug_struct("INT_RAW")
.field(
"cnt_thr_event_u0",
&format_args!("{}", self.cnt_thr_event_u0().bit()),
)
.field(
"cnt_thr_event_u1",
&format_args!("{}", self.cnt_thr_event_u1().bit()),
)
.field(
"cnt_thr_event_u2",
&format_args!("{}", self.cnt_thr_event_u2().bit()),
)
.field(
"cnt_thr_event_u3",
&format_args!("{}", self.cnt_thr_event_u3().bit()),
)
.field(
"cnt_thr_event_u4",
&format_args!("{}", self.cnt_thr_event_u4().bit()),
)
.field(
"cnt_thr_event_u5",
&format_args!("{}", self.cnt_thr_event_u5().bit()),
)
.field(
"cnt_thr_event_u6",
&format_args!("{}", self.cnt_thr_event_u6().bit()),
)
.field(
"cnt_thr_event_u7",
&format_args!("{}", self.cnt_thr_event_u7().bit()),
)
.finish()
}
}
#[cfg(feature = "impl-register-debug")]
impl core::fmt::Debug for crate::generic::Reg<INT_RAW_SPEC> {
fn fmt(&self, f: &mut core::fmt::Formatter<'_>) -> core::fmt::Result {
core::fmt::Debug::fmt(&self.read(), f)
}
}
#[doc = "\n\nYou can [`read`](crate::generic::Reg::read) this register and get [`int_raw::R`](R). See [API](https://docs.rs/svd2rust/#read--modify--write-api)."]
pub struct INT_RAW_SPEC;
impl crate::RegisterSpec for INT_RAW_SPEC {
type Ux = u32;
}
#[doc = "`read()` method returns [`int_raw::R`](R) reader structure"]
impl crate::Readable for INT_RAW_SPEC {}
#[doc = "`reset()` method sets INT_RAW to value 0"]
impl crate::Resettable for INT_RAW_SPEC {
const RESET_VALUE: u32 = 0;
}