///Register `ICR_ALTERNATE1` writer
pub type W = crate::W<ICR_ALTERNATE1rs>;
///Field `CC1CF` writer - Capture/compare 1 clear flag
pub type CC1CF_W<'a, REG> = crate::BitWriter<'a, REG>;
///Field `ARRMCF` writer - Autoreload match clear flag
pub type ARRMCF_W<'a, REG> = crate::BitWriter<'a, REG>;
///Field `EXTTRIGCF` writer - External trigger valid edge clear flag
pub type EXTTRIGCF_W<'a, REG> = crate::BitWriter<'a, REG>;
///Field `ARROKCF` writer - Autoreload register update OK clear flag
pub type ARROKCF_W<'a, REG> = crate::BitWriter<'a, REG>;
///Field `UPCF` writer - Direction change to UP clear flag
pub type UPCF_W<'a, REG> = crate::BitWriter<'a, REG>;
///Field `DOWNCF` writer - Direction change to down clear flag
pub type DOWNCF_W<'a, REG> = crate::BitWriter<'a, REG>;
///Field `UECF` writer - Update event clear flag
pub type UECF_W<'a, REG> = crate::BitWriter<'a, REG>;
///Field `REPOKCF` writer - Repetition register update OK clear flag
pub type REPOKCF_W<'a, REG> = crate::BitWriter<'a, REG>;
///Field `CC2CF` writer - Capture/compare 2 clear flag
pub type CC2CF_W<'a, REG> = crate::BitWriter<'a, REG>;
///Field `CC1OCF` writer - Capture/compare 1 over-capture clear flag
pub type CC1OCF_W<'a, REG> = crate::BitWriter<'a, REG>;
///Field `CC2OCF` writer - Capture/compare 2 over-capture clear flag
pub type CC2OCF_W<'a, REG> = crate::BitWriter<'a, REG>;
///Field `DIEROKCF` writer - Interrupt enable register update OK clear flag
pub type DIEROKCF_W<'a, REG> = crate::BitWriter<'a, REG>;
impl core::fmt::Debug for crate::generic::Reg<ICR_ALTERNATE1rs> {
    fn fmt(&self, f: &mut core::fmt::Formatter<'_>) -> core::fmt::Result {
        write!(f, "(not readable)")
    }
}
impl W {
    ///Bit 0 - Capture/compare 1 clear flag
    #[inline(always)]
    pub fn cc1cf(&mut self) -> CC1CF_W<ICR_ALTERNATE1rs> {
        CC1CF_W::new(self, 0)
    }
    ///Bit 1 - Autoreload match clear flag
    #[inline(always)]
    pub fn arrmcf(&mut self) -> ARRMCF_W<ICR_ALTERNATE1rs> {
        ARRMCF_W::new(self, 1)
    }
    ///Bit 2 - External trigger valid edge clear flag
    #[inline(always)]
    pub fn exttrigcf(&mut self) -> EXTTRIGCF_W<ICR_ALTERNATE1rs> {
        EXTTRIGCF_W::new(self, 2)
    }
    ///Bit 4 - Autoreload register update OK clear flag
    #[inline(always)]
    pub fn arrokcf(&mut self) -> ARROKCF_W<ICR_ALTERNATE1rs> {
        ARROKCF_W::new(self, 4)
    }
    ///Bit 5 - Direction change to UP clear flag
    #[inline(always)]
    pub fn upcf(&mut self) -> UPCF_W<ICR_ALTERNATE1rs> {
        UPCF_W::new(self, 5)
    }
    ///Bit 6 - Direction change to down clear flag
    #[inline(always)]
    pub fn downcf(&mut self) -> DOWNCF_W<ICR_ALTERNATE1rs> {
        DOWNCF_W::new(self, 6)
    }
    ///Bit 7 - Update event clear flag
    #[inline(always)]
    pub fn uecf(&mut self) -> UECF_W<ICR_ALTERNATE1rs> {
        UECF_W::new(self, 7)
    }
    ///Bit 8 - Repetition register update OK clear flag
    #[inline(always)]
    pub fn repokcf(&mut self) -> REPOKCF_W<ICR_ALTERNATE1rs> {
        REPOKCF_W::new(self, 8)
    }
    ///Bit 9 - Capture/compare 2 clear flag
    #[inline(always)]
    pub fn cc2cf(&mut self) -> CC2CF_W<ICR_ALTERNATE1rs> {
        CC2CF_W::new(self, 9)
    }
    ///Bit 12 - Capture/compare 1 over-capture clear flag
    #[inline(always)]
    pub fn cc1ocf(&mut self) -> CC1OCF_W<ICR_ALTERNATE1rs> {
        CC1OCF_W::new(self, 12)
    }
    ///Bit 13 - Capture/compare 2 over-capture clear flag
    #[inline(always)]
    pub fn cc2ocf(&mut self) -> CC2OCF_W<ICR_ALTERNATE1rs> {
        CC2OCF_W::new(self, 13)
    }
    ///Bit 24 - Interrupt enable register update OK clear flag
    #[inline(always)]
    pub fn dierokcf(&mut self) -> DIEROKCF_W<ICR_ALTERNATE1rs> {
        DIEROKCF_W::new(self, 24)
    }
}
/**LPTIM2 interrupt clear register

You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`icr_alternate1::W`](W). See [API](https://docs.rs/svd2rust/#read--modify--write-api).*/
pub struct ICR_ALTERNATE1rs;
impl crate::RegisterSpec for ICR_ALTERNATE1rs {
    type Ux = u32;
}
///`write(|w| ..)` method takes [`icr_alternate1::W`](W) writer structure
impl crate::Writable for ICR_ALTERNATE1rs {
    type Safety = crate::Unsafe;
    const ZERO_TO_MODIFY_FIELDS_BITMAP: u32 = 0;
    const ONE_TO_MODIFY_FIELDS_BITMAP: u32 = 0;
}
///`reset()` method sets ICR_ALTERNATE1 to value 0
impl crate::Resettable for ICR_ALTERNATE1rs {
    const RESET_VALUE: u32 = 0;
}
