nxp-pac

Crates

git

Versions

mimxrt1064

Flavors

CtrlTog

Struct CtrlTog 

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

LCDIF General Control Register

Tuple Fields§

§0: u32

Implementations§

Source§

impl CtrlTog

Source

pub const fn run(&self) -> bool

When this bit is set by software, the LCDIF will begin transferring data between the SoC and the display

Source

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

When this bit is set by software, the LCDIF will begin transferring data between the SoC and the display

Source

pub const fn data_format_24_bit(&self) -> CtrlTogDataFormat24Bit

Used only when WORD_LENGTH = 3, i

Source

pub const fn set_data_format_24_bit(&mut self, val: CtrlTogDataFormat24Bit)

Used only when WORD_LENGTH = 3, i

Source

pub const fn data_format_18_bit(&self) -> CtrlTogDataFormat18Bit

Used only when WORD_LENGTH = 2, i.e. 18-bit.

Source

pub const fn set_data_format_18_bit(&mut self, val: CtrlTogDataFormat18Bit)

Used only when WORD_LENGTH = 2, i.e. 18-bit.

Source

pub const fn data_format_16_bit(&self) -> bool

When this bit is 1 and WORD_LENGTH = 0, it implies that the 16-bit data is in ARGB555 format

Source

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

When this bit is 1 and WORD_LENGTH = 0, it implies that the 16-bit data is in ARGB555 format

Source

pub const fn master(&self) -> bool

Set this bit to make the LCDIF act as a bus master

Source

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

Set this bit to make the LCDIF act as a bus master

Source

pub const fn enable_pxp_handshake(&self) -> bool

If this bit is set and LCDIF_MASTER bit is set, the LCDIF will act as bus master and the handshake mechanism between LCDIF and PXP will be turned on

Source

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

If this bit is set and LCDIF_MASTER bit is set, the LCDIF will act as bus master and the handshake mechanism between LCDIF and PXP will be turned on

Source

pub const fn word_length(&self) -> CtrlTogWordLength

Input data format.

Source

pub const fn set_word_length(&mut self, val: CtrlTogWordLength)

Input data format.

Source

pub const fn lcd_databus_width(&self) -> CtrlTogLcdDatabusWidth

LCD Data bus transfer width. When LUT enabled, this field should be set to 0x01.

Source

pub const fn set_lcd_databus_width(&mut self, val: CtrlTogLcdDatabusWidth)

LCD Data bus transfer width. When LUT enabled, this field should be set to 0x01.

Source

pub const fn csc_data_swizzle(&self) -> CtrlTogCscDataSwizzle

This field specifies how to swap the bytes after the data has been converted into an internal representation of 24 bits per pixel and before it is transmitted over the LCD interface bus

Source

pub const fn set_csc_data_swizzle(&mut self, val: CtrlTogCscDataSwizzle)

This field specifies how to swap the bytes after the data has been converted into an internal representation of 24 bits per pixel and before it is transmitted over the LCD interface bus

Source

pub const fn input_data_swizzle(&self) -> CtrlTogInputDataSwizzle

This field specifies how to swap the bytes fetched by the bus master interface

Source

pub const fn set_input_data_swizzle(&mut self, val: CtrlTogInputDataSwizzle)

This field specifies how to swap the bytes fetched by the bus master interface

Source

pub const fn dotclk_mode(&self) -> bool

Set this bit to 1 to make the hardware go into the DOTCLK mode, i

Source

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

Set this bit to 1 to make the hardware go into the DOTCLK mode, i

Source

pub const fn bypass_count(&self) -> bool

When this bit is 0, it means that LCDIF will stop the block operation and turn off the RUN bit after the amount of data indicated by the LCDIF_TRANSFER_COUNT register has been transferred out

Source

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

When this bit is 0, it means that LCDIF will stop the block operation and turn off the RUN bit after the amount of data indicated by the LCDIF_TRANSFER_COUNT register has been transferred out

Source

pub const fn shift_num_bits(&self) -> u8

The data to be transmitted is shifted left or right by this number of bits.

Source

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

The data to be transmitted is shifted left or right by this number of bits.

Source

pub const fn data_shift_dir(&self) -> CtrlTogDataShiftDir

Use this bit to determine the direction of shift of transmit data.

Source

pub const fn set_data_shift_dir(&mut self, val: CtrlTogDataShiftDir)

Use this bit to determine the direction of shift of transmit data.

Source

pub const fn clkgate(&self) -> bool

This bit must be set to zero for normal operation

Source

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

This bit must be set to zero for normal operation

Source

pub const fn sftrst(&self) -> bool

This bit must be set to zero to enable normal operation of the LCDIF

Source

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

This bit must be set to zero to enable normal operation of the LCDIF

Trait Implementations§

Source§

impl Clone for CtrlTog

Source§

fn clone(&self) -> CtrlTog

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 CtrlTog

Source§

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

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

impl Default for CtrlTog

Source§

fn default() -> CtrlTog

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

impl PartialEq for CtrlTog

Source§

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

Source§

impl Eq for CtrlTog

Source§

impl StructuralPartialEq for CtrlTog

Auto Trait Implementations§

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.