esp32s2 0.3.0

Peripheral access crate for the ESP32-S2
Documentation
#[doc = "Register `DMA_TX_I_2` reader"]
pub struct R(crate::R<DMA_TX_I_2_SPEC>);
impl core::ops::Deref for R {
    type Target = crate::R<DMA_TX_I_2_SPEC>;
    #[inline(always)]
    fn deref(&self) -> &Self::Target {
        &self.0
    }
}
impl From<crate::R<DMA_TX_I_2_SPEC>> for R {
    #[inline(always)]
    fn from(reader: crate::R<DMA_TX_I_2_SPEC>) -> Self {
        R(reader)
    }
}
#[doc = "Register `DMA_TX_I_2` writer"]
pub struct W(crate::W<DMA_TX_I_2_SPEC>);
impl core::ops::Deref for W {
    type Target = crate::W<DMA_TX_I_2_SPEC>;
    #[inline(always)]
    fn deref(&self) -> &Self::Target {
        &self.0
    }
}
impl core::ops::DerefMut for W {
    #[inline(always)]
    fn deref_mut(&mut self) -> &mut Self::Target {
        &mut self.0
    }
}
impl From<crate::W<DMA_TX_I_2_SPEC>> for W {
    #[inline(always)]
    fn from(writer: crate::W<DMA_TX_I_2_SPEC>) -> Self {
        W(writer)
    }
}
#[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<bool>;
#[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, const O: u8> = crate::BitWriter<'a, u32, DMA_TX_I_2_SPEC, bool, O>;
#[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<bool>;
#[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, const O: u8> = crate::BitWriter<'a, u32, DMA_TX_I_2_SPEC, bool, O>;
#[doc = "Field `DMA_TX_I_ILG_INTR` reader - TX Copy DMA access interrupt signal."]
pub type DMA_TX_I_ILG_INTR_R = crate::BitReader<bool>;
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)
    }
}
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<0> {
        DMA_TX_I_ILG_CLR_W::new(self)
    }
    #[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<1> {
        DMA_TX_I_ILG_EN_W::new(self)
    }
    #[doc = "Writes raw bits to the register."]
    #[inline(always)]
    pub unsafe fn bits(&mut self, bits: u32) -> &mut Self {
        self.0.bits(bits);
        self
    }
}
#[doc = "TX Copy DMA permission control register 2.\n\nThis register you can [`read`](crate::generic::Reg::read), [`write_with_zero`](crate::generic::Reg::write_with_zero), [`reset`](crate::generic::Reg::reset), [`write`](crate::generic::Reg::write), [`modify`](crate::generic::Reg::modify). See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [dma_tx_i_2](index.html) module"]
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 {
    type Reader = R;
}
#[doc = "`write(|w| ..)` method takes [dma_tx_i_2::W](W) writer structure"]
impl crate::Writable for DMA_TX_I_2_SPEC {
    type Writer = W;
}
#[doc = "`reset()` method sets DMA_TX_I_2 to value 0"]
impl crate::Resettable for DMA_TX_I_2_SPEC {
    #[inline(always)]
    fn reset_value() -> Self::Ux {
        0
    }
}