stm32h7 0.16.0

Device support crates for STM32H7 devices
Documentation
///Register `IFCR` writer
pub type W = crate::W<IFCRrs>;
/**End Of Transfer flag clear

Value on reset: 0*/
#[cfg_attr(feature = "defmt", derive(defmt::Format))]
#[derive(Clone, Copy, Debug, PartialEq, Eq)]
pub enum EOTCW {
    ///1: Clear interrupt flag
    Clear = 1,
}
impl From<EOTCW> for bool {
    #[inline(always)]
    fn from(variant: EOTCW) -> Self {
        variant as u8 != 0
    }
}
///Field `EOTC` writer - End Of Transfer flag clear
pub type EOTC_W<'a, REG> = crate::BitWriter1C<'a, REG, EOTCW>;
impl<'a, REG> EOTC_W<'a, REG>
where
    REG: crate::Writable + crate::RegisterSpec,
{
    ///Clear interrupt flag
    #[inline(always)]
    pub fn clear(self) -> &'a mut crate::W<REG> {
        self.variant(EOTCW::Clear)
    }
}
///Field `TXTFC` writer - Transmission Transfer Filled flag clear
pub use EOTC_W as TXTFC_W;
///Field `UDRC` writer - Underrun flag clear
pub use EOTC_W as UDRC_W;
///Field `OVRC` writer - Overrun flag clear
pub use EOTC_W as OVRC_W;
///Field `CRCEC` writer - CRC Error flag clear
pub use EOTC_W as CRCEC_W;
///Field `TIFREC` writer - TI frame format error flag clear
pub use EOTC_W as TIFREC_W;
///Field `MODFC` writer - Mode Fault flag clear
pub use EOTC_W as MODFC_W;
///Field `TSERFC` writer - TSERFC flag clear
pub use EOTC_W as TSERFC_W;
///Field `SUSPC` writer - SUSPend flag clear
pub use EOTC_W as SUSPC_W;
impl core::fmt::Debug for crate::generic::Reg<IFCRrs> {
    fn fmt(&self, f: &mut core::fmt::Formatter<'_>) -> core::fmt::Result {
        write!(f, "(not readable)")
    }
}
impl W {
    ///Bit 3 - End Of Transfer flag clear
    #[inline(always)]
    pub fn eotc(&mut self) -> EOTC_W<IFCRrs> {
        EOTC_W::new(self, 3)
    }
    ///Bit 4 - Transmission Transfer Filled flag clear
    #[inline(always)]
    pub fn txtfc(&mut self) -> TXTFC_W<IFCRrs> {
        TXTFC_W::new(self, 4)
    }
    ///Bit 5 - Underrun flag clear
    #[inline(always)]
    pub fn udrc(&mut self) -> UDRC_W<IFCRrs> {
        UDRC_W::new(self, 5)
    }
    ///Bit 6 - Overrun flag clear
    #[inline(always)]
    pub fn ovrc(&mut self) -> OVRC_W<IFCRrs> {
        OVRC_W::new(self, 6)
    }
    ///Bit 7 - CRC Error flag clear
    #[inline(always)]
    pub fn crcec(&mut self) -> CRCEC_W<IFCRrs> {
        CRCEC_W::new(self, 7)
    }
    ///Bit 8 - TI frame format error flag clear
    #[inline(always)]
    pub fn tifrec(&mut self) -> TIFREC_W<IFCRrs> {
        TIFREC_W::new(self, 8)
    }
    ///Bit 9 - Mode Fault flag clear
    #[inline(always)]
    pub fn modfc(&mut self) -> MODFC_W<IFCRrs> {
        MODFC_W::new(self, 9)
    }
    ///Bit 10 - TSERFC flag clear
    #[inline(always)]
    pub fn tserfc(&mut self) -> TSERFC_W<IFCRrs> {
        TSERFC_W::new(self, 10)
    }
    ///Bit 11 - SUSPend flag clear
    #[inline(always)]
    pub fn suspc(&mut self) -> SUSPC_W<IFCRrs> {
        SUSPC_W::new(self, 11)
    }
}
/**Interrupt/Status Flags Clear Register

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