#[doc = "Register `ETIFR` reader"]
pub struct R(crate::R<ETIFR_SPEC>);
impl core::ops::Deref for R {
type Target = crate::R<ETIFR_SPEC>;
#[inline(always)]
fn deref(&self) -> &Self::Target {
&self.0
}
}
impl core::convert::From<crate::R<ETIFR_SPEC>> for R {
fn from(reader: crate::R<ETIFR_SPEC>) -> Self {
R(reader)
}
}
#[doc = "Field `OCF1C` reader - Timer/Counter 1, Output Compare C Match Flag"]
pub struct OCF1C_R(crate::FieldReader<bool, bool>);
impl OCF1C_R {
pub(crate) fn new(bits: bool) -> Self {
OCF1C_R(crate::FieldReader::new(bits))
}
}
impl core::ops::Deref for OCF1C_R {
type Target = crate::FieldReader<bool, bool>;
#[inline(always)]
fn deref(&self) -> &Self::Target {
&self.0
}
}
impl R {
#[doc = "Bit 0 - Timer/Counter 1, Output Compare C Match Flag"]
#[inline(always)]
pub fn ocf1c(&self) -> OCF1C_R {
OCF1C_R::new((self.bits & 0x01) != 0)
}
}
#[doc = "Extended Timer/Counter Interrupt Flag register\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 [etifr](index.html) module"]
pub struct ETIFR_SPEC;
impl crate::RegisterSpec for ETIFR_SPEC {
type Ux = u8;
}
#[doc = "`read()` method returns [etifr::R](R) reader structure"]
impl crate::Readable for ETIFR_SPEC {
type Reader = R;
}
#[doc = "`reset()` method sets ETIFR to value 0"]
impl crate::Resettable for ETIFR_SPEC {
#[inline(always)]
fn reset_value() -> Self::Ux {
0
}
}