Struct d1_pac::csic::csic_dma::csic_dma_int_en::W

source ·
pub struct W(/* private fields */);
Expand description

Register csic_dma_int_en writer

Implementations§

source§

impl W

source

pub fn cd_int_en(&mut self) -> CD_INT_EN_W<'_, 0>

Bit 0 - Capture done

Indicates the CSI has completed capturing the image data. For still capture, the bit is set when one frame data has been written to buffer. For video capture, the bit is set when the last frame has been written to buffer after video capture has been disabled. For CCIR656 interface, if the output format is frame planar YCbCr 420 mode, the frame end means the field2 end, the other frame end means field end.

source

pub fn fd_int_en(&mut self) -> FD_INT_EN_W<'_, 1>

Bit 1 - Frame done

Indicates the CSI has finished capturing an image frame. Applies to video capture mode. The bit is set after each completed frame capturing data is written to buffer as long as video capture remains enabled.

source

pub fn fifo0_of_int_en(&mut self) -> FIFO0_OF_INT_EN_W<'_, 2>

Bit 2 - FIFO 0 overflow

The bit is set when the FIFO 0 became overflow.

source

pub fn fifo1_of_int_en(&mut self) -> FIFO1_OF_INT_EN_W<'_, 3>

Bit 3 - FIFO 1 overflow

The bit is set when the FIFO 1 became overflow.

source

pub fn fifo2_of_int_en(&mut self) -> FIFO2_OF_INT_EN_W<'_, 4>

Bit 4 - FIFO 2 overflow

The bit is set when the FIFO 2 became overflow.

source

pub fn lc_int_en(&mut self) -> LC_INT_EN_W<'_, 5>

Bit 5 - Line counter flag The bit is set when the specific line has been written to dram every frame. The line number is set in the line counter register.

source

pub fn hb_of_int_en(&mut self) -> HB_OF_INT_EN_W<'_, 6>

Bit 6 - Hblank FIFO overflow The bit is set when 3 FIFOs still overflow after the hblank.

source

pub fn vs_int_en(&mut self) -> VS_INT_EN_W<'_, 7>

Bit 7 - vsync flag

The bit is set when vsync come. And at this time load the buffer address for the coming frame. So after this irq come, changing the buffer address could only effect next frame

source

pub fn clr_frame_cnt_int_en(&mut self) -> CLR_FRAME_CNT_INT_EN_W<'_, 11>

Bit 11 - Set a INT when clear Frame cnt.

source

pub fn video_input_to_int_en(&mut self) -> VIDEO_INPUT_TO_INT_EN_W<'_, 12>

Bit 12 - Set an INT when no video input exceeds the setting threshold time

source

pub fn buf_addr_fifo_int_en(&mut self) -> BUF_ADDR_FIFO_INT_EN_W<'_, 13>

Bit 13 - Set an INT when content in BUF Address FIFO less than CSIC_DMA_BUFA_FIFO_THRESHOLD, only use in BUF Address FIFO MODE.

source

pub fn stored_frm_cnt_int_en(&mut self) -> STORED_FRM_CNT_INT_EN_W<'_, 14>

Bit 14 - Set an INT when the value of CSIC_DMA_STORED_FRM_CNT reaches CSIC_DMA_STORED_FRM_THRESHOLD, only use in BUF Address FIFO MODE.

source

pub fn frm_lost_int_en(&mut self) -> FRM_LOST_INT_EN_W<'_, 15>

Bit 15 - Set an INT when frame starts with empty Buffer Address FIFO, only use in BUF Address FIFO MODE.

source

pub unsafe fn bits(&mut self, bits: u32) -> &mut Self

Writes raw bits to the register.

Methods from Deref<Target = W<CSIC_DMA_INT_EN_SPEC>>§

source

pub unsafe fn bits(&mut self, bits: REG::Ux) -> &mut Self

Writes raw bits to the register.

§Safety

Read datasheet or reference manual to find what values are allowed to pass.

Trait Implementations§

source§

impl Deref for W

§

type Target = W<CSIC_DMA_INT_EN_SPEC>

The resulting type after dereferencing.
source§

fn deref(&self) -> &Self::Target

Dereferences the value.
source§

impl DerefMut for W

source§

fn deref_mut(&mut self) -> &mut Self::Target

Mutably dereferences the value.
source§

impl From<W<CSIC_DMA_INT_EN_SPEC>> for W

source§

fn from(writer: W<CSIC_DMA_INT_EN_SPEC>) -> Self

Converts to this type from the input type.

Auto Trait Implementations§

§

impl Freeze for W

§

impl RefUnwindSafe for W

§

impl Send for W

§

impl Sync for W

§

impl Unpin for W

§

impl UnwindSafe for W

Blanket Implementations§

source§

impl<T> Any for T
where T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for T
where T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

impl<T, U> Into<U> for T
where U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.