TCON_LCD0

Struct TCON_LCD0 

Source
pub struct TCON_LCD0 { /* private fields */ }
Expand description

Timing COntroller LCD

Implementations§

Source§

impl TCON_LCD0

Source

pub const PTR: *const RegisterBlock = {0x5461000 as *const tcon_lcd0::RegisterBlock}

Pointer to the register block

Source

pub const fn ptr() -> *const RegisterBlock

Return the pointer to the register block

Source

pub unsafe fn steal() -> Self

Steal an instance of this peripheral

§Safety

Ensure that the new instance of the peripheral cannot be used in a way that may race with any existing instances, for example by only accessing read-only or write-only registers, or by consuming the original peripheral and using critical sections to coordinate access between multiple new instances.

Additionally, other software such as HALs may rely on only one peripheral instance existing to ensure memory safety; ensure no stolen instances are passed to such software.

Methods from Deref<Target = RegisterBlock>§

Source

pub fn lcd_gctl(&self) -> &LCD_GCTL

0x00 - LCD Global Control Register

Source

pub fn lcd_gint0(&self) -> &LCD_GINT0

0x04 - LCD Global Interrupt Register0

Source

pub fn lcd_gint1(&self) -> &LCD_GINT1

0x08 - LCD Global Interrupt Register1

Source

pub fn lcd_frm_ctl(&self) -> &LCD_FRM_CTL

0x10 - LCD FRM Control Register

Source

pub fn lcd_frm_seed(&self, n: usize) -> &LCD_FRM_SEED

0x14..0x2c - LCD FRM Seed Register

Source

pub fn lcd_frm_tab(&self, n: usize) -> &LCD_FRM_TAB

0x2c..0x3c - LCD FRM Table Register

Source

pub fn lcd_3d_fifo(&self) -> &LCD_3D_FIFO

0x3c - LCD 3D FIFO Register

Source

pub fn lcd_ctl(&self) -> &LCD_CTL

0x40 - LCD Control Register

Source

pub fn lcd_dclk(&self) -> &LCD_DCLK

0x44 - LCD Data Clock Register

Source

pub fn lcd_basic0(&self) -> &LCD_BASIC0

0x48 - LCD Basic Timing Register0

Source

pub fn lcd_basic1(&self) -> &LCD_BASIC1

0x4c - LCD Basic Timing Register1

Source

pub fn lcd_basic2(&self) -> &LCD_BASIC2

0x50 - LCD Basic Timing Register2

Source

pub fn lcd_basic3(&self) -> &LCD_BASIC3

0x54 - LCD Basic Timing Register3

Source

pub fn lcd_hv_if(&self) -> &LCD_HV_IF

0x58 - LCD HV Panel Interface Register

Source

pub fn lcd_cpu_if(&self) -> &LCD_CPU_IF

0x60 - LCD CPU Panel Interface Register

Source

pub fn lcd_cpu_wr(&self) -> &LCD_CPU_WR

0x64 - LCD CPU Panel Write Data Register

Source

pub fn lcd_cpu_rd(&self, n: usize) -> &LCD_CPU_RD

0x68..0x70 - LCD CPU Panel Read Data Register[i]

Source

pub fn lcd_lvds_if(&self) -> &LCD_LVDS_IF

0x84 - LCD LVDS Configure Register

Source

pub fn lcd_io_pol(&self) -> &LCD_IO_POL

0x88 - LCD IO Polarity Register

Source

pub fn lcd_io_tri(&self) -> &LCD_IO_TRI

0x8c - LCD IO Control Register

Source

pub fn lcd_debug(&self) -> &LCD_DEBUG

0xfc - LCD Debug Register

Source

pub fn lcd_ceu_ctl(&self) -> &LCD_CEU_CTL

0x100 - LCD CEU Control Register

Source

pub fn lcd_ceu_coef_mul(&self, n: usize) -> &LCD_CEU_COEF_MUL

0x110..0x11c - LCD CEU Coefficient Register0

Source

pub fn lcd_ceu_coef_add(&self, n: usize) -> &LCD_CEU_COEF_ADD

0x11c..0x128 - LCD CEU Coefficient Register1

Source

pub fn lcd_ceu_coef_rang(&self, n: usize) -> &LCD_CEU_COEF_RANG

0x140..0x14c - LCD CEU Coefficient Register2

Source

pub fn lcd_cpu_tri0(&self) -> &LCD_CPU_TRI0

0x160 - LCD CPU Panel Trigger Register0

Source

pub fn lcd_cpu_tri1(&self) -> &LCD_CPU_TRI1

0x164 - LCD CPU Panel Trigger Register1

Source

pub fn lcd_cpu_tri2(&self) -> &LCD_CPU_TRI2

0x168 - LCD CPU Panel Trigger Register2

Source

pub fn lcd_cpu_tri3(&self) -> &LCD_CPU_TRI3

0x16c - LCD CPU Panel Trigger Register3

Source

pub fn lcd_cpu_tri4(&self) -> &LCD_CPU_TRI4

0x170 - LCD CPU Panel Trigger Register4

Source

pub fn lcd_cpu_tri5(&self) -> &LCD_CPU_TRI5

0x174 - LCD CPU Panel Trigger Register5

Source

pub fn lcd_cmap_ctl(&self) -> &LCD_CMAP_CTL

0x180 - LCD Color Map Control Register

Source

pub fn lcd_cmap_odd(&self, n: usize) -> &LCD_CMAP_ODD

0x190..0x198 - LCD Color Map Odd Line Register[i]

Source

pub fn lcd_cmap_even(&self, n: usize) -> &LCD_CMAP_EVEN

0x198..0x1a0 - LCD Color Map Even Line Register[i]

Source

pub fn lcd_safe_period(&self) -> &LCD_SAFE_PERIOD

0x1f0 - LCD Safe Period Register

Source

pub fn lcd_lvds_ana(&self, n: usize) -> &LCD_LVDS_ANA

0x220..0x228 - LCD LVDS Analog Register [i]

Source

pub fn fsync_gen_ctrl(&self) -> &FSYNC_GEN_CTRL

0x228 - FSYNC_GEN_CTRL

Source

pub fn fsync_gen_dly(&self) -> &FSYNC_GEN_DLY

0x22c - FSYNC_GEN_DLY

Source

pub fn lcd_sync_ctl(&self) -> &LCD_SYNC_CTL

0x230 - LCD Sync Control Register

Source

pub fn lcd_sync_pos(&self) -> &LCD_SYNC_POS

0x234 - LCD Sync Position Register

Source

pub fn lcd_slave_stop_pos(&self) -> &LCD_SLAVE_STOP_POS

0x238 - LCD Slave Stop Position Register

Source

pub fn lcd_gamma_table(&self, n: usize) -> &LCD_GAMMA_TABLE

0x400..0x800 - LCD Gamma Table Register

Trait Implementations§

Source§

impl Debug for TCON_LCD0

Source§

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

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

impl Deref for TCON_LCD0

Source§

type Target = RegisterBlock

The resulting type after dereferencing.
Source§

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

Dereferences the value.
Source§

impl Send for TCON_LCD0

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> 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<P, T> Receiver for P
where P: Deref<Target = T> + ?Sized, T: ?Sized,

Source§

type Target = T

🔬This is a nightly-only experimental API. (arbitrary_self_types)
The target type on which the method may be called.
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.