esp32p4/h264/
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 `DB_TMP_READY` reader - Raw status bit: The raw interrupt status of H264_DB_TMP_READY_INT. Triggered when H264 written enough db tmp pixel."]
6pub type DB_TMP_READY_R = crate::BitReader;
7#[doc = "Field `DB_TMP_READY` writer - Raw status bit: The raw interrupt status of H264_DB_TMP_READY_INT. Triggered when H264 written enough db tmp pixel."]
8pub type DB_TMP_READY_W<'a, REG> = crate::BitWriter<'a, REG>;
9#[doc = "Field `REC_READY` reader - Raw status bit: The raw interrupt status of H264_REC_READY_INT. Triggered when H264 encoding enough reconstruct pixel."]
10pub type REC_READY_R = crate::BitReader;
11#[doc = "Field `REC_READY` writer - Raw status bit: The raw interrupt status of H264_REC_READY_INT. Triggered when H264 encoding enough reconstruct pixel."]
12pub type REC_READY_W<'a, REG> = crate::BitWriter<'a, REG>;
13#[doc = "Field `FRAME_DONE` reader - Raw status bit: The raw interrupt status of H264_FRAME_DONE_INT. Triggered when H264 encoding one frame done."]
14pub type FRAME_DONE_R = crate::BitReader;
15#[doc = "Field `FRAME_DONE` writer - Raw status bit: The raw interrupt status of H264_FRAME_DONE_INT. Triggered when H264 encoding one frame done."]
16pub type FRAME_DONE_W<'a, REG> = crate::BitWriter<'a, REG>;
17#[doc = "Field `DMA_MOVE_2MB_LINE_DONE` reader - Raw status bit: The raw interrupt status of H264_DMA_MOVE_2MB_LINE_DONE_INT. Triggered when H264 move two MB lines of reference frame from external mem to internal mem done."]
18pub type DMA_MOVE_2MB_LINE_DONE_R = crate::BitReader;
19#[doc = "Field `DMA_MOVE_2MB_LINE_DONE` writer - Raw status bit: The raw interrupt status of H264_DMA_MOVE_2MB_LINE_DONE_INT. Triggered when H264 move two MB lines of reference frame from external mem to internal mem done."]
20pub type DMA_MOVE_2MB_LINE_DONE_W<'a, REG> = crate::BitWriter<'a, REG>;
21impl R {
22    #[doc = "Bit 0 - Raw status bit: The raw interrupt status of H264_DB_TMP_READY_INT. Triggered when H264 written enough db tmp pixel."]
23    #[inline(always)]
24    pub fn db_tmp_ready(&self) -> DB_TMP_READY_R {
25        DB_TMP_READY_R::new((self.bits & 1) != 0)
26    }
27    #[doc = "Bit 1 - Raw status bit: The raw interrupt status of H264_REC_READY_INT. Triggered when H264 encoding enough reconstruct pixel."]
28    #[inline(always)]
29    pub fn rec_ready(&self) -> REC_READY_R {
30        REC_READY_R::new(((self.bits >> 1) & 1) != 0)
31    }
32    #[doc = "Bit 2 - Raw status bit: The raw interrupt status of H264_FRAME_DONE_INT. Triggered when H264 encoding one frame done."]
33    #[inline(always)]
34    pub fn frame_done(&self) -> FRAME_DONE_R {
35        FRAME_DONE_R::new(((self.bits >> 2) & 1) != 0)
36    }
37    #[doc = "Bit 3 - Raw status bit: The raw interrupt status of H264_DMA_MOVE_2MB_LINE_DONE_INT. Triggered when H264 move two MB lines of reference frame from external mem to internal mem done."]
38    #[inline(always)]
39    pub fn dma_move_2mb_line_done(&self) -> DMA_MOVE_2MB_LINE_DONE_R {
40        DMA_MOVE_2MB_LINE_DONE_R::new(((self.bits >> 3) & 1) != 0)
41    }
42}
43#[cfg(feature = "impl-register-debug")]
44impl core::fmt::Debug for R {
45    fn fmt(&self, f: &mut core::fmt::Formatter) -> core::fmt::Result {
46        f.debug_struct("INT_RAW")
47            .field(
48                "db_tmp_ready",
49                &format_args!("{}", self.db_tmp_ready().bit()),
50            )
51            .field("rec_ready", &format_args!("{}", self.rec_ready().bit()))
52            .field("frame_done", &format_args!("{}", self.frame_done().bit()))
53            .field(
54                "dma_move_2mb_line_done",
55                &format_args!("{}", self.dma_move_2mb_line_done().bit()),
56            )
57            .finish()
58    }
59}
60#[cfg(feature = "impl-register-debug")]
61impl core::fmt::Debug for crate::generic::Reg<INT_RAW_SPEC> {
62    fn fmt(&self, f: &mut core::fmt::Formatter<'_>) -> core::fmt::Result {
63        core::fmt::Debug::fmt(&self.read(), f)
64    }
65}
66impl W {
67    #[doc = "Bit 0 - Raw status bit: The raw interrupt status of H264_DB_TMP_READY_INT. Triggered when H264 written enough db tmp pixel."]
68    #[inline(always)]
69    #[must_use]
70    pub fn db_tmp_ready(&mut self) -> DB_TMP_READY_W<INT_RAW_SPEC> {
71        DB_TMP_READY_W::new(self, 0)
72    }
73    #[doc = "Bit 1 - Raw status bit: The raw interrupt status of H264_REC_READY_INT. Triggered when H264 encoding enough reconstruct pixel."]
74    #[inline(always)]
75    #[must_use]
76    pub fn rec_ready(&mut self) -> REC_READY_W<INT_RAW_SPEC> {
77        REC_READY_W::new(self, 1)
78    }
79    #[doc = "Bit 2 - Raw status bit: The raw interrupt status of H264_FRAME_DONE_INT. Triggered when H264 encoding one frame done."]
80    #[inline(always)]
81    #[must_use]
82    pub fn frame_done(&mut self) -> FRAME_DONE_W<INT_RAW_SPEC> {
83        FRAME_DONE_W::new(self, 2)
84    }
85    #[doc = "Bit 3 - Raw status bit: The raw interrupt status of H264_DMA_MOVE_2MB_LINE_DONE_INT. Triggered when H264 move two MB lines of reference frame from external mem to internal mem done."]
86    #[inline(always)]
87    #[must_use]
88    pub fn dma_move_2mb_line_done(&mut self) -> DMA_MOVE_2MB_LINE_DONE_W<INT_RAW_SPEC> {
89        DMA_MOVE_2MB_LINE_DONE_W::new(self, 3)
90    }
91}
92#[doc = "Interrupt raw status register\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)."]
93pub struct INT_RAW_SPEC;
94impl crate::RegisterSpec for INT_RAW_SPEC {
95    type Ux = u32;
96}
97#[doc = "`read()` method returns [`int_raw::R`](R) reader structure"]
98impl crate::Readable for INT_RAW_SPEC {}
99#[doc = "`write(|w| ..)` method takes [`int_raw::W`](W) writer structure"]
100impl crate::Writable for INT_RAW_SPEC {
101    type Safety = crate::Unsafe;
102    const ZERO_TO_MODIFY_FIELDS_BITMAP: u32 = 0;
103    const ONE_TO_MODIFY_FIELDS_BITMAP: u32 = 0;
104}
105#[doc = "`reset()` method sets INT_RAW to value 0"]
106impl crate::Resettable for INT_RAW_SPEC {
107    const RESET_VALUE: u32 = 0;
108}