efm32gg12b430_pac/ebi/
ifs.rs

1#[doc = "Register `IFS` writer"]
2pub struct W(crate::W<IFS_SPEC>);
3impl core::ops::Deref for W {
4    type Target = crate::W<IFS_SPEC>;
5    #[inline(always)]
6    fn deref(&self) -> &Self::Target {
7        &self.0
8    }
9}
10impl core::ops::DerefMut for W {
11    #[inline(always)]
12    fn deref_mut(&mut self) -> &mut Self::Target {
13        &mut self.0
14    }
15}
16impl From<crate::W<IFS_SPEC>> for W {
17    #[inline(always)]
18    fn from(writer: crate::W<IFS_SPEC>) -> Self {
19        W(writer)
20    }
21}
22#[doc = "Field `VSYNC` writer - Vertical Sync Interrupt Flag Set"]
23pub type VSYNC_W<'a> = crate::BitWriter<'a, u32, IFS_SPEC, bool, 0>;
24#[doc = "Field `HSYNC` writer - Horizontal Sync Interrupt Flag Set"]
25pub type HSYNC_W<'a> = crate::BitWriter<'a, u32, IFS_SPEC, bool, 1>;
26#[doc = "Field `VBPORCH` writer - Vertical Back Porch Interrupt Flag Set"]
27pub type VBPORCH_W<'a> = crate::BitWriter<'a, u32, IFS_SPEC, bool, 2>;
28#[doc = "Field `VFPORCH` writer - Vertical Front Porch Interrupt Flag Set"]
29pub type VFPORCH_W<'a> = crate::BitWriter<'a, u32, IFS_SPEC, bool, 3>;
30#[doc = "Field `DDEMPTY` writer - Direct Drive Data Empty Interrupt Flag Set"]
31pub type DDEMPTY_W<'a> = crate::BitWriter<'a, u32, IFS_SPEC, bool, 4>;
32#[doc = "Field `DDJIT` writer - Direct Drive Jitter Interrupt Flag Set"]
33pub type DDJIT_W<'a> = crate::BitWriter<'a, u32, IFS_SPEC, bool, 5>;
34#[doc = "Field `TFTPIXEL0EMPTY` writer - EBI_TFTPIXEL0 Empty Interrupt Flag Set"]
35pub type TFTPIXEL0EMPTY_W<'a> = crate::BitWriter<'a, u32, IFS_SPEC, bool, 6>;
36#[doc = "Field `TFTPIXEL1EMPTY` writer - EBI_TFTPIXEL1 Empty Interrupt Flag Set"]
37pub type TFTPIXEL1EMPTY_W<'a> = crate::BitWriter<'a, u32, IFS_SPEC, bool, 7>;
38#[doc = "Field `TFTPIXELFULL` writer - EBI_TFTPIXEL Full Interrupt Flag Set"]
39pub type TFTPIXELFULL_W<'a> = crate::BitWriter<'a, u32, IFS_SPEC, bool, 8>;
40#[doc = "Field `TFTPIXELOF` writer - EBI_TFTPIXEL Overflow Interrupt Flag Set"]
41pub type TFTPIXELOF_W<'a> = crate::BitWriter<'a, u32, IFS_SPEC, bool, 9>;
42impl W {
43    #[doc = "Bit 0 - Vertical Sync Interrupt Flag Set"]
44    #[inline(always)]
45    pub fn vsync(&mut self) -> VSYNC_W {
46        VSYNC_W::new(self)
47    }
48    #[doc = "Bit 1 - Horizontal Sync Interrupt Flag Set"]
49    #[inline(always)]
50    pub fn hsync(&mut self) -> HSYNC_W {
51        HSYNC_W::new(self)
52    }
53    #[doc = "Bit 2 - Vertical Back Porch Interrupt Flag Set"]
54    #[inline(always)]
55    pub fn vbporch(&mut self) -> VBPORCH_W {
56        VBPORCH_W::new(self)
57    }
58    #[doc = "Bit 3 - Vertical Front Porch Interrupt Flag Set"]
59    #[inline(always)]
60    pub fn vfporch(&mut self) -> VFPORCH_W {
61        VFPORCH_W::new(self)
62    }
63    #[doc = "Bit 4 - Direct Drive Data Empty Interrupt Flag Set"]
64    #[inline(always)]
65    pub fn ddempty(&mut self) -> DDEMPTY_W {
66        DDEMPTY_W::new(self)
67    }
68    #[doc = "Bit 5 - Direct Drive Jitter Interrupt Flag Set"]
69    #[inline(always)]
70    pub fn ddjit(&mut self) -> DDJIT_W {
71        DDJIT_W::new(self)
72    }
73    #[doc = "Bit 6 - EBI_TFTPIXEL0 Empty Interrupt Flag Set"]
74    #[inline(always)]
75    pub fn tftpixel0empty(&mut self) -> TFTPIXEL0EMPTY_W {
76        TFTPIXEL0EMPTY_W::new(self)
77    }
78    #[doc = "Bit 7 - EBI_TFTPIXEL1 Empty Interrupt Flag Set"]
79    #[inline(always)]
80    pub fn tftpixel1empty(&mut self) -> TFTPIXEL1EMPTY_W {
81        TFTPIXEL1EMPTY_W::new(self)
82    }
83    #[doc = "Bit 8 - EBI_TFTPIXEL Full Interrupt Flag Set"]
84    #[inline(always)]
85    pub fn tftpixelfull(&mut self) -> TFTPIXELFULL_W {
86        TFTPIXELFULL_W::new(self)
87    }
88    #[doc = "Bit 9 - EBI_TFTPIXEL Overflow Interrupt Flag Set"]
89    #[inline(always)]
90    pub fn tftpixelof(&mut self) -> TFTPIXELOF_W {
91        TFTPIXELOF_W::new(self)
92    }
93    #[doc = "Writes raw bits to the register."]
94    #[inline(always)]
95    pub unsafe fn bits(&mut self, bits: u32) -> &mut Self {
96        self.0.bits(bits);
97        self
98    }
99}
100#[doc = "Interrupt Flag Set Register\n\nThis register you can [`write_with_zero`](crate::generic::Reg::write_with_zero), [`reset`](crate::generic::Reg::reset), [`write`](crate::generic::Reg::write). See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [ifs](index.html) module"]
101pub struct IFS_SPEC;
102impl crate::RegisterSpec for IFS_SPEC {
103    type Ux = u32;
104}
105#[doc = "`write(|w| ..)` method takes [ifs::W](W) writer structure"]
106impl crate::Writable for IFS_SPEC {
107    type Writer = W;
108}
109#[doc = "`reset()` method sets IFS to value 0"]
110impl crate::Resettable for IFS_SPEC {
111    #[inline(always)]
112    fn reset_value() -> Self::Ux {
113        0
114    }
115}