#[doc = "Register `ISR2` reader"]
pub struct R(crate::R<ISR2_SPEC>);
impl core::ops::Deref for R {
type Target = crate::R<ISR2_SPEC>;
#[inline(always)]
fn deref(&self) -> &Self::Target {
&self.0
}
}
impl From<crate::R<ISR2_SPEC>> for R {
#[inline(always)]
fn from(reader: crate::R<ISR2_SPEC>) -> Self {
R(reader)
}
}
#[doc = "Field `WRDY` reader - Write Ready for Synchronous Channels Update"]
pub type WRDY_R = crate::BitReader<bool>;
#[doc = "Field `ENDTX` reader - PDC End of TX Buffer"]
pub type ENDTX_R = crate::BitReader<bool>;
#[doc = "Field `TXBUFE` reader - PDC TX Buffer Empty"]
pub type TXBUFE_R = crate::BitReader<bool>;
#[doc = "Field `UNRE` reader - Synchronous Channels Update Underrun Error"]
pub type UNRE_R = crate::BitReader<bool>;
#[doc = "Field `CMPM0` reader - Comparison 0 Match"]
pub type CMPM0_R = crate::BitReader<bool>;
#[doc = "Field `CMPM1` reader - Comparison 1 Match"]
pub type CMPM1_R = crate::BitReader<bool>;
#[doc = "Field `CMPM2` reader - Comparison 2 Match"]
pub type CMPM2_R = crate::BitReader<bool>;
#[doc = "Field `CMPM3` reader - Comparison 3 Match"]
pub type CMPM3_R = crate::BitReader<bool>;
#[doc = "Field `CMPM4` reader - Comparison 4 Match"]
pub type CMPM4_R = crate::BitReader<bool>;
#[doc = "Field `CMPM5` reader - Comparison 5 Match"]
pub type CMPM5_R = crate::BitReader<bool>;
#[doc = "Field `CMPM6` reader - Comparison 6 Match"]
pub type CMPM6_R = crate::BitReader<bool>;
#[doc = "Field `CMPM7` reader - Comparison 7 Match"]
pub type CMPM7_R = crate::BitReader<bool>;
#[doc = "Field `CMPU0` reader - Comparison 0 Update"]
pub type CMPU0_R = crate::BitReader<bool>;
#[doc = "Field `CMPU1` reader - Comparison 1 Update"]
pub type CMPU1_R = crate::BitReader<bool>;
#[doc = "Field `CMPU2` reader - Comparison 2 Update"]
pub type CMPU2_R = crate::BitReader<bool>;
#[doc = "Field `CMPU3` reader - Comparison 3 Update"]
pub type CMPU3_R = crate::BitReader<bool>;
#[doc = "Field `CMPU4` reader - Comparison 4 Update"]
pub type CMPU4_R = crate::BitReader<bool>;
#[doc = "Field `CMPU5` reader - Comparison 5 Update"]
pub type CMPU5_R = crate::BitReader<bool>;
#[doc = "Field `CMPU6` reader - Comparison 6 Update"]
pub type CMPU6_R = crate::BitReader<bool>;
#[doc = "Field `CMPU7` reader - Comparison 7 Update"]
pub type CMPU7_R = crate::BitReader<bool>;
impl R {
#[doc = "Bit 0 - Write Ready for Synchronous Channels Update"]
#[inline(always)]
pub fn wrdy(&self) -> WRDY_R {
WRDY_R::new((self.bits & 1) != 0)
}
#[doc = "Bit 1 - PDC End of TX Buffer"]
#[inline(always)]
pub fn endtx(&self) -> ENDTX_R {
ENDTX_R::new(((self.bits >> 1) & 1) != 0)
}
#[doc = "Bit 2 - PDC TX Buffer Empty"]
#[inline(always)]
pub fn txbufe(&self) -> TXBUFE_R {
TXBUFE_R::new(((self.bits >> 2) & 1) != 0)
}
#[doc = "Bit 3 - Synchronous Channels Update Underrun Error"]
#[inline(always)]
pub fn unre(&self) -> UNRE_R {
UNRE_R::new(((self.bits >> 3) & 1) != 0)
}
#[doc = "Bit 8 - Comparison 0 Match"]
#[inline(always)]
pub fn cmpm0(&self) -> CMPM0_R {
CMPM0_R::new(((self.bits >> 8) & 1) != 0)
}
#[doc = "Bit 9 - Comparison 1 Match"]
#[inline(always)]
pub fn cmpm1(&self) -> CMPM1_R {
CMPM1_R::new(((self.bits >> 9) & 1) != 0)
}
#[doc = "Bit 10 - Comparison 2 Match"]
#[inline(always)]
pub fn cmpm2(&self) -> CMPM2_R {
CMPM2_R::new(((self.bits >> 10) & 1) != 0)
}
#[doc = "Bit 11 - Comparison 3 Match"]
#[inline(always)]
pub fn cmpm3(&self) -> CMPM3_R {
CMPM3_R::new(((self.bits >> 11) & 1) != 0)
}
#[doc = "Bit 12 - Comparison 4 Match"]
#[inline(always)]
pub fn cmpm4(&self) -> CMPM4_R {
CMPM4_R::new(((self.bits >> 12) & 1) != 0)
}
#[doc = "Bit 13 - Comparison 5 Match"]
#[inline(always)]
pub fn cmpm5(&self) -> CMPM5_R {
CMPM5_R::new(((self.bits >> 13) & 1) != 0)
}
#[doc = "Bit 14 - Comparison 6 Match"]
#[inline(always)]
pub fn cmpm6(&self) -> CMPM6_R {
CMPM6_R::new(((self.bits >> 14) & 1) != 0)
}
#[doc = "Bit 15 - Comparison 7 Match"]
#[inline(always)]
pub fn cmpm7(&self) -> CMPM7_R {
CMPM7_R::new(((self.bits >> 15) & 1) != 0)
}
#[doc = "Bit 16 - Comparison 0 Update"]
#[inline(always)]
pub fn cmpu0(&self) -> CMPU0_R {
CMPU0_R::new(((self.bits >> 16) & 1) != 0)
}
#[doc = "Bit 17 - Comparison 1 Update"]
#[inline(always)]
pub fn cmpu1(&self) -> CMPU1_R {
CMPU1_R::new(((self.bits >> 17) & 1) != 0)
}
#[doc = "Bit 18 - Comparison 2 Update"]
#[inline(always)]
pub fn cmpu2(&self) -> CMPU2_R {
CMPU2_R::new(((self.bits >> 18) & 1) != 0)
}
#[doc = "Bit 19 - Comparison 3 Update"]
#[inline(always)]
pub fn cmpu3(&self) -> CMPU3_R {
CMPU3_R::new(((self.bits >> 19) & 1) != 0)
}
#[doc = "Bit 20 - Comparison 4 Update"]
#[inline(always)]
pub fn cmpu4(&self) -> CMPU4_R {
CMPU4_R::new(((self.bits >> 20) & 1) != 0)
}
#[doc = "Bit 21 - Comparison 5 Update"]
#[inline(always)]
pub fn cmpu5(&self) -> CMPU5_R {
CMPU5_R::new(((self.bits >> 21) & 1) != 0)
}
#[doc = "Bit 22 - Comparison 6 Update"]
#[inline(always)]
pub fn cmpu6(&self) -> CMPU6_R {
CMPU6_R::new(((self.bits >> 22) & 1) != 0)
}
#[doc = "Bit 23 - Comparison 7 Update"]
#[inline(always)]
pub fn cmpu7(&self) -> CMPU7_R {
CMPU7_R::new(((self.bits >> 23) & 1) != 0)
}
}
#[doc = "PWM Interrupt Status Register 2\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 [isr2](index.html) module"]
pub struct ISR2_SPEC;
impl crate::RegisterSpec for ISR2_SPEC {
type Ux = u32;
}
#[doc = "`read()` method returns [isr2::R](R) reader structure"]
impl crate::Readable for ISR2_SPEC {
type Reader = R;
}
#[doc = "`reset()` method sets ISR2 to value 0"]
impl crate::Resettable for ISR2_SPEC {
const RESET_VALUE: Self::Ux = 0;
}