#[doc = "Register `DMA_TX_I_2` reader"]
pub type R = crate::R<DMA_TX_I_2_SPEC>;
#[doc = "Register `DMA_TX_I_2` writer"]
pub type W = crate::W<DMA_TX_I_2_SPEC>;
#[doc = "Field `DMA_TX_I_ILG_CLR` reader - The clear signal for TX Copy DMA access interrupt."]
pub type DMA_TX_I_ILG_CLR_R = crate::BitReader;
#[doc = "Field `DMA_TX_I_ILG_CLR` writer - The clear signal for TX Copy DMA access interrupt."]
pub type DMA_TX_I_ILG_CLR_W<'a, REG> = crate::BitWriter<'a, REG>;
#[doc = "Field `DMA_TX_I_ILG_EN` reader - The enable signal for TX Copy DMA access interrupt."]
pub type DMA_TX_I_ILG_EN_R = crate::BitReader;
#[doc = "Field `DMA_TX_I_ILG_EN` writer - The enable signal for TX Copy DMA access interrupt."]
pub type DMA_TX_I_ILG_EN_W<'a, REG> = crate::BitWriter<'a, REG>;
#[doc = "Field `DMA_TX_I_ILG_INTR` reader - TX Copy DMA access interrupt signal."]
pub type DMA_TX_I_ILG_INTR_R = crate::BitReader;
impl R {
    #[doc = "Bit 0 - The clear signal for TX Copy DMA access interrupt."]
    #[inline(always)]
    pub fn dma_tx_i_ilg_clr(&self) -> DMA_TX_I_ILG_CLR_R {
        DMA_TX_I_ILG_CLR_R::new((self.bits & 1) != 0)
    }
    #[doc = "Bit 1 - The enable signal for TX Copy DMA access interrupt."]
    #[inline(always)]
    pub fn dma_tx_i_ilg_en(&self) -> DMA_TX_I_ILG_EN_R {
        DMA_TX_I_ILG_EN_R::new(((self.bits >> 1) & 1) != 0)
    }
    #[doc = "Bit 2 - TX Copy DMA access interrupt signal."]
    #[inline(always)]
    pub fn dma_tx_i_ilg_intr(&self) -> DMA_TX_I_ILG_INTR_R {
        DMA_TX_I_ILG_INTR_R::new(((self.bits >> 2) & 1) != 0)
    }
}
#[cfg(feature = "impl-register-debug")]
impl core::fmt::Debug for R {
    fn fmt(&self, f: &mut core::fmt::Formatter) -> core::fmt::Result {
        f.debug_struct("DMA_TX_I_2")
            .field("dma_tx_i_ilg_clr", &self.dma_tx_i_ilg_clr())
            .field("dma_tx_i_ilg_en", &self.dma_tx_i_ilg_en())
            .field("dma_tx_i_ilg_intr", &self.dma_tx_i_ilg_intr())
            .finish()
    }
}
impl W {
    #[doc = "Bit 0 - The clear signal for TX Copy DMA access interrupt."]
    #[inline(always)]
    pub fn dma_tx_i_ilg_clr(&mut self) -> DMA_TX_I_ILG_CLR_W<'_, DMA_TX_I_2_SPEC> {
        DMA_TX_I_ILG_CLR_W::new(self, 0)
    }
    #[doc = "Bit 1 - The enable signal for TX Copy DMA access interrupt."]
    #[inline(always)]
    pub fn dma_tx_i_ilg_en(&mut self) -> DMA_TX_I_ILG_EN_W<'_, DMA_TX_I_2_SPEC> {
        DMA_TX_I_ILG_EN_W::new(self, 1)
    }
}
#[doc = "TX Copy DMA permission control register 2.\n\nYou can [`read`](crate::Reg::read) this register and get [`dma_tx_i_2::R`](R). You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`dma_tx_i_2::W`](W). You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api)."]
pub struct DMA_TX_I_2_SPEC;
impl crate::RegisterSpec for DMA_TX_I_2_SPEC {
    type Ux = u32;
}
#[doc = "`read()` method returns [`dma_tx_i_2::R`](R) reader structure"]
impl crate::Readable for DMA_TX_I_2_SPEC {}
#[doc = "`write(|w| ..)` method takes [`dma_tx_i_2::W`](W) writer structure"]
impl crate::Writable for DMA_TX_I_2_SPEC {
    type Safety = crate::Unsafe;
}
#[doc = "`reset()` method sets DMA_TX_I_2 to value 0"]
impl crate::Resettable for DMA_TX_I_2_SPEC {}
