esp32s3 0.35.2

Peripheral access crate for the ESP32-S3
Documentation
#[doc = "Register `LC_DMA_INT_ENA` reader"]
pub type R = crate::R<LC_DMA_INT_ENA_SPEC>;
#[doc = "Register `LC_DMA_INT_ENA` writer"]
pub type W = crate::W<LC_DMA_INT_ENA_SPEC>;
#[doc = "Field `LCD_VSYNC_INT_ENA` reader - The enable bit for LCD_CAM_LCD_VSYNC_INT interrupt."]
pub type LCD_VSYNC_INT_ENA_R = crate::BitReader;
#[doc = "Field `LCD_VSYNC_INT_ENA` writer - The enable bit for LCD_CAM_LCD_VSYNC_INT interrupt."]
pub type LCD_VSYNC_INT_ENA_W<'a, REG> = crate::BitWriter<'a, REG>;
#[doc = "Field `LCD_TRANS_DONE_INT_ENA` reader - The enable bit for LCD_CAM_LCD_TRANS_DONE_INT interrupt."]
pub type LCD_TRANS_DONE_INT_ENA_R = crate::BitReader;
#[doc = "Field `LCD_TRANS_DONE_INT_ENA` writer - The enable bit for LCD_CAM_LCD_TRANS_DONE_INT interrupt."]
pub type LCD_TRANS_DONE_INT_ENA_W<'a, REG> = crate::BitWriter<'a, REG>;
#[doc = "Field `CAM_VSYNC_INT_ENA` reader - The enable bit for LCD_CAM_CAM_VSYNC_INT interrupt."]
pub type CAM_VSYNC_INT_ENA_R = crate::BitReader;
#[doc = "Field `CAM_VSYNC_INT_ENA` writer - The enable bit for LCD_CAM_CAM_VSYNC_INT interrupt."]
pub type CAM_VSYNC_INT_ENA_W<'a, REG> = crate::BitWriter<'a, REG>;
#[doc = "Field `CAM_HS_INT_ENA` reader - The enable bit for LCD_CAM_CAM_HS_INT interrupt."]
pub type CAM_HS_INT_ENA_R = crate::BitReader;
#[doc = "Field `CAM_HS_INT_ENA` writer - The enable bit for LCD_CAM_CAM_HS_INT interrupt."]
pub type CAM_HS_INT_ENA_W<'a, REG> = crate::BitWriter<'a, REG>;
impl R {
    #[doc = "Bit 0 - The enable bit for LCD_CAM_LCD_VSYNC_INT interrupt."]
    #[inline(always)]
    pub fn lcd_vsync_int_ena(&self) -> LCD_VSYNC_INT_ENA_R {
        LCD_VSYNC_INT_ENA_R::new((self.bits & 1) != 0)
    }
    #[doc = "Bit 1 - The enable bit for LCD_CAM_LCD_TRANS_DONE_INT interrupt."]
    #[inline(always)]
    pub fn lcd_trans_done_int_ena(&self) -> LCD_TRANS_DONE_INT_ENA_R {
        LCD_TRANS_DONE_INT_ENA_R::new(((self.bits >> 1) & 1) != 0)
    }
    #[doc = "Bit 2 - The enable bit for LCD_CAM_CAM_VSYNC_INT interrupt."]
    #[inline(always)]
    pub fn cam_vsync_int_ena(&self) -> CAM_VSYNC_INT_ENA_R {
        CAM_VSYNC_INT_ENA_R::new(((self.bits >> 2) & 1) != 0)
    }
    #[doc = "Bit 3 - The enable bit for LCD_CAM_CAM_HS_INT interrupt."]
    #[inline(always)]
    pub fn cam_hs_int_ena(&self) -> CAM_HS_INT_ENA_R {
        CAM_HS_INT_ENA_R::new(((self.bits >> 3) & 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("LC_DMA_INT_ENA")
            .field("lcd_vsync_int_ena", &self.lcd_vsync_int_ena())
            .field("lcd_trans_done_int_ena", &self.lcd_trans_done_int_ena())
            .field("cam_vsync_int_ena", &self.cam_vsync_int_ena())
            .field("cam_hs_int_ena", &self.cam_hs_int_ena())
            .finish()
    }
}
impl W {
    #[doc = "Bit 0 - The enable bit for LCD_CAM_LCD_VSYNC_INT interrupt."]
    #[inline(always)]
    pub fn lcd_vsync_int_ena(&mut self) -> LCD_VSYNC_INT_ENA_W<'_, LC_DMA_INT_ENA_SPEC> {
        LCD_VSYNC_INT_ENA_W::new(self, 0)
    }
    #[doc = "Bit 1 - The enable bit for LCD_CAM_LCD_TRANS_DONE_INT interrupt."]
    #[inline(always)]
    pub fn lcd_trans_done_int_ena(&mut self) -> LCD_TRANS_DONE_INT_ENA_W<'_, LC_DMA_INT_ENA_SPEC> {
        LCD_TRANS_DONE_INT_ENA_W::new(self, 1)
    }
    #[doc = "Bit 2 - The enable bit for LCD_CAM_CAM_VSYNC_INT interrupt."]
    #[inline(always)]
    pub fn cam_vsync_int_ena(&mut self) -> CAM_VSYNC_INT_ENA_W<'_, LC_DMA_INT_ENA_SPEC> {
        CAM_VSYNC_INT_ENA_W::new(self, 2)
    }
    #[doc = "Bit 3 - The enable bit for LCD_CAM_CAM_HS_INT interrupt."]
    #[inline(always)]
    pub fn cam_hs_int_ena(&mut self) -> CAM_HS_INT_ENA_W<'_, LC_DMA_INT_ENA_SPEC> {
        CAM_HS_INT_ENA_W::new(self, 3)
    }
}
#[doc = "LCD_CAM GDMA interrupt enable register\n\nYou can [`read`](crate::Reg::read) this register and get [`lc_dma_int_ena::R`](R). You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`lc_dma_int_ena::W`](W). You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api)."]
pub struct LC_DMA_INT_ENA_SPEC;
impl crate::RegisterSpec for LC_DMA_INT_ENA_SPEC {
    type Ux = u32;
}
#[doc = "`read()` method returns [`lc_dma_int_ena::R`](R) reader structure"]
impl crate::Readable for LC_DMA_INT_ENA_SPEC {}
#[doc = "`write(|w| ..)` method takes [`lc_dma_int_ena::W`](W) writer structure"]
impl crate::Writable for LC_DMA_INT_ENA_SPEC {
    type Safety = crate::Unsafe;
}
#[doc = "`reset()` method sets LC_DMA_INT_ENA to value 0"]
impl crate::Resettable for LC_DMA_INT_ENA_SPEC {}