#[doc = "Register `IFS` writer"]
pub type W = crate::W<IFS_SPEC>;
#[doc = "Field `FPIOC` writer - Set FPIOC Interrupt Flag"]
pub type FPIOC_W<'a, REG, const O: u8> = crate::BitWriter<'a, REG, O>;
#[doc = "Field `FPDZC` writer - Set FPDZC Interrupt Flag"]
pub type FPDZC_W<'a, REG, const O: u8> = crate::BitWriter<'a, REG, O>;
#[doc = "Field `FPUFC` writer - Set FPUFC Interrupt Flag"]
pub type FPUFC_W<'a, REG, const O: u8> = crate::BitWriter<'a, REG, O>;
#[doc = "Field `FPOFC` writer - Set FPOFC Interrupt Flag"]
pub type FPOFC_W<'a, REG, const O: u8> = crate::BitWriter<'a, REG, O>;
#[doc = "Field `FPIDC` writer - Set FPIDC Interrupt Flag"]
pub type FPIDC_W<'a, REG, const O: u8> = crate::BitWriter<'a, REG, O>;
#[doc = "Field `FPIXC` writer - Set FPIXC Interrupt Flag"]
pub type FPIXC_W<'a, REG, const O: u8> = crate::BitWriter<'a, REG, O>;
impl core::fmt::Debug for crate::generic::Reg<IFS_SPEC> {
fn fmt(&self, f: &mut core::fmt::Formatter<'_>) -> core::fmt::Result {
write!(f, "(not readable)")
}
}
impl W {
#[doc = "Bit 0 - Set FPIOC Interrupt Flag"]
#[inline(always)]
#[must_use]
pub fn fpioc(&mut self) -> FPIOC_W<IFS_SPEC, 0> {
FPIOC_W::new(self)
}
#[doc = "Bit 1 - Set FPDZC Interrupt Flag"]
#[inline(always)]
#[must_use]
pub fn fpdzc(&mut self) -> FPDZC_W<IFS_SPEC, 1> {
FPDZC_W::new(self)
}
#[doc = "Bit 2 - Set FPUFC Interrupt Flag"]
#[inline(always)]
#[must_use]
pub fn fpufc(&mut self) -> FPUFC_W<IFS_SPEC, 2> {
FPUFC_W::new(self)
}
#[doc = "Bit 3 - Set FPOFC Interrupt Flag"]
#[inline(always)]
#[must_use]
pub fn fpofc(&mut self) -> FPOFC_W<IFS_SPEC, 3> {
FPOFC_W::new(self)
}
#[doc = "Bit 4 - Set FPIDC Interrupt Flag"]
#[inline(always)]
#[must_use]
pub fn fpidc(&mut self) -> FPIDC_W<IFS_SPEC, 4> {
FPIDC_W::new(self)
}
#[doc = "Bit 5 - Set FPIXC Interrupt Flag"]
#[inline(always)]
#[must_use]
pub fn fpixc(&mut self) -> FPIXC_W<IFS_SPEC, 5> {
FPIXC_W::new(self)
}
#[doc = r" Writes raw bits to the register."]
#[doc = r""]
#[doc = r" # Safety"]
#[doc = r""]
#[doc = r" Passing incorrect value can cause undefined behaviour. See reference manual"]
#[inline(always)]
pub unsafe fn bits(&mut self, bits: u32) -> &mut Self {
self.bits = bits;
self
}
}
#[doc = "Interrupt Flag Set Register\n\nYou can [`reset`](crate::generic::Reg::reset), [`write`](crate::generic::Reg::write), [`write_with_zero`](crate::generic::Reg::write_with_zero) this register using [`ifs::W`](W). See [API](https://docs.rs/svd2rust/#read--modify--write-api)."]
pub struct IFS_SPEC;
impl crate::RegisterSpec for IFS_SPEC {
type Ux = u32;
}
#[doc = "`write(|w| ..)` method takes [`ifs::W`](W) writer structure"]
impl crate::Writable for IFS_SPEC {
const ZERO_TO_MODIFY_FIELDS_BITMAP: Self::Ux = 0;
const ONE_TO_MODIFY_FIELDS_BITMAP: Self::Ux = 0;
}
#[doc = "`reset()` method sets IFS to value 0"]
impl crate::Resettable for IFS_SPEC {
const RESET_VALUE: Self::Ux = 0;
}