esp32p4/jpeg/
int_raw.rs

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 `DONE_INT_RAW` reader - This raw interrupt bit turns to high level when JPEG finishes encoding a picture.."]
6pub type DONE_INT_RAW_R = crate::BitReader;
7#[doc = "Field `DONE_INT_RAW` writer - This raw interrupt bit turns to high level when JPEG finishes encoding a picture.."]
8pub type DONE_INT_RAW_W<'a, REG> = crate::BitWriter<'a, REG>;
9#[doc = "Field `RLE_PARALLEL_ERR_INT_RAW` reader - The raw interrupt bit to sign that rle parallel error when decoding."]
10pub type RLE_PARALLEL_ERR_INT_RAW_R = crate::BitReader;
11#[doc = "Field `RLE_PARALLEL_ERR_INT_RAW` writer - The raw interrupt bit to sign that rle parallel error when decoding."]
12pub type RLE_PARALLEL_ERR_INT_RAW_W<'a, REG> = crate::BitWriter<'a, REG>;
13#[doc = "Field `CID_ERR_INT_RAW` reader - The raw interrupt bit to sign that scan id check with component fails when decoding."]
14pub type CID_ERR_INT_RAW_R = crate::BitReader;
15#[doc = "Field `CID_ERR_INT_RAW` writer - The raw interrupt bit to sign that scan id check with component fails when decoding."]
16pub type CID_ERR_INT_RAW_W<'a, REG> = crate::BitWriter<'a, REG>;
17#[doc = "Field `C_DHT_DC_ID_ERR_INT_RAW` reader - The raw interrupt bit to sign that scan component's dc dht id check with dc dht table's id fails when decoding."]
18pub type C_DHT_DC_ID_ERR_INT_RAW_R = crate::BitReader;
19#[doc = "Field `C_DHT_DC_ID_ERR_INT_RAW` writer - The raw interrupt bit to sign that scan component's dc dht id check with dc dht table's id fails when decoding."]
20pub type C_DHT_DC_ID_ERR_INT_RAW_W<'a, REG> = crate::BitWriter<'a, REG>;
21#[doc = "Field `C_DHT_AC_ID_ERR_INT_RAW` reader - The raw interrupt bit to sign that scan component's ac dht id check with ac dht table's id fails when decoding."]
22pub type C_DHT_AC_ID_ERR_INT_RAW_R = crate::BitReader;
23#[doc = "Field `C_DHT_AC_ID_ERR_INT_RAW` writer - The raw interrupt bit to sign that scan component's ac dht id check with ac dht table's id fails when decoding."]
24pub type C_DHT_AC_ID_ERR_INT_RAW_W<'a, REG> = crate::BitWriter<'a, REG>;
25#[doc = "Field `C_DQT_ID_ERR_INT_RAW` reader - The raw interrupt bit to sign that scan component's dqt id check with dqt table's id fails when decoding."]
26pub type C_DQT_ID_ERR_INT_RAW_R = crate::BitReader;
27#[doc = "Field `C_DQT_ID_ERR_INT_RAW` writer - The raw interrupt bit to sign that scan component's dqt id check with dqt table's id fails when decoding."]
28pub type C_DQT_ID_ERR_INT_RAW_W<'a, REG> = crate::BitWriter<'a, REG>;
29#[doc = "Field `RST_UXP_ERR_INT_RAW` reader - The raw interrupt bit to sign that RST header marker is detected but restart interval is 0 when decoding."]
30pub type RST_UXP_ERR_INT_RAW_R = crate::BitReader;
31#[doc = "Field `RST_UXP_ERR_INT_RAW` writer - The raw interrupt bit to sign that RST header marker is detected but restart interval is 0 when decoding."]
32pub type RST_UXP_ERR_INT_RAW_W<'a, REG> = crate::BitWriter<'a, REG>;
33#[doc = "Field `RST_CHECK_NONE_ERR_INT_RAW` reader - The raw interrupt bit to sign that RST header marker is not detected but restart interval is not 0 when decoding."]
34pub type RST_CHECK_NONE_ERR_INT_RAW_R = crate::BitReader;
35#[doc = "Field `RST_CHECK_NONE_ERR_INT_RAW` writer - The raw interrupt bit to sign that RST header marker is not detected but restart interval is not 0 when decoding."]
36pub type RST_CHECK_NONE_ERR_INT_RAW_W<'a, REG> = crate::BitWriter<'a, REG>;
37#[doc = "Field `RST_CHECK_POS_ERR_INT_RAW` reader - The raw interrupt bit to sign that RST header marker position mismatches with restart interval when decoding."]
38pub type RST_CHECK_POS_ERR_INT_RAW_R = crate::BitReader;
39#[doc = "Field `RST_CHECK_POS_ERR_INT_RAW` writer - The raw interrupt bit to sign that RST header marker position mismatches with restart interval when decoding."]
40pub type RST_CHECK_POS_ERR_INT_RAW_W<'a, REG> = crate::BitWriter<'a, REG>;
41#[doc = "Field `OUT_EOF_INT_RAW` reader - The raw interrupt bit turns to high level when the last pixel of one square has been transmitted for Tx channel."]
42pub type OUT_EOF_INT_RAW_R = crate::BitReader;
43#[doc = "Field `OUT_EOF_INT_RAW` writer - The raw interrupt bit turns to high level when the last pixel of one square has been transmitted for Tx channel."]
44pub type OUT_EOF_INT_RAW_W<'a, REG> = crate::BitWriter<'a, REG>;
45#[doc = "Field `SR_COLOR_MODE_ERR_INT_RAW` reader - The raw interrupt bit to sign that the selected source color mode is not supported."]
46pub type SR_COLOR_MODE_ERR_INT_RAW_R = crate::BitReader;
47#[doc = "Field `SR_COLOR_MODE_ERR_INT_RAW` writer - The raw interrupt bit to sign that the selected source color mode is not supported."]
48pub type SR_COLOR_MODE_ERR_INT_RAW_W<'a, REG> = crate::BitWriter<'a, REG>;
49#[doc = "Field `DCT_DONE_INT_RAW` reader - The raw interrupt bit to sign that one dct calculation is finished."]
50pub type DCT_DONE_INT_RAW_R = crate::BitReader;
51#[doc = "Field `DCT_DONE_INT_RAW` writer - The raw interrupt bit to sign that one dct calculation is finished."]
52pub type DCT_DONE_INT_RAW_W<'a, REG> = crate::BitWriter<'a, REG>;
53#[doc = "Field `BS_LAST_BLOCK_EOF_INT_RAW` reader - The raw interrupt bit to sign that the coding process for last block is finished."]
54pub type BS_LAST_BLOCK_EOF_INT_RAW_R = crate::BitReader;
55#[doc = "Field `BS_LAST_BLOCK_EOF_INT_RAW` writer - The raw interrupt bit to sign that the coding process for last block is finished."]
56pub type BS_LAST_BLOCK_EOF_INT_RAW_W<'a, REG> = crate::BitWriter<'a, REG>;
57#[doc = "Field `SCAN_CHECK_NONE_ERR_INT_RAW` reader - The raw interrupt bit to sign that SOS header marker is not detected but there are still components left to be decoded."]
58pub type SCAN_CHECK_NONE_ERR_INT_RAW_R = crate::BitReader;
59#[doc = "Field `SCAN_CHECK_NONE_ERR_INT_RAW` writer - The raw interrupt bit to sign that SOS header marker is not detected but there are still components left to be decoded."]
60pub type SCAN_CHECK_NONE_ERR_INT_RAW_W<'a, REG> = crate::BitWriter<'a, REG>;
61#[doc = "Field `SCAN_CHECK_POS_ERR_INT_RAW` reader - The raw interrupt bit to sign that SOS header marker position wrong when decoding."]
62pub type SCAN_CHECK_POS_ERR_INT_RAW_R = crate::BitReader;
63#[doc = "Field `SCAN_CHECK_POS_ERR_INT_RAW` writer - The raw interrupt bit to sign that SOS header marker position wrong when decoding."]
64pub type SCAN_CHECK_POS_ERR_INT_RAW_W<'a, REG> = crate::BitWriter<'a, REG>;
65#[doc = "Field `UXP_DET_INT_RAW` reader - The raw interrupt bit to sign that unsupported header marker is detected when decoding."]
66pub type UXP_DET_INT_RAW_R = crate::BitReader;
67#[doc = "Field `UXP_DET_INT_RAW` writer - The raw interrupt bit to sign that unsupported header marker is detected when decoding."]
68pub type UXP_DET_INT_RAW_W<'a, REG> = crate::BitWriter<'a, REG>;
69#[doc = "Field `EN_FRAME_EOF_ERR_INT_RAW` reader - The raw interrupt bit to sign that received pixel blocks are smaller than expected when encoding."]
70pub type EN_FRAME_EOF_ERR_INT_RAW_R = crate::BitReader;
71#[doc = "Field `EN_FRAME_EOF_ERR_INT_RAW` writer - The raw interrupt bit to sign that received pixel blocks are smaller than expected when encoding."]
72pub type EN_FRAME_EOF_ERR_INT_RAW_W<'a, REG> = crate::BitWriter<'a, REG>;
73#[doc = "Field `EN_FRAME_EOF_LACK_INT_RAW` reader - The raw interrupt bit to sign that the frame eof sign bit from dma input is missing when encoding. But the number of pixel blocks is enough."]
74pub type EN_FRAME_EOF_LACK_INT_RAW_R = crate::BitReader;
75#[doc = "Field `EN_FRAME_EOF_LACK_INT_RAW` writer - The raw interrupt bit to sign that the frame eof sign bit from dma input is missing when encoding. But the number of pixel blocks is enough."]
76pub type EN_FRAME_EOF_LACK_INT_RAW_W<'a, REG> = crate::BitWriter<'a, REG>;
77#[doc = "Field `DE_FRAME_EOF_ERR_INT_RAW` reader - The raw interrupt bit to sign that decoded blocks are smaller than expected when decoding."]
78pub type DE_FRAME_EOF_ERR_INT_RAW_R = crate::BitReader;
79#[doc = "Field `DE_FRAME_EOF_ERR_INT_RAW` writer - The raw interrupt bit to sign that decoded blocks are smaller than expected when decoding."]
80pub type DE_FRAME_EOF_ERR_INT_RAW_W<'a, REG> = crate::BitWriter<'a, REG>;
81#[doc = "Field `DE_FRAME_EOF_LACK_INT_RAW` reader - The raw interrupt bit to sign that the either frame eof from dma input or eoi marker is missing when encoding. But the number of decoded blocks is enough."]
82pub type DE_FRAME_EOF_LACK_INT_RAW_R = crate::BitReader;
83#[doc = "Field `DE_FRAME_EOF_LACK_INT_RAW` writer - The raw interrupt bit to sign that the either frame eof from dma input or eoi marker is missing when encoding. But the number of decoded blocks is enough."]
84pub type DE_FRAME_EOF_LACK_INT_RAW_W<'a, REG> = crate::BitWriter<'a, REG>;
85#[doc = "Field `SOS_UNMATCH_ERR_INT_RAW` reader - The raw interrupt bit to sign that the component number of a scan is 0 or does not match the sos marker's length when decoding."]
86pub type SOS_UNMATCH_ERR_INT_RAW_R = crate::BitReader;
87#[doc = "Field `SOS_UNMATCH_ERR_INT_RAW` writer - The raw interrupt bit to sign that the component number of a scan is 0 or does not match the sos marker's length when decoding."]
88pub type SOS_UNMATCH_ERR_INT_RAW_W<'a, REG> = crate::BitWriter<'a, REG>;
89#[doc = "Field `MARKER_ERR_FST_SCAN_INT_RAW` reader - The raw interrupt bit to sign that the first scan has header marker error when decoding."]
90pub type MARKER_ERR_FST_SCAN_INT_RAW_R = crate::BitReader;
91#[doc = "Field `MARKER_ERR_FST_SCAN_INT_RAW` writer - The raw interrupt bit to sign that the first scan has header marker error when decoding."]
92pub type MARKER_ERR_FST_SCAN_INT_RAW_W<'a, REG> = crate::BitWriter<'a, REG>;
93#[doc = "Field `MARKER_ERR_OTHER_SCAN_INT_RAW` reader - The raw interrupt bit to sign that the following scans but not the first scan have header marker error when decoding."]
94pub type MARKER_ERR_OTHER_SCAN_INT_RAW_R = crate::BitReader;
95#[doc = "Field `MARKER_ERR_OTHER_SCAN_INT_RAW` writer - The raw interrupt bit to sign that the following scans but not the first scan have header marker error when decoding."]
96pub type MARKER_ERR_OTHER_SCAN_INT_RAW_W<'a, REG> = crate::BitWriter<'a, REG>;
97#[doc = "Field `UNDET_INT_RAW` reader - The raw interrupt bit to sign that JPEG format is not detected at the eof data of a packet when decoding."]
98pub type UNDET_INT_RAW_R = crate::BitReader;
99#[doc = "Field `UNDET_INT_RAW` writer - The raw interrupt bit to sign that JPEG format is not detected at the eof data of a packet when decoding."]
100pub type UNDET_INT_RAW_W<'a, REG> = crate::BitWriter<'a, REG>;
101#[doc = "Field `DECODE_TIMEOUT_INT_RAW` reader - The raw interrupt bit to sign that decode pause time is longer than the setting decode timeout time when decoding."]
102pub type DECODE_TIMEOUT_INT_RAW_R = crate::BitReader;
103#[doc = "Field `DECODE_TIMEOUT_INT_RAW` writer - The raw interrupt bit to sign that decode pause time is longer than the setting decode timeout time when decoding."]
104pub type DECODE_TIMEOUT_INT_RAW_W<'a, REG> = crate::BitWriter<'a, REG>;
105impl R {
106    #[doc = "Bit 0 - This raw interrupt bit turns to high level when JPEG finishes encoding a picture.."]
107    #[inline(always)]
108    pub fn done_int_raw(&self) -> DONE_INT_RAW_R {
109        DONE_INT_RAW_R::new((self.bits & 1) != 0)
110    }
111    #[doc = "Bit 1 - The raw interrupt bit to sign that rle parallel error when decoding."]
112    #[inline(always)]
113    pub fn rle_parallel_err_int_raw(&self) -> RLE_PARALLEL_ERR_INT_RAW_R {
114        RLE_PARALLEL_ERR_INT_RAW_R::new(((self.bits >> 1) & 1) != 0)
115    }
116    #[doc = "Bit 2 - The raw interrupt bit to sign that scan id check with component fails when decoding."]
117    #[inline(always)]
118    pub fn cid_err_int_raw(&self) -> CID_ERR_INT_RAW_R {
119        CID_ERR_INT_RAW_R::new(((self.bits >> 2) & 1) != 0)
120    }
121    #[doc = "Bit 3 - The raw interrupt bit to sign that scan component's dc dht id check with dc dht table's id fails when decoding."]
122    #[inline(always)]
123    pub fn c_dht_dc_id_err_int_raw(&self) -> C_DHT_DC_ID_ERR_INT_RAW_R {
124        C_DHT_DC_ID_ERR_INT_RAW_R::new(((self.bits >> 3) & 1) != 0)
125    }
126    #[doc = "Bit 4 - The raw interrupt bit to sign that scan component's ac dht id check with ac dht table's id fails when decoding."]
127    #[inline(always)]
128    pub fn c_dht_ac_id_err_int_raw(&self) -> C_DHT_AC_ID_ERR_INT_RAW_R {
129        C_DHT_AC_ID_ERR_INT_RAW_R::new(((self.bits >> 4) & 1) != 0)
130    }
131    #[doc = "Bit 5 - The raw interrupt bit to sign that scan component's dqt id check with dqt table's id fails when decoding."]
132    #[inline(always)]
133    pub fn c_dqt_id_err_int_raw(&self) -> C_DQT_ID_ERR_INT_RAW_R {
134        C_DQT_ID_ERR_INT_RAW_R::new(((self.bits >> 5) & 1) != 0)
135    }
136    #[doc = "Bit 6 - The raw interrupt bit to sign that RST header marker is detected but restart interval is 0 when decoding."]
137    #[inline(always)]
138    pub fn rst_uxp_err_int_raw(&self) -> RST_UXP_ERR_INT_RAW_R {
139        RST_UXP_ERR_INT_RAW_R::new(((self.bits >> 6) & 1) != 0)
140    }
141    #[doc = "Bit 7 - The raw interrupt bit to sign that RST header marker is not detected but restart interval is not 0 when decoding."]
142    #[inline(always)]
143    pub fn rst_check_none_err_int_raw(&self) -> RST_CHECK_NONE_ERR_INT_RAW_R {
144        RST_CHECK_NONE_ERR_INT_RAW_R::new(((self.bits >> 7) & 1) != 0)
145    }
146    #[doc = "Bit 8 - The raw interrupt bit to sign that RST header marker position mismatches with restart interval when decoding."]
147    #[inline(always)]
148    pub fn rst_check_pos_err_int_raw(&self) -> RST_CHECK_POS_ERR_INT_RAW_R {
149        RST_CHECK_POS_ERR_INT_RAW_R::new(((self.bits >> 8) & 1) != 0)
150    }
151    #[doc = "Bit 9 - The raw interrupt bit turns to high level when the last pixel of one square has been transmitted for Tx channel."]
152    #[inline(always)]
153    pub fn out_eof_int_raw(&self) -> OUT_EOF_INT_RAW_R {
154        OUT_EOF_INT_RAW_R::new(((self.bits >> 9) & 1) != 0)
155    }
156    #[doc = "Bit 10 - The raw interrupt bit to sign that the selected source color mode is not supported."]
157    #[inline(always)]
158    pub fn sr_color_mode_err_int_raw(&self) -> SR_COLOR_MODE_ERR_INT_RAW_R {
159        SR_COLOR_MODE_ERR_INT_RAW_R::new(((self.bits >> 10) & 1) != 0)
160    }
161    #[doc = "Bit 11 - The raw interrupt bit to sign that one dct calculation is finished."]
162    #[inline(always)]
163    pub fn dct_done_int_raw(&self) -> DCT_DONE_INT_RAW_R {
164        DCT_DONE_INT_RAW_R::new(((self.bits >> 11) & 1) != 0)
165    }
166    #[doc = "Bit 12 - The raw interrupt bit to sign that the coding process for last block is finished."]
167    #[inline(always)]
168    pub fn bs_last_block_eof_int_raw(&self) -> BS_LAST_BLOCK_EOF_INT_RAW_R {
169        BS_LAST_BLOCK_EOF_INT_RAW_R::new(((self.bits >> 12) & 1) != 0)
170    }
171    #[doc = "Bit 13 - The raw interrupt bit to sign that SOS header marker is not detected but there are still components left to be decoded."]
172    #[inline(always)]
173    pub fn scan_check_none_err_int_raw(&self) -> SCAN_CHECK_NONE_ERR_INT_RAW_R {
174        SCAN_CHECK_NONE_ERR_INT_RAW_R::new(((self.bits >> 13) & 1) != 0)
175    }
176    #[doc = "Bit 14 - The raw interrupt bit to sign that SOS header marker position wrong when decoding."]
177    #[inline(always)]
178    pub fn scan_check_pos_err_int_raw(&self) -> SCAN_CHECK_POS_ERR_INT_RAW_R {
179        SCAN_CHECK_POS_ERR_INT_RAW_R::new(((self.bits >> 14) & 1) != 0)
180    }
181    #[doc = "Bit 15 - The raw interrupt bit to sign that unsupported header marker is detected when decoding."]
182    #[inline(always)]
183    pub fn uxp_det_int_raw(&self) -> UXP_DET_INT_RAW_R {
184        UXP_DET_INT_RAW_R::new(((self.bits >> 15) & 1) != 0)
185    }
186    #[doc = "Bit 16 - The raw interrupt bit to sign that received pixel blocks are smaller than expected when encoding."]
187    #[inline(always)]
188    pub fn en_frame_eof_err_int_raw(&self) -> EN_FRAME_EOF_ERR_INT_RAW_R {
189        EN_FRAME_EOF_ERR_INT_RAW_R::new(((self.bits >> 16) & 1) != 0)
190    }
191    #[doc = "Bit 17 - The raw interrupt bit to sign that the frame eof sign bit from dma input is missing when encoding. But the number of pixel blocks is enough."]
192    #[inline(always)]
193    pub fn en_frame_eof_lack_int_raw(&self) -> EN_FRAME_EOF_LACK_INT_RAW_R {
194        EN_FRAME_EOF_LACK_INT_RAW_R::new(((self.bits >> 17) & 1) != 0)
195    }
196    #[doc = "Bit 18 - The raw interrupt bit to sign that decoded blocks are smaller than expected when decoding."]
197    #[inline(always)]
198    pub fn de_frame_eof_err_int_raw(&self) -> DE_FRAME_EOF_ERR_INT_RAW_R {
199        DE_FRAME_EOF_ERR_INT_RAW_R::new(((self.bits >> 18) & 1) != 0)
200    }
201    #[doc = "Bit 19 - The raw interrupt bit to sign that the either frame eof from dma input or eoi marker is missing when encoding. But the number of decoded blocks is enough."]
202    #[inline(always)]
203    pub fn de_frame_eof_lack_int_raw(&self) -> DE_FRAME_EOF_LACK_INT_RAW_R {
204        DE_FRAME_EOF_LACK_INT_RAW_R::new(((self.bits >> 19) & 1) != 0)
205    }
206    #[doc = "Bit 20 - The raw interrupt bit to sign that the component number of a scan is 0 or does not match the sos marker's length when decoding."]
207    #[inline(always)]
208    pub fn sos_unmatch_err_int_raw(&self) -> SOS_UNMATCH_ERR_INT_RAW_R {
209        SOS_UNMATCH_ERR_INT_RAW_R::new(((self.bits >> 20) & 1) != 0)
210    }
211    #[doc = "Bit 21 - The raw interrupt bit to sign that the first scan has header marker error when decoding."]
212    #[inline(always)]
213    pub fn marker_err_fst_scan_int_raw(&self) -> MARKER_ERR_FST_SCAN_INT_RAW_R {
214        MARKER_ERR_FST_SCAN_INT_RAW_R::new(((self.bits >> 21) & 1) != 0)
215    }
216    #[doc = "Bit 22 - The raw interrupt bit to sign that the following scans but not the first scan have header marker error when decoding."]
217    #[inline(always)]
218    pub fn marker_err_other_scan_int_raw(&self) -> MARKER_ERR_OTHER_SCAN_INT_RAW_R {
219        MARKER_ERR_OTHER_SCAN_INT_RAW_R::new(((self.bits >> 22) & 1) != 0)
220    }
221    #[doc = "Bit 23 - The raw interrupt bit to sign that JPEG format is not detected at the eof data of a packet when decoding."]
222    #[inline(always)]
223    pub fn undet_int_raw(&self) -> UNDET_INT_RAW_R {
224        UNDET_INT_RAW_R::new(((self.bits >> 23) & 1) != 0)
225    }
226    #[doc = "Bit 24 - The raw interrupt bit to sign that decode pause time is longer than the setting decode timeout time when decoding."]
227    #[inline(always)]
228    pub fn decode_timeout_int_raw(&self) -> DECODE_TIMEOUT_INT_RAW_R {
229        DECODE_TIMEOUT_INT_RAW_R::new(((self.bits >> 24) & 1) != 0)
230    }
231}
232#[cfg(feature = "impl-register-debug")]
233impl core::fmt::Debug for R {
234    fn fmt(&self, f: &mut core::fmt::Formatter) -> core::fmt::Result {
235        f.debug_struct("INT_RAW")
236            .field(
237                "done_int_raw",
238                &format_args!("{}", self.done_int_raw().bit()),
239            )
240            .field(
241                "rle_parallel_err_int_raw",
242                &format_args!("{}", self.rle_parallel_err_int_raw().bit()),
243            )
244            .field(
245                "cid_err_int_raw",
246                &format_args!("{}", self.cid_err_int_raw().bit()),
247            )
248            .field(
249                "c_dht_dc_id_err_int_raw",
250                &format_args!("{}", self.c_dht_dc_id_err_int_raw().bit()),
251            )
252            .field(
253                "c_dht_ac_id_err_int_raw",
254                &format_args!("{}", self.c_dht_ac_id_err_int_raw().bit()),
255            )
256            .field(
257                "c_dqt_id_err_int_raw",
258                &format_args!("{}", self.c_dqt_id_err_int_raw().bit()),
259            )
260            .field(
261                "rst_uxp_err_int_raw",
262                &format_args!("{}", self.rst_uxp_err_int_raw().bit()),
263            )
264            .field(
265                "rst_check_none_err_int_raw",
266                &format_args!("{}", self.rst_check_none_err_int_raw().bit()),
267            )
268            .field(
269                "rst_check_pos_err_int_raw",
270                &format_args!("{}", self.rst_check_pos_err_int_raw().bit()),
271            )
272            .field(
273                "out_eof_int_raw",
274                &format_args!("{}", self.out_eof_int_raw().bit()),
275            )
276            .field(
277                "sr_color_mode_err_int_raw",
278                &format_args!("{}", self.sr_color_mode_err_int_raw().bit()),
279            )
280            .field(
281                "dct_done_int_raw",
282                &format_args!("{}", self.dct_done_int_raw().bit()),
283            )
284            .field(
285                "bs_last_block_eof_int_raw",
286                &format_args!("{}", self.bs_last_block_eof_int_raw().bit()),
287            )
288            .field(
289                "scan_check_none_err_int_raw",
290                &format_args!("{}", self.scan_check_none_err_int_raw().bit()),
291            )
292            .field(
293                "scan_check_pos_err_int_raw",
294                &format_args!("{}", self.scan_check_pos_err_int_raw().bit()),
295            )
296            .field(
297                "uxp_det_int_raw",
298                &format_args!("{}", self.uxp_det_int_raw().bit()),
299            )
300            .field(
301                "en_frame_eof_err_int_raw",
302                &format_args!("{}", self.en_frame_eof_err_int_raw().bit()),
303            )
304            .field(
305                "en_frame_eof_lack_int_raw",
306                &format_args!("{}", self.en_frame_eof_lack_int_raw().bit()),
307            )
308            .field(
309                "de_frame_eof_err_int_raw",
310                &format_args!("{}", self.de_frame_eof_err_int_raw().bit()),
311            )
312            .field(
313                "de_frame_eof_lack_int_raw",
314                &format_args!("{}", self.de_frame_eof_lack_int_raw().bit()),
315            )
316            .field(
317                "sos_unmatch_err_int_raw",
318                &format_args!("{}", self.sos_unmatch_err_int_raw().bit()),
319            )
320            .field(
321                "marker_err_fst_scan_int_raw",
322                &format_args!("{}", self.marker_err_fst_scan_int_raw().bit()),
323            )
324            .field(
325                "marker_err_other_scan_int_raw",
326                &format_args!("{}", self.marker_err_other_scan_int_raw().bit()),
327            )
328            .field(
329                "undet_int_raw",
330                &format_args!("{}", self.undet_int_raw().bit()),
331            )
332            .field(
333                "decode_timeout_int_raw",
334                &format_args!("{}", self.decode_timeout_int_raw().bit()),
335            )
336            .finish()
337    }
338}
339#[cfg(feature = "impl-register-debug")]
340impl core::fmt::Debug for crate::generic::Reg<INT_RAW_SPEC> {
341    fn fmt(&self, f: &mut core::fmt::Formatter<'_>) -> core::fmt::Result {
342        core::fmt::Debug::fmt(&self.read(), f)
343    }
344}
345impl W {
346    #[doc = "Bit 0 - This raw interrupt bit turns to high level when JPEG finishes encoding a picture.."]
347    #[inline(always)]
348    #[must_use]
349    pub fn done_int_raw(&mut self) -> DONE_INT_RAW_W<INT_RAW_SPEC> {
350        DONE_INT_RAW_W::new(self, 0)
351    }
352    #[doc = "Bit 1 - The raw interrupt bit to sign that rle parallel error when decoding."]
353    #[inline(always)]
354    #[must_use]
355    pub fn rle_parallel_err_int_raw(&mut self) -> RLE_PARALLEL_ERR_INT_RAW_W<INT_RAW_SPEC> {
356        RLE_PARALLEL_ERR_INT_RAW_W::new(self, 1)
357    }
358    #[doc = "Bit 2 - The raw interrupt bit to sign that scan id check with component fails when decoding."]
359    #[inline(always)]
360    #[must_use]
361    pub fn cid_err_int_raw(&mut self) -> CID_ERR_INT_RAW_W<INT_RAW_SPEC> {
362        CID_ERR_INT_RAW_W::new(self, 2)
363    }
364    #[doc = "Bit 3 - The raw interrupt bit to sign that scan component's dc dht id check with dc dht table's id fails when decoding."]
365    #[inline(always)]
366    #[must_use]
367    pub fn c_dht_dc_id_err_int_raw(&mut self) -> C_DHT_DC_ID_ERR_INT_RAW_W<INT_RAW_SPEC> {
368        C_DHT_DC_ID_ERR_INT_RAW_W::new(self, 3)
369    }
370    #[doc = "Bit 4 - The raw interrupt bit to sign that scan component's ac dht id check with ac dht table's id fails when decoding."]
371    #[inline(always)]
372    #[must_use]
373    pub fn c_dht_ac_id_err_int_raw(&mut self) -> C_DHT_AC_ID_ERR_INT_RAW_W<INT_RAW_SPEC> {
374        C_DHT_AC_ID_ERR_INT_RAW_W::new(self, 4)
375    }
376    #[doc = "Bit 5 - The raw interrupt bit to sign that scan component's dqt id check with dqt table's id fails when decoding."]
377    #[inline(always)]
378    #[must_use]
379    pub fn c_dqt_id_err_int_raw(&mut self) -> C_DQT_ID_ERR_INT_RAW_W<INT_RAW_SPEC> {
380        C_DQT_ID_ERR_INT_RAW_W::new(self, 5)
381    }
382    #[doc = "Bit 6 - The raw interrupt bit to sign that RST header marker is detected but restart interval is 0 when decoding."]
383    #[inline(always)]
384    #[must_use]
385    pub fn rst_uxp_err_int_raw(&mut self) -> RST_UXP_ERR_INT_RAW_W<INT_RAW_SPEC> {
386        RST_UXP_ERR_INT_RAW_W::new(self, 6)
387    }
388    #[doc = "Bit 7 - The raw interrupt bit to sign that RST header marker is not detected but restart interval is not 0 when decoding."]
389    #[inline(always)]
390    #[must_use]
391    pub fn rst_check_none_err_int_raw(&mut self) -> RST_CHECK_NONE_ERR_INT_RAW_W<INT_RAW_SPEC> {
392        RST_CHECK_NONE_ERR_INT_RAW_W::new(self, 7)
393    }
394    #[doc = "Bit 8 - The raw interrupt bit to sign that RST header marker position mismatches with restart interval when decoding."]
395    #[inline(always)]
396    #[must_use]
397    pub fn rst_check_pos_err_int_raw(&mut self) -> RST_CHECK_POS_ERR_INT_RAW_W<INT_RAW_SPEC> {
398        RST_CHECK_POS_ERR_INT_RAW_W::new(self, 8)
399    }
400    #[doc = "Bit 9 - The raw interrupt bit turns to high level when the last pixel of one square has been transmitted for Tx channel."]
401    #[inline(always)]
402    #[must_use]
403    pub fn out_eof_int_raw(&mut self) -> OUT_EOF_INT_RAW_W<INT_RAW_SPEC> {
404        OUT_EOF_INT_RAW_W::new(self, 9)
405    }
406    #[doc = "Bit 10 - The raw interrupt bit to sign that the selected source color mode is not supported."]
407    #[inline(always)]
408    #[must_use]
409    pub fn sr_color_mode_err_int_raw(&mut self) -> SR_COLOR_MODE_ERR_INT_RAW_W<INT_RAW_SPEC> {
410        SR_COLOR_MODE_ERR_INT_RAW_W::new(self, 10)
411    }
412    #[doc = "Bit 11 - The raw interrupt bit to sign that one dct calculation is finished."]
413    #[inline(always)]
414    #[must_use]
415    pub fn dct_done_int_raw(&mut self) -> DCT_DONE_INT_RAW_W<INT_RAW_SPEC> {
416        DCT_DONE_INT_RAW_W::new(self, 11)
417    }
418    #[doc = "Bit 12 - The raw interrupt bit to sign that the coding process for last block is finished."]
419    #[inline(always)]
420    #[must_use]
421    pub fn bs_last_block_eof_int_raw(&mut self) -> BS_LAST_BLOCK_EOF_INT_RAW_W<INT_RAW_SPEC> {
422        BS_LAST_BLOCK_EOF_INT_RAW_W::new(self, 12)
423    }
424    #[doc = "Bit 13 - The raw interrupt bit to sign that SOS header marker is not detected but there are still components left to be decoded."]
425    #[inline(always)]
426    #[must_use]
427    pub fn scan_check_none_err_int_raw(&mut self) -> SCAN_CHECK_NONE_ERR_INT_RAW_W<INT_RAW_SPEC> {
428        SCAN_CHECK_NONE_ERR_INT_RAW_W::new(self, 13)
429    }
430    #[doc = "Bit 14 - The raw interrupt bit to sign that SOS header marker position wrong when decoding."]
431    #[inline(always)]
432    #[must_use]
433    pub fn scan_check_pos_err_int_raw(&mut self) -> SCAN_CHECK_POS_ERR_INT_RAW_W<INT_RAW_SPEC> {
434        SCAN_CHECK_POS_ERR_INT_RAW_W::new(self, 14)
435    }
436    #[doc = "Bit 15 - The raw interrupt bit to sign that unsupported header marker is detected when decoding."]
437    #[inline(always)]
438    #[must_use]
439    pub fn uxp_det_int_raw(&mut self) -> UXP_DET_INT_RAW_W<INT_RAW_SPEC> {
440        UXP_DET_INT_RAW_W::new(self, 15)
441    }
442    #[doc = "Bit 16 - The raw interrupt bit to sign that received pixel blocks are smaller than expected when encoding."]
443    #[inline(always)]
444    #[must_use]
445    pub fn en_frame_eof_err_int_raw(&mut self) -> EN_FRAME_EOF_ERR_INT_RAW_W<INT_RAW_SPEC> {
446        EN_FRAME_EOF_ERR_INT_RAW_W::new(self, 16)
447    }
448    #[doc = "Bit 17 - The raw interrupt bit to sign that the frame eof sign bit from dma input is missing when encoding. But the number of pixel blocks is enough."]
449    #[inline(always)]
450    #[must_use]
451    pub fn en_frame_eof_lack_int_raw(&mut self) -> EN_FRAME_EOF_LACK_INT_RAW_W<INT_RAW_SPEC> {
452        EN_FRAME_EOF_LACK_INT_RAW_W::new(self, 17)
453    }
454    #[doc = "Bit 18 - The raw interrupt bit to sign that decoded blocks are smaller than expected when decoding."]
455    #[inline(always)]
456    #[must_use]
457    pub fn de_frame_eof_err_int_raw(&mut self) -> DE_FRAME_EOF_ERR_INT_RAW_W<INT_RAW_SPEC> {
458        DE_FRAME_EOF_ERR_INT_RAW_W::new(self, 18)
459    }
460    #[doc = "Bit 19 - The raw interrupt bit to sign that the either frame eof from dma input or eoi marker is missing when encoding. But the number of decoded blocks is enough."]
461    #[inline(always)]
462    #[must_use]
463    pub fn de_frame_eof_lack_int_raw(&mut self) -> DE_FRAME_EOF_LACK_INT_RAW_W<INT_RAW_SPEC> {
464        DE_FRAME_EOF_LACK_INT_RAW_W::new(self, 19)
465    }
466    #[doc = "Bit 20 - The raw interrupt bit to sign that the component number of a scan is 0 or does not match the sos marker's length when decoding."]
467    #[inline(always)]
468    #[must_use]
469    pub fn sos_unmatch_err_int_raw(&mut self) -> SOS_UNMATCH_ERR_INT_RAW_W<INT_RAW_SPEC> {
470        SOS_UNMATCH_ERR_INT_RAW_W::new(self, 20)
471    }
472    #[doc = "Bit 21 - The raw interrupt bit to sign that the first scan has header marker error when decoding."]
473    #[inline(always)]
474    #[must_use]
475    pub fn marker_err_fst_scan_int_raw(&mut self) -> MARKER_ERR_FST_SCAN_INT_RAW_W<INT_RAW_SPEC> {
476        MARKER_ERR_FST_SCAN_INT_RAW_W::new(self, 21)
477    }
478    #[doc = "Bit 22 - The raw interrupt bit to sign that the following scans but not the first scan have header marker error when decoding."]
479    #[inline(always)]
480    #[must_use]
481    pub fn marker_err_other_scan_int_raw(
482        &mut self,
483    ) -> MARKER_ERR_OTHER_SCAN_INT_RAW_W<INT_RAW_SPEC> {
484        MARKER_ERR_OTHER_SCAN_INT_RAW_W::new(self, 22)
485    }
486    #[doc = "Bit 23 - The raw interrupt bit to sign that JPEG format is not detected at the eof data of a packet when decoding."]
487    #[inline(always)]
488    #[must_use]
489    pub fn undet_int_raw(&mut self) -> UNDET_INT_RAW_W<INT_RAW_SPEC> {
490        UNDET_INT_RAW_W::new(self, 23)
491    }
492    #[doc = "Bit 24 - The raw interrupt bit to sign that decode pause time is longer than the setting decode timeout time when decoding."]
493    #[inline(always)]
494    #[must_use]
495    pub fn decode_timeout_int_raw(&mut self) -> DECODE_TIMEOUT_INT_RAW_W<INT_RAW_SPEC> {
496        DECODE_TIMEOUT_INT_RAW_W::new(self, 24)
497    }
498}
499#[doc = "Interrupt raw registers\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)."]
500pub struct INT_RAW_SPEC;
501impl crate::RegisterSpec for INT_RAW_SPEC {
502    type Ux = u32;
503}
504#[doc = "`read()` method returns [`int_raw::R`](R) reader structure"]
505impl crate::Readable for INT_RAW_SPEC {}
506#[doc = "`write(|w| ..)` method takes [`int_raw::W`](W) writer structure"]
507impl crate::Writable for INT_RAW_SPEC {
508    type Safety = crate::Unsafe;
509    const ZERO_TO_MODIFY_FIELDS_BITMAP: u32 = 0;
510    const ONE_TO_MODIFY_FIELDS_BITMAP: u32 = 0;
511}
512#[doc = "`reset()` method sets INT_RAW to value 0"]
513impl crate::Resettable for INT_RAW_SPEC {
514    const RESET_VALUE: u32 = 0;
515}