RegisterBlock

Struct RegisterBlock 

Source
pub struct RegisterBlock {
Show 25 fields pub timh: TIMH, pub timv: TIMV, pub pol: POL, pub le: LE, pub upbase: UPBASE, pub lpbase: LPBASE, pub ctrl: CTRL, pub intmsk: INTMSK, pub intraw: INTRAW, pub intstat: INTSTAT, pub intclr: INTCLR, pub upcurr: UPCURR, pub lpcurr: LPCURR, pub pal: [PAL; 256], pub crsr_img: [CRSR_IMG; 256], pub crsr_ctrl: CRSR_CTRL, pub crsr_cfg: CRSR_CFG, pub crsr_pal0: CRSR_PAL0, pub crsr_pal1: CRSR_PAL1, pub crsr_xy: CRSR_XY, pub crsr_clip: CRSR_CLIP, pub crsr_intmsk: CRSR_INTMSK, pub crsr_intclr: CRSR_INTCLR, pub crsr_intraw: CRSR_INTRAW, pub crsr_intstat: CRSR_INTSTAT, /* private fields */
}
Expand description

Register block

Fields§

§timh: TIMH

0x00 - Horizontal Timing Control register

§timv: TIMV

0x04 - Vertical Timing Control register

§pol: POL

0x08 - Clock and Signal Polarity Control register

§le: LE

0x0c - Line End Control register

§upbase: UPBASE

0x10 - Upper Panel Frame Base Address register

§lpbase: LPBASE

0x14 - Lower Panel Frame Base Address register

§ctrl: CTRL

0x18 - LCD Control register

§intmsk: INTMSK

0x1c - Interrupt Mask register

§intraw: INTRAW

0x20 - Raw Interrupt Status register

§intstat: INTSTAT

0x24 - Masked Interrupt Status register

§intclr: INTCLR

0x28 - Interrupt Clear register

§upcurr: UPCURR

0x2c - Upper Panel Current Address Value register

§lpcurr: LPCURR

0x30 - Lower Panel Current Address Value register

§pal: [PAL; 256]

0x200 - 256x16-bit Color Palette registers

§crsr_img: [CRSR_IMG; 256]

0x800 - Cursor Image registers

§crsr_ctrl: CRSR_CTRL

0xc00 - Cursor Control register

§crsr_cfg: CRSR_CFG

0xc04 - Cursor Configuration register

§crsr_pal0: CRSR_PAL0

0xc08 - Cursor Palette register 0

§crsr_pal1: CRSR_PAL1

0xc0c - Cursor Palette register 1

§crsr_xy: CRSR_XY

0xc10 - Cursor XY Position register

§crsr_clip: CRSR_CLIP

0xc14 - Cursor Clip Position register

§crsr_intmsk: CRSR_INTMSK

0xc20 - Cursor Interrupt Mask register

§crsr_intclr: CRSR_INTCLR

0xc24 - Cursor Interrupt Clear register

§crsr_intraw: CRSR_INTRAW

0xc28 - Cursor Raw Interrupt Status register

§crsr_intstat: CRSR_INTSTAT

0xc2c - Cursor Masked Interrupt Status register

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<T> Same for T

Source§

type Output = T

Should always be Self
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.