nxp-pac

Crates

git

Versions

mimxrt1064

Flavors

Ctrl1

Struct Ctrl1 

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

LCDIF General Control1 Register

Tuple Fields§

§0: u32

Implementations§

Source§

impl Ctrl1

Source

pub const fn vsync_edge_irq(&self) -> bool

This bit is set to indicate that an interrupt is requested by the LCDIF block

Source

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

This bit is set to indicate that an interrupt is requested by the LCDIF block

Source

pub const fn cur_frame_done_irq(&self) -> bool

This bit is set to indicate that an interrupt is requested by the LCDIF block

Source

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

This bit is set to indicate that an interrupt is requested by the LCDIF block

Source

pub const fn underflow_irq(&self) -> bool

This bit is set to indicate that an interrupt is requested by the LCDIF block

Source

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

This bit is set to indicate that an interrupt is requested by the LCDIF block

Source

pub const fn overflow_irq(&self) -> bool

This bit is set to indicate that an interrupt is requested by the LCDIF block

Source

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

This bit is set to indicate that an interrupt is requested by the LCDIF block

Source

pub const fn vsync_edge_irq_en(&self) -> bool

This bit is set to enable an interrupt every time the hardware encounters the leading VSYNC edge in the VSYNC and DOTCLK modes, or the beginning of every field in DVI mode

Source

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

This bit is set to enable an interrupt every time the hardware encounters the leading VSYNC edge in the VSYNC and DOTCLK modes, or the beginning of every field in DVI mode

Source

pub const fn cur_frame_done_irq_en(&self) -> bool

This bit is set to 1 enable an interrupt every time the hardware enters in the vertical blanking state

Source

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

This bit is set to 1 enable an interrupt every time the hardware enters in the vertical blanking state

Source

pub const fn underflow_irq_en(&self) -> bool

This bit is set to enable an underflow interrupt in the TXFIFO in the write mode.

Source

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

This bit is set to enable an underflow interrupt in the TXFIFO in the write mode.

Source

pub const fn overflow_irq_en(&self) -> bool

This bit is set to enable an overflow interrupt in the TXFIFO in the write mode.

Source

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

This bit is set to enable an overflow interrupt in the TXFIFO in the write mode.

Source

pub const fn byte_packing_format(&self) -> u8

This bitfield is used to show which data bytes in a 32-bit word are valid

Source

pub const fn set_byte_packing_format(&mut self, val: u8)

This bitfield is used to show which data bytes in a 32-bit word are valid

Source

pub const fn irq_on_alternate_fields(&self) -> bool

If this bit is set, the LCDIF block will assert the cur_frame_done interrupt only on alternate fields, otherwise it will issue the interrupt on both odd and even field

Source

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

If this bit is set, the LCDIF block will assert the cur_frame_done interrupt only on alternate fields, otherwise it will issue the interrupt on both odd and even field

Source

pub const fn fifo_clear(&self) -> bool

Set this bit to clear all the data in the latency FIFO (LFIFO), TXFIFO and the RXFIFO.

Source

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

Set this bit to clear all the data in the latency FIFO (LFIFO), TXFIFO and the RXFIFO.

Source

pub const fn start_interlace_from_second_field(&self) -> bool

The default is to grab the odd lines first and then the even lines

Source

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

The default is to grab the odd lines first and then the even lines

Source

pub const fn interlace_fields(&self) -> bool

Set this bit if it is required that the LCDIF block fetches odd lines in one field and even lines in the other field

Source

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

Set this bit if it is required that the LCDIF block fetches odd lines in one field and even lines in the other field

Source

pub const fn recover_on_underflow(&self) -> bool

Set this bit to enable the LCDIF block to recover in the next field/frame if there was an underflow in the current field/frame

Source

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

Set this bit to enable the LCDIF block to recover in the next field/frame if there was an underflow in the current field/frame

Source

pub const fn bm_error_irq(&self) -> bool

This bit is set to indicate that an interrupt is requested by the LCDIF block

Source

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

This bit is set to indicate that an interrupt is requested by the LCDIF block

Source

pub const fn bm_error_irq_en(&self) -> bool

This bit is set to enable bus master error interrupt in the LCDIF master mode.

Source

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

This bit is set to enable bus master error interrupt in the LCDIF master mode.

Source

pub const fn cs_out_select(&self) -> bool

This bit is CS0/CS1 valid select signals

Source

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

This bit is CS0/CS1 valid select signals

Source

pub const fn image_data_select(&self) -> bool

Command Mode MIPI image data select bit

Source

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

Command Mode MIPI image data select bit

Trait Implementations§

Source§

impl Clone for Ctrl1

Source§

fn clone(&self) -> Ctrl1

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 Ctrl1

Source§

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

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

impl Default for Ctrl1

Source§

fn default() -> Ctrl1

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

impl PartialEq for Ctrl1

Source§

fn eq(&self, other: &Ctrl1) -> 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 Ctrl1

Source§

impl Eq for Ctrl1

Source§

impl StructuralPartialEq for Ctrl1

Auto Trait Implementations§

§

impl Freeze for Ctrl1

§

impl RefUnwindSafe for Ctrl1

§

impl Send for Ctrl1

§

impl Sync for Ctrl1

§

impl Unpin for Ctrl1

§

impl UnwindSafe for Ctrl1

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.