1#[doc = "Register `INT_CLR` writer"]
2pub type W = crate::W<INT_CLR_SPEC>;
3#[doc = "Field `DB_TMP_READY` writer - Write 1 to clear H264_DB_TMP_READY_INT."]
4pub type DB_TMP_READY_W<'a, REG> = crate::BitWriter1C<'a, REG>;
5#[doc = "Field `REC_READY` writer - Write 1 to clear H264_REC_READY_INT."]
6pub type REC_READY_W<'a, REG> = crate::BitWriter1C<'a, REG>;
7#[doc = "Field `FRAME_DONE` writer - Write 1 to clear H264_FRAME_DONE_INT."]
8pub type FRAME_DONE_W<'a, REG> = crate::BitWriter1C<'a, REG>;
9#[doc = "Field `DMA_MOVE_2MB_LINE_DONE` writer - Clear bit: Write 1 to clear H264_DMA_MOVE_2MB_LINE_DONE_INT."]
10pub type DMA_MOVE_2MB_LINE_DONE_W<'a, REG> = crate::BitWriter1C<'a, REG>;
11#[cfg(feature = "impl-register-debug")]
12impl core::fmt::Debug for crate::generic::Reg<INT_CLR_SPEC> {
13 fn fmt(&self, f: &mut core::fmt::Formatter<'_>) -> core::fmt::Result {
14 write!(f, "(not readable)")
15 }
16}
17impl W {
18 #[doc = "Bit 0 - Write 1 to clear H264_DB_TMP_READY_INT."]
19 #[inline(always)]
20 #[must_use]
21 pub fn db_tmp_ready(&mut self) -> DB_TMP_READY_W<INT_CLR_SPEC> {
22 DB_TMP_READY_W::new(self, 0)
23 }
24 #[doc = "Bit 1 - Write 1 to clear H264_REC_READY_INT."]
25 #[inline(always)]
26 #[must_use]
27 pub fn rec_ready(&mut self) -> REC_READY_W<INT_CLR_SPEC> {
28 REC_READY_W::new(self, 1)
29 }
30 #[doc = "Bit 2 - Write 1 to clear H264_FRAME_DONE_INT."]
31 #[inline(always)]
32 #[must_use]
33 pub fn frame_done(&mut self) -> FRAME_DONE_W<INT_CLR_SPEC> {
34 FRAME_DONE_W::new(self, 2)
35 }
36 #[doc = "Bit 3 - Clear bit: Write 1 to clear H264_DMA_MOVE_2MB_LINE_DONE_INT."]
37 #[inline(always)]
38 #[must_use]
39 pub fn dma_move_2mb_line_done(&mut self) -> DMA_MOVE_2MB_LINE_DONE_W<INT_CLR_SPEC> {
40 DMA_MOVE_2MB_LINE_DONE_W::new(self, 3)
41 }
42}
43#[doc = "Interrupt clear register\n\nYou can [`reset`](crate::generic::Reg::reset), [`write`](crate::generic::Reg::write), [`write_with_zero`](crate::generic::Reg::write_with_zero) this register using [`int_clr::W`](W). See [API](https://docs.rs/svd2rust/#read--modify--write-api)."]
44pub struct INT_CLR_SPEC;
45impl crate::RegisterSpec for INT_CLR_SPEC {
46 type Ux = u32;
47}
48#[doc = "`write(|w| ..)` method takes [`int_clr::W`](W) writer structure"]
49impl crate::Writable for INT_CLR_SPEC {
50 type Safety = crate::Unsafe;
51 const ZERO_TO_MODIFY_FIELDS_BITMAP: u32 = 0;
52 const ONE_TO_MODIFY_FIELDS_BITMAP: u32 = 0x0f;
53}
54#[doc = "`reset()` method sets INT_CLR to value 0"]
55impl crate::Resettable for INT_CLR_SPEC {
56 const RESET_VALUE: u32 = 0;
57}