efm32pg1b-pac 0.4.3

Peripheral access API for Silicon Labs EFM32PG1B microcontrollers
Documentation
///Register `IFS` writer
pub type W = crate::W<IFSrs>;
///Field `ERASE` writer - Set ERASE Interrupt Flag
pub type EraseW<'a, REG> = crate::BitWriter<'a, REG>;
///Field `WRITE` writer - Set WRITE Interrupt Flag
pub type WriteW<'a, REG> = crate::BitWriter<'a, REG>;
///Field `CHOF` writer - Set CHOF Interrupt Flag
pub type ChofW<'a, REG> = crate::BitWriter<'a, REG>;
///Field `CMOF` writer - Set CMOF Interrupt Flag
pub type CmofW<'a, REG> = crate::BitWriter<'a, REG>;
///Field `PWRUPF` writer - Set PWRUPF Interrupt Flag
pub type PwrupfW<'a, REG> = crate::BitWriter<'a, REG>;
///Field `ICACHERR` writer - Set ICACHERR Interrupt Flag
pub type IcacherrW<'a, REG> = crate::BitWriter<'a, REG>;
impl core::fmt::Debug for crate::generic::Reg<IFSrs> {
    fn fmt(&self, f: &mut core::fmt::Formatter<'_>) -> core::fmt::Result {
        write!(f, "(not readable)")
    }
}
impl W {
    ///Bit 0 - Set ERASE Interrupt Flag
    #[inline(always)]
    pub fn erase(&mut self) -> EraseW<'_, IFSrs> {
        EraseW::new(self, 0)
    }
    ///Bit 1 - Set WRITE Interrupt Flag
    #[inline(always)]
    pub fn write(&mut self) -> WriteW<'_, IFSrs> {
        WriteW::new(self, 1)
    }
    ///Bit 2 - Set CHOF Interrupt Flag
    #[inline(always)]
    pub fn chof(&mut self) -> ChofW<'_, IFSrs> {
        ChofW::new(self, 2)
    }
    ///Bit 3 - Set CMOF Interrupt Flag
    #[inline(always)]
    pub fn cmof(&mut self) -> CmofW<'_, IFSrs> {
        CmofW::new(self, 3)
    }
    ///Bit 4 - Set PWRUPF Interrupt Flag
    #[inline(always)]
    pub fn pwrupf(&mut self) -> PwrupfW<'_, IFSrs> {
        PwrupfW::new(self, 4)
    }
    ///Bit 5 - Set ICACHERR Interrupt Flag
    #[inline(always)]
    pub fn icacherr(&mut self) -> IcacherrW<'_, IFSrs> {
        IcacherrW::new(self, 5)
    }
}
///Interrupt Flag Set Register
///
///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).
pub struct IFSrs;
impl crate::RegisterSpec for IFSrs {
    type Ux = u32;
}
///`write(|w| ..)` method takes [`ifs::W`](W) writer structure
impl crate::Writable for IFSrs {
    type Safety = crate::Unsafe;
}
///`reset()` method sets IFS to value 0
impl crate::Resettable for IFSrs {}