1#[doc = "Register `INT_RAW` reader"]
2pub type R = crate::R<INT_RAW_SPEC>;
3#[doc = "Register `INT_RAW` writer"]
4pub type W = crate::W<INT_RAW_SPEC>;
5#[doc = "Field `SR_EOF` reader - The raw interrupt bit turns to high level when scaling and rotating engine calculate one frame image."]
6pub type SR_EOF_R = crate::BitReader;
7#[doc = "Field `SR_EOF` writer - The raw interrupt bit turns to high level when scaling and rotating engine calculate one frame image."]
8pub type SR_EOF_W<'a, REG> = crate::BitWriter<'a, REG>;
9#[doc = "Field `BLEND_EOF` reader - The raw interrupt bit turns to high level when blending engine calculate one frame image."]
10pub type BLEND_EOF_R = crate::BitReader;
11#[doc = "Field `BLEND_EOF` writer - The raw interrupt bit turns to high level when blending engine calculate one frame image."]
12pub type BLEND_EOF_W<'a, REG> = crate::BitWriter<'a, REG>;
13#[doc = "Field `SR_PARAM_CFG_ERR` reader - The raw interrupt bit turns to high level when the configured scaling and rotating coefficient is wrong. User can check the reasons through register PPA_SR_PARAM_ERR_ST_REG."]
14pub type SR_PARAM_CFG_ERR_R = crate::BitReader;
15#[doc = "Field `SR_PARAM_CFG_ERR` writer - The raw interrupt bit turns to high level when the configured scaling and rotating coefficient is wrong. User can check the reasons through register PPA_SR_PARAM_ERR_ST_REG."]
16pub type SR_PARAM_CFG_ERR_W<'a, REG> = crate::BitWriter<'a, REG>;
17impl R {
18 #[doc = "Bit 0 - The raw interrupt bit turns to high level when scaling and rotating engine calculate one frame image."]
19 #[inline(always)]
20 pub fn sr_eof(&self) -> SR_EOF_R {
21 SR_EOF_R::new((self.bits & 1) != 0)
22 }
23 #[doc = "Bit 1 - The raw interrupt bit turns to high level when blending engine calculate one frame image."]
24 #[inline(always)]
25 pub fn blend_eof(&self) -> BLEND_EOF_R {
26 BLEND_EOF_R::new(((self.bits >> 1) & 1) != 0)
27 }
28 #[doc = "Bit 2 - The raw interrupt bit turns to high level when the configured scaling and rotating coefficient is wrong. User can check the reasons through register PPA_SR_PARAM_ERR_ST_REG."]
29 #[inline(always)]
30 pub fn sr_param_cfg_err(&self) -> SR_PARAM_CFG_ERR_R {
31 SR_PARAM_CFG_ERR_R::new(((self.bits >> 2) & 1) != 0)
32 }
33}
34#[cfg(feature = "impl-register-debug")]
35impl core::fmt::Debug for R {
36 fn fmt(&self, f: &mut core::fmt::Formatter) -> core::fmt::Result {
37 f.debug_struct("INT_RAW")
38 .field("sr_eof", &format_args!("{}", self.sr_eof().bit()))
39 .field("blend_eof", &format_args!("{}", self.blend_eof().bit()))
40 .field(
41 "sr_param_cfg_err",
42 &format_args!("{}", self.sr_param_cfg_err().bit()),
43 )
44 .finish()
45 }
46}
47#[cfg(feature = "impl-register-debug")]
48impl core::fmt::Debug for crate::generic::Reg<INT_RAW_SPEC> {
49 fn fmt(&self, f: &mut core::fmt::Formatter<'_>) -> core::fmt::Result {
50 core::fmt::Debug::fmt(&self.read(), f)
51 }
52}
53impl W {
54 #[doc = "Bit 0 - The raw interrupt bit turns to high level when scaling and rotating engine calculate one frame image."]
55 #[inline(always)]
56 #[must_use]
57 pub fn sr_eof(&mut self) -> SR_EOF_W<INT_RAW_SPEC> {
58 SR_EOF_W::new(self, 0)
59 }
60 #[doc = "Bit 1 - The raw interrupt bit turns to high level when blending engine calculate one frame image."]
61 #[inline(always)]
62 #[must_use]
63 pub fn blend_eof(&mut self) -> BLEND_EOF_W<INT_RAW_SPEC> {
64 BLEND_EOF_W::new(self, 1)
65 }
66 #[doc = "Bit 2 - The raw interrupt bit turns to high level when the configured scaling and rotating coefficient is wrong. User can check the reasons through register PPA_SR_PARAM_ERR_ST_REG."]
67 #[inline(always)]
68 #[must_use]
69 pub fn sr_param_cfg_err(&mut self) -> SR_PARAM_CFG_ERR_W<INT_RAW_SPEC> {
70 SR_PARAM_CFG_ERR_W::new(self, 2)
71 }
72}
73#[doc = "Raw status interrupt\n\nYou can [`read`](crate::generic::Reg::read) this register and get [`int_raw::R`](R). You can [`reset`](crate::generic::Reg::reset), [`write`](crate::generic::Reg::write), [`write_with_zero`](crate::generic::Reg::write_with_zero) this register using [`int_raw::W`](W). You can also [`modify`](crate::generic::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api)."]
74pub struct INT_RAW_SPEC;
75impl crate::RegisterSpec for INT_RAW_SPEC {
76 type Ux = u32;
77}
78#[doc = "`read()` method returns [`int_raw::R`](R) reader structure"]
79impl crate::Readable for INT_RAW_SPEC {}
80#[doc = "`write(|w| ..)` method takes [`int_raw::W`](W) writer structure"]
81impl crate::Writable for INT_RAW_SPEC {
82 type Safety = crate::Unsafe;
83 const ZERO_TO_MODIFY_FIELDS_BITMAP: u32 = 0;
84 const ONE_TO_MODIFY_FIELDS_BITMAP: u32 = 0;
85}
86#[doc = "`reset()` method sets INT_RAW to value 0"]
87impl crate::Resettable for INT_RAW_SPEC {
88 const RESET_VALUE: u32 = 0;
89}