Skip to main content

efm32pg1b_pac/pcnt0/
ifs.rs

1///Register `IFS` writer
2pub type W = crate::W<IFSrs>;
3///Field `UF` writer - Set UF Interrupt Flag
4pub type UfW<'a, REG> = crate::BitWriter<'a, REG>;
5///Field `OF` writer - Set OF Interrupt Flag
6pub type OfW<'a, REG> = crate::BitWriter<'a, REG>;
7///Field `DIRCNG` writer - Set DIRCNG Interrupt Flag
8pub type DircngW<'a, REG> = crate::BitWriter<'a, REG>;
9///Field `AUXOF` writer - Set AUXOF Interrupt Flag
10pub type AuxofW<'a, REG> = crate::BitWriter<'a, REG>;
11///Field `TCC` writer - Set TCC Interrupt Flag
12pub type TccW<'a, REG> = crate::BitWriter<'a, REG>;
13///Field `OQSTERR` writer - Set OQSTERR Interrupt Flag
14pub type OqsterrW<'a, REG> = crate::BitWriter<'a, REG>;
15impl core::fmt::Debug for crate::generic::Reg<IFSrs> {
16    fn fmt(&self, f: &mut core::fmt::Formatter<'_>) -> core::fmt::Result {
17        write!(f, "(not readable)")
18    }
19}
20impl W {
21    ///Bit 0 - Set UF Interrupt Flag
22    #[inline(always)]
23    pub fn uf(&mut self) -> UfW<'_, IFSrs> {
24        UfW::new(self, 0)
25    }
26    ///Bit 1 - Set OF Interrupt Flag
27    #[inline(always)]
28    pub fn of(&mut self) -> OfW<'_, IFSrs> {
29        OfW::new(self, 1)
30    }
31    ///Bit 2 - Set DIRCNG Interrupt Flag
32    #[inline(always)]
33    pub fn dircng(&mut self) -> DircngW<'_, IFSrs> {
34        DircngW::new(self, 2)
35    }
36    ///Bit 3 - Set AUXOF Interrupt Flag
37    #[inline(always)]
38    pub fn auxof(&mut self) -> AuxofW<'_, IFSrs> {
39        AuxofW::new(self, 3)
40    }
41    ///Bit 4 - Set TCC Interrupt Flag
42    #[inline(always)]
43    pub fn tcc(&mut self) -> TccW<'_, IFSrs> {
44        TccW::new(self, 4)
45    }
46    ///Bit 5 - Set OQSTERR Interrupt Flag
47    #[inline(always)]
48    pub fn oqsterr(&mut self) -> OqsterrW<'_, IFSrs> {
49        OqsterrW::new(self, 5)
50    }
51}
52///Interrupt Flag Set Register
53///
54///You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`ifs::W`](W). See [API](https://docs.rs/svd2rust/#read--modify--write-api).
55pub struct IFSrs;
56impl crate::RegisterSpec for IFSrs {
57    type Ux = u32;
58}
59///`write(|w| ..)` method takes [`ifs::W`](W) writer structure
60impl crate::Writable for IFSrs {
61    type Safety = crate::Unsafe;
62}
63///`reset()` method sets IFS to value 0
64impl crate::Resettable for IFSrs {}