nxp-pac

Crates

git

Versions

mimxrt1064

Flavors

Cr1

Struct Cr1 

Source
#[repr(transparent)]
pub struct Cr1(pub u32);
Expand description

CSI Control Register 1

Tuple Fields§

§0: u32

Implementations§

Source§

impl Cr1

Source

pub const fn pixel_bit(&self) -> PixelBit

Pixel Bit

Source

pub const fn set_pixel_bit(&mut self, val: PixelBit)

Pixel Bit

Source

pub const fn redge(&self) -> Redge

Valid Pixel Clock Edge Select

Source

pub const fn set_redge(&mut self, val: Redge)

Valid Pixel Clock Edge Select

Source

pub const fn inv_pclk(&self) -> InvPclk

Invert Pixel Clock Input

Source

pub const fn set_inv_pclk(&mut self, val: InvPclk)

Invert Pixel Clock Input

Source

pub const fn inv_data(&self) -> InvData

Invert Data Input. This bit enables or disables internal inverters on the data lines.

Source

pub const fn set_inv_data(&mut self, val: InvData)

Invert Data Input. This bit enables or disables internal inverters on the data lines.

Source

pub const fn gclk_mode(&self) -> GclkMode

Gated Clock Mode Enable

Source

pub const fn set_gclk_mode(&mut self, val: GclkMode)

Gated Clock Mode Enable

Source

pub const fn clr_rxfifo(&self) -> bool

Asynchronous RXFIFO Clear

Source

pub const fn set_clr_rxfifo(&mut self, val: bool)

Asynchronous RXFIFO Clear

Source

pub const fn clr_statfifo(&self) -> bool

Asynchronous STATFIFO Clear

Source

pub const fn set_clr_statfifo(&mut self, val: bool)

Asynchronous STATFIFO Clear

Source

pub const fn pack_dir(&self) -> PackDir

Data Packing Direction

Source

pub const fn set_pack_dir(&mut self, val: PackDir)

Data Packing Direction

Source

pub const fn fcc(&self) -> Fcc

FIFO Clear Control

Source

pub const fn set_fcc(&mut self, val: Fcc)

FIFO Clear Control

Source

pub const fn ccir_en(&self) -> CcirEn

BT.656 Interface Enable. This bit selects the type of interface used.

Source

pub const fn set_ccir_en(&mut self, val: CcirEn)

BT.656 Interface Enable. This bit selects the type of interface used.

Source

pub const fn hsync_pol(&self) -> HsyncPol

HSYNC Polarity Select

Source

pub const fn set_hsync_pol(&mut self, val: HsyncPol)

HSYNC Polarity Select

Source

pub const fn sof_inten(&self) -> SofInten

Start Of Frame (SOF) Interrupt Enable. This bit enables the SOF interrupt.

Source

pub const fn set_sof_inten(&mut self, val: SofInten)

Start Of Frame (SOF) Interrupt Enable. This bit enables the SOF interrupt.

Source

pub const fn sof_pol(&self) -> SofPol

SOF Interrupt Polarity. This bit controls the condition that generates an SOF interrupt.

Source

pub const fn set_sof_pol(&mut self, val: SofPol)

SOF Interrupt Polarity. This bit controls the condition that generates an SOF interrupt.

Source

pub const fn rxff_inten(&self) -> RxffInten

RxFIFO Full Interrupt Enable. This bit enables the RxFIFO full interrupt.

Source

pub const fn set_rxff_inten(&mut self, val: RxffInten)

RxFIFO Full Interrupt Enable. This bit enables the RxFIFO full interrupt.

Source

pub const fn fb1_dma_done_inten(&self) -> Fb1DmaDoneInten

Frame Buffer1 DMA Transfer Done Interrupt Enable

Source

pub const fn set_fb1_dma_done_inten(&mut self, val: Fb1DmaDoneInten)

Frame Buffer1 DMA Transfer Done Interrupt Enable

Source

pub const fn fb2_dma_done_inten(&self) -> Fb2DmaDoneInten

Frame Buffer2 DMA Transfer Done Interrupt Enable

Source

pub const fn set_fb2_dma_done_inten(&mut self, val: Fb2DmaDoneInten)

Frame Buffer2 DMA Transfer Done Interrupt Enable

Source

pub const fn statff_inten(&self) -> StatffInten

STATFIFO Full Interrupt Enable. This bit enables the STAT FIFO interrupt.

Source

pub const fn set_statff_inten(&mut self, val: StatffInten)

STATFIFO Full Interrupt Enable. This bit enables the STAT FIFO interrupt.

Source

pub const fn sff_dma_done_inten(&self) -> SffDmaDoneInten

STATFIFO DMA Transfer Done Interrupt Enable

Source

pub const fn set_sff_dma_done_inten(&mut self, val: SffDmaDoneInten)

STATFIFO DMA Transfer Done Interrupt Enable

Source

pub const fn rf_or_inten(&self) -> RfOrInten

RxFIFO Overrun Interrupt Enable. This bit enables the RX FIFO overrun interrupt.

Source

pub const fn set_rf_or_inten(&mut self, val: RfOrInten)

RxFIFO Overrun Interrupt Enable. This bit enables the RX FIFO overrun interrupt.

Source

pub const fn sf_or_inten(&self) -> SfOrInten

STAT FIFO Overrun Interrupt Enable. This bit enables the STATFIFO overrun interrupt.

Source

pub const fn set_sf_or_inten(&mut self, val: SfOrInten)

STAT FIFO Overrun Interrupt Enable. This bit enables the STATFIFO overrun interrupt.

Source

pub const fn cof_int_en(&self) -> CofIntEn

Change Of Image Field (COF) Interrupt Enable

Source

pub const fn set_cof_int_en(&mut self, val: CofIntEn)

Change Of Image Field (COF) Interrupt Enable

Source

pub const fn ccir_mode(&self) -> CcirMode

BT

Source

pub const fn set_ccir_mode(&mut self, val: CcirMode)

BT

Source

pub const fn pr_p_if_en(&self) -> PrPIfEn

CSI-PrP Interface Enable

Source

pub const fn set_pr_p_if_en(&mut self, val: PrPIfEn)

CSI-PrP Interface Enable

Source

pub const fn eof_int_en(&self) -> EofIntEn

End-of-Frame Interrupt Enable. This bit enables and disables the EOF interrupt.

Source

pub const fn set_eof_int_en(&mut self, val: EofIntEn)

End-of-Frame Interrupt Enable. This bit enables and disables the EOF interrupt.

Source

pub const fn ext_vsync(&self) -> ExtVsync

External VSYNC Enable

Source

pub const fn set_ext_vsync(&mut self, val: ExtVsync)

External VSYNC Enable

Source

pub const fn swap16_en(&self) -> Swap16En

SWAP 16-Bit Enable

Source

pub const fn set_swap16_en(&mut self, val: Swap16En)

SWAP 16-Bit Enable

Trait Implementations§

Source§

impl Clone for Cr1

Source§

fn clone(&self) -> Cr1

Returns a duplicate of the value. Read more
1.0.0 · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for Cr1

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Default for Cr1

Source§

fn default() -> Cr1

Returns the “default value” for a type. Read more
Source§

impl PartialEq for Cr1

Source§

fn eq(&self, other: &Cr1) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 · Source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
Source§

impl Copy for Cr1

Source§

impl Eq for Cr1

Source§

impl StructuralPartialEq for Cr1

Auto Trait Implementations§

§

impl Freeze for Cr1

§

impl RefUnwindSafe for Cr1

§

impl Send for Cr1

§

impl Sync for Cr1

§

impl Unpin for Cr1

§

impl UnwindSafe for Cr1

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> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. 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>,

Source§

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>,

Source§

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.