d1_pac/tve/
tve_auto_detection_interrupt_status.rs

1#[doc = "Register `tve_auto_detection_interrupt_status` reader"]
2pub type R = crate::R<TVE_AUTO_DETECTION_INTERRUPT_STATUS_SPEC>;
3#[doc = "Register `tve_auto_detection_interrupt_status` writer"]
4pub type W = crate::W<TVE_AUTO_DETECTION_INTERRUPT_STATUS_SPEC>;
5#[doc = "Field `dac0_auto_detect_interrupt_active_flag` reader - Write 1 to inactive DAC0 auto detection interrupt"]
6pub type DAC0_AUTO_DETECT_INTERRUPT_ACTIVE_FLAG_R = crate::BitReader;
7#[doc = "Field `dac0_auto_detect_interrupt_active_flag` writer - Write 1 to inactive DAC0 auto detection interrupt"]
8pub type DAC0_AUTO_DETECT_INTERRUPT_ACTIVE_FLAG_W<'a, REG> = crate::BitWriter1C<'a, REG>;
9impl R {
10    #[doc = "Bit 0 - Write 1 to inactive DAC0 auto detection interrupt"]
11    #[inline(always)]
12    pub fn dac0_auto_detect_interrupt_active_flag(
13        &self,
14    ) -> DAC0_AUTO_DETECT_INTERRUPT_ACTIVE_FLAG_R {
15        DAC0_AUTO_DETECT_INTERRUPT_ACTIVE_FLAG_R::new((self.bits & 1) != 0)
16    }
17}
18impl W {
19    #[doc = "Bit 0 - Write 1 to inactive DAC0 auto detection interrupt"]
20    #[inline(always)]
21    #[must_use]
22    pub fn dac0_auto_detect_interrupt_active_flag(
23        &mut self,
24    ) -> DAC0_AUTO_DETECT_INTERRUPT_ACTIVE_FLAG_W<TVE_AUTO_DETECTION_INTERRUPT_STATUS_SPEC> {
25        DAC0_AUTO_DETECT_INTERRUPT_ACTIVE_FLAG_W::new(self, 0)
26    }
27    #[doc = r" Writes raw bits to the register."]
28    #[doc = r""]
29    #[doc = r" # Safety"]
30    #[doc = r""]
31    #[doc = r" Passing incorrect value can cause undefined behaviour. See reference manual"]
32    #[inline(always)]
33    pub unsafe fn bits(&mut self, bits: u32) -> &mut Self {
34        self.bits = bits;
35        self
36    }
37}
38#[doc = "TV Encoder Auto Detection Interrupt Status Register\n\nYou can [`read`](crate::generic::Reg::read) this register and get [`tve_auto_detection_interrupt_status::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 [`tve_auto_detection_interrupt_status::W`](W). You can also [`modify`](crate::generic::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api)."]
39pub struct TVE_AUTO_DETECTION_INTERRUPT_STATUS_SPEC;
40impl crate::RegisterSpec for TVE_AUTO_DETECTION_INTERRUPT_STATUS_SPEC {
41    type Ux = u32;
42}
43#[doc = "`read()` method returns [`tve_auto_detection_interrupt_status::R`](R) reader structure"]
44impl crate::Readable for TVE_AUTO_DETECTION_INTERRUPT_STATUS_SPEC {}
45#[doc = "`write(|w| ..)` method takes [`tve_auto_detection_interrupt_status::W`](W) writer structure"]
46impl crate::Writable for TVE_AUTO_DETECTION_INTERRUPT_STATUS_SPEC {
47    const ZERO_TO_MODIFY_FIELDS_BITMAP: Self::Ux = 0;
48    const ONE_TO_MODIFY_FIELDS_BITMAP: Self::Ux = 0x01;
49}
50#[doc = "`reset()` method sets tve_auto_detection_interrupt_status to value 0"]
51impl crate::Resettable for TVE_AUTO_DETECTION_INTERRUPT_STATUS_SPEC {
52    const RESET_VALUE: Self::Ux = 0;
53}