Skip to main content

efm32pg1b_pac/cryotimer/
ifc.rs

1///Register `IFC` writer
2pub type W = crate::W<IFCrs>;
3///Field `PERIOD` writer - Clear PERIOD Interrupt Flag
4pub type PeriodW<'a, REG> = crate::BitWriter<'a, REG>;
5impl core::fmt::Debug for crate::generic::Reg<IFCrs> {
6    fn fmt(&self, f: &mut core::fmt::Formatter<'_>) -> core::fmt::Result {
7        write!(f, "(not readable)")
8    }
9}
10impl W {
11    ///Bit 0 - Clear PERIOD Interrupt Flag
12    #[inline(always)]
13    pub fn period(&mut self) -> PeriodW<'_, IFCrs> {
14        PeriodW::new(self, 0)
15    }
16}
17///Interrupt Flag Clear Register
18///
19///You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`ifc::W`](W). See [API](https://docs.rs/svd2rust/#read--modify--write-api).
20pub struct IFCrs;
21impl crate::RegisterSpec for IFCrs {
22    type Ux = u32;
23}
24///`write(|w| ..)` method takes [`ifc::W`](W) writer structure
25impl crate::Writable for IFCrs {
26    type Safety = crate::Unsafe;
27}
28///`reset()` method sets IFC to value 0
29impl crate::Resettable for IFCrs {}