1#[doc = "Register `INT_ST` reader"]
2pub type R = crate::R<INT_ST_SPEC>;
3#[doc = "Field `SR_EOF` reader - The raw interrupt status bit for the PPA_SR_EOF_INT interrupt."]
4pub type SR_EOF_R = crate::BitReader;
5#[doc = "Field `BLEND_EOF` reader - The raw interrupt status bit for the PPA_BLEND_EOF_INT interrupt."]
6pub type BLEND_EOF_R = crate::BitReader;
7#[doc = "Field `SR_PARAM_CFG_ERR` reader - The raw interrupt status bit for the PPA_SR_RX_YSCAL_ERR_INT interrupt."]
8pub type SR_PARAM_CFG_ERR_R = crate::BitReader;
9impl R {
10 #[doc = "Bit 0 - The raw interrupt status bit for the PPA_SR_EOF_INT interrupt."]
11 #[inline(always)]
12 pub fn sr_eof(&self) -> SR_EOF_R {
13 SR_EOF_R::new((self.bits & 1) != 0)
14 }
15 #[doc = "Bit 1 - The raw interrupt status bit for the PPA_BLEND_EOF_INT interrupt."]
16 #[inline(always)]
17 pub fn blend_eof(&self) -> BLEND_EOF_R {
18 BLEND_EOF_R::new(((self.bits >> 1) & 1) != 0)
19 }
20 #[doc = "Bit 2 - The raw interrupt status bit for the PPA_SR_RX_YSCAL_ERR_INT interrupt."]
21 #[inline(always)]
22 pub fn sr_param_cfg_err(&self) -> SR_PARAM_CFG_ERR_R {
23 SR_PARAM_CFG_ERR_R::new(((self.bits >> 2) & 1) != 0)
24 }
25}
26#[cfg(feature = "impl-register-debug")]
27impl core::fmt::Debug for R {
28 fn fmt(&self, f: &mut core::fmt::Formatter) -> core::fmt::Result {
29 f.debug_struct("INT_ST")
30 .field("sr_eof", &format_args!("{}", self.sr_eof().bit()))
31 .field("blend_eof", &format_args!("{}", self.blend_eof().bit()))
32 .field(
33 "sr_param_cfg_err",
34 &format_args!("{}", self.sr_param_cfg_err().bit()),
35 )
36 .finish()
37 }
38}
39#[cfg(feature = "impl-register-debug")]
40impl core::fmt::Debug for crate::generic::Reg<INT_ST_SPEC> {
41 fn fmt(&self, f: &mut core::fmt::Formatter<'_>) -> core::fmt::Result {
42 core::fmt::Debug::fmt(&self.read(), f)
43 }
44}
45#[doc = "Masked interrupt\n\nYou can [`read`](crate::generic::Reg::read) this register and get [`int_st::R`](R). See [API](https://docs.rs/svd2rust/#read--modify--write-api)."]
46pub struct INT_ST_SPEC;
47impl crate::RegisterSpec for INT_ST_SPEC {
48 type Ux = u32;
49}
50#[doc = "`read()` method returns [`int_st::R`](R) reader structure"]
51impl crate::Readable for INT_ST_SPEC {}
52#[doc = "`reset()` method sets INT_ST to value 0"]
53impl crate::Resettable for INT_ST_SPEC {
54 const RESET_VALUE: u32 = 0;
55}