d1-pac 0.0.32

Peripheral access API for Allwinner D1 SoC generated from unofficial SVD file
Documentation
#[doc = "Register `csic_dma_stored_frm_cnt` reader"]
pub type R = crate::R<CSIC_DMA_STORED_FRM_CNT_SPEC>;
#[doc = "Register `csic_dma_stored_frm_cnt` writer"]
pub type W = crate::W<CSIC_DMA_STORED_FRM_CNT_SPEC>;
#[doc = "Field `csic_dma_stored_frm_cnt` reader - Indicates value of stored frames counter. When the counter value reaches CSIC_DMA_STORED_FRM_THRESHOLD, the counter is cleared to 0. Only used in Buffer Addr FIFO Mode."]
pub type CSIC_DMA_STORED_FRM_CNT_R = crate::FieldReader;
impl R {
    #[doc = "Bits 0:7 - Indicates value of stored frames counter. When the counter value reaches CSIC_DMA_STORED_FRM_THRESHOLD, the counter is cleared to 0. Only used in Buffer Addr FIFO Mode."]
    #[inline(always)]
    pub fn csic_dma_stored_frm_cnt(&self) -> CSIC_DMA_STORED_FRM_CNT_R {
        CSIC_DMA_STORED_FRM_CNT_R::new((self.bits & 0xff) as u8)
    }
}
impl W {
    #[doc = r" Writes raw bits to the register."]
    #[doc = r""]
    #[doc = r" # Safety"]
    #[doc = r""]
    #[doc = r" Passing incorrect value can cause undefined behaviour. See reference manual"]
    #[inline(always)]
    pub unsafe fn bits(&mut self, bits: u32) -> &mut Self {
        self.bits = bits;
        self
    }
}
#[doc = "CSIC DMA Stored Frame Counter Register\n\nYou can [`read`](crate::generic::Reg::read) this register and get [`csic_dma_stored_frm_cnt::R`](R).  You can [`reset`](crate::generic::Reg::reset), [`write`](crate::generic::Reg::write), [`write_with_zero`](crate::generic::Reg::write_with_zero) this register using [`csic_dma_stored_frm_cnt::W`](W). You can also [`modify`](crate::generic::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api)."]
pub struct CSIC_DMA_STORED_FRM_CNT_SPEC;
impl crate::RegisterSpec for CSIC_DMA_STORED_FRM_CNT_SPEC {
    type Ux = u32;
}
#[doc = "`read()` method returns [`csic_dma_stored_frm_cnt::R`](R) reader structure"]
impl crate::Readable for CSIC_DMA_STORED_FRM_CNT_SPEC {}
#[doc = "`write(|w| ..)` method takes [`csic_dma_stored_frm_cnt::W`](W) writer structure"]
impl crate::Writable for CSIC_DMA_STORED_FRM_CNT_SPEC {
    const ZERO_TO_MODIFY_FIELDS_BITMAP: Self::Ux = 0;
    const ONE_TO_MODIFY_FIELDS_BITMAP: Self::Ux = 0;
}
#[doc = "`reset()` method sets csic_dma_stored_frm_cnt to value 0"]
impl crate::Resettable for CSIC_DMA_STORED_FRM_CNT_SPEC {
    const RESET_VALUE: Self::Ux = 0;
}