Enum Command

Source
#[repr(u8)]
pub enum Command {
Show 85 variants NOP = 0, SWRESET = 1, RDDID = 4, RDDST = 9, RDDPM = 10, RDDMADCTL = 11, RDDCOLMOD = 12, RDDIM = 13, RDDSDR = 15, SLPIN = 16, SLPOUT = 17, PTLON = 18, NORON = 19, INVOFF = 32, INVON = 33, GAMSET = 38, DISPOFF = 40, DISPON = 41, CASET = 42, RASET = 43, RAMWR = 44, RAMRD = 46, PTLAR = 48, VSCRDEF = 51, TEOFF = 52, TEON = 53, MADCTL = 54, VSCSAD = 55, IDMOFF = 56, IDMON = 57, COLMOD = 58, WRMEMC = 60, RDMEMC = 62, STE = 68, GSCAN = 69, WRDISBV = 81, RDDISBV = 82, WRCTRLD = 83, RDCTRLD = 84, WRCACE = 85, RDCABC = 86, WRCABCMB = 94, RDCABCMB = 95, RDABCSDR = 104, RDID1 = 218, RDID2 = 219, RDID3 = 220, RAMCTRL = 176, RGBCTRL = 177, PORCTRL = 178, FRCTRL1 = 179, PARCTRL = 181, UNKNOWN = 182, GCTRL = 183, GTADJ = 184, DGMEN = 186, VCOMS = 187, POWSAVE = 188, DLPOFFSAVE = 189, LCMCTRL = 192, IDSET = 193, VDVVRHEN = 194, VRHS = 195, VDVS = 196, VCMOFSET = 197, FRCTRL2 = 198, CABCCTRL = 199, REGSEL1 = 200, REGSEL2 = 202, PWMFRSEL = 204, PWCTRL1 = 208, VAPVANEN = 210, CMD2EN = 223, PVGAMCTRL = 224, NVGAMCTRL = 225, DGMLUTR = 226, DGMLUTB = 227, GATECTRL = 228, SPI2EN = 231, PWCTRL2 = 232, EQCTRL = 233, PROMCTRL = 236, PROMEN = 250, NVMSET = 252, PROMACT = 254,
}

Variants§

§

NOP = 0

No Operation

§

SWRESET = 1

Software Reset

§

RDDID = 4

Read Display ID

§

RDDST = 9

Read Display Status

§

RDDPM = 10

Read Display Power Mode

§

RDDMADCTL = 11

Read Display MADCTL

§

RDDCOLMOD = 12

Read Display Pixel Format

§

RDDIM = 13

Read Display Image Mode

§

RDDSDR = 15

Read Display Signal Mode

§

SLPIN = 16

Read Display Self-Diagnostic Resul

§

SLPOUT = 17

Sleep in

§

PTLON = 18

Sleep Out

§

NORON = 19

Partial Display Mode On

§

INVOFF = 32

Display Inversion Off

§

INVON = 33

Display Inversion O

§

GAMSET = 38

Gamma Set

§

DISPOFF = 40

Display Off

§

DISPON = 41

Display On

§

CASET = 42

Column Address Set

§

RASET = 43

Row Address Set

§

RAMWR = 44

Memory Write

§

RAMRD = 46

Memory Read

§

PTLAR = 48

Partial Area

§

VSCRDEF = 51

Vertical Scrolling Definition

§

TEOFF = 52

Tearing Effect Line OFF

§

TEON = 53

Tearing Effect Line On

§

MADCTL = 54

Memory Data Access Control

§

VSCSAD = 55

Vertical Scroll Start Address of RAM

§

IDMOFF = 56

Idle Mode Off

§

IDMON = 57

Idle mode on

§

COLMOD = 58

Interface Pixel Format

§

WRMEMC = 60

Write Memory Continue

§

RDMEMC = 62

Read Memory Continue

§

STE = 68

Set Tear Scanline

§

GSCAN = 69

Get Scanlin

§

WRDISBV = 81

Write Display Brightness

§

RDDISBV = 82

Read Display Brightness Value

§

WRCTRLD = 83

Write CTRL Display

§

RDCTRLD = 84

Read CTRL Value Display

§

WRCACE = 85

Write Content Adaptive Brightness Control and Color Enhancement

§

RDCABC = 86

Read Content Adaptive Brightness Control

§

WRCABCMB = 94

Write CABC Minimum Brightness

§

RDCABCMB = 95

Read CABC Minimum Brightness

§

RDABCSDR = 104

Read Automatic Brightness Control Self-Diagnostic Result

§

RDID1 = 218

Read ID1

§

RDID2 = 219

Read ID2

§

RDID3 = 220

Read ID3

§

RAMCTRL = 176

RAM Control

§

RGBCTRL = 177

RGB Interface Control

§

PORCTRL = 178

Porch Setting

§

FRCTRL1 = 179

Frame Rate Control 1 (In partial mode/ idle colors)

§

PARCTRL = 181

Partial Control

§

UNKNOWN = 182

Undocumented command

§

GCTRL = 183

Gate Control

§

GTADJ = 184

Gate On Timing Adjustment

§

DGMEN = 186

Digital Gamma Enable

§

VCOMS = 187

VCOM Setting

§

POWSAVE = 188

Power Saving Mode

§

DLPOFFSAVE = 189

Display off power save

§

LCMCTRL = 192

LCM Control

§

IDSET = 193

ID Code Setting

§

VDVVRHEN = 194

VDV and VRH Command Enable

§

VRHS = 195

VRH Set

§

VDVS = 196

VDV Set

§

VCMOFSET = 197

VCOM Offset Set

§

FRCTRL2 = 198

Frame Rate Control in Normal Mode

§

CABCCTRL = 199

CABC Control

§

REGSEL1 = 200

Register Value Selection 1

§

REGSEL2 = 202

Register Value Selection 2

§

PWMFRSEL = 204

PWM Frequency Selection

§

PWCTRL1 = 208

Power Control 1

§

VAPVANEN = 210

Enable VAP/VAN signal output

§

CMD2EN = 223

Command 2 Enable

§

PVGAMCTRL = 224

Positive Voltage Gamma Control

§

NVGAMCTRL = 225

Negative Voltage Gamma Control

§

DGMLUTR = 226

Digital Gamma Look-up Table for Red

§

DGMLUTB = 227

Digital Gamma Look-up Table for Blue

§

GATECTRL = 228

Gate Control

§

SPI2EN = 231

SPI2 Enable

§

PWCTRL2 = 232

Power Control 2

§

EQCTRL = 233

Equalize time control

§

PROMCTRL = 236

Program Mode Control

§

PROMEN = 250

Program Mode Enable

§

NVMSET = 252

NVM Setting

§

PROMACT = 254

Program action

Trait Implementations§

Source§

impl Clone for Command

Source§

fn clone(&self) -> Command

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 PartialEq for Command

Source§

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

Source§

impl Eq for Command

Source§

impl StructuralPartialEq for Command

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

Source§

fn az<Dst>(self) -> Dst
where T: Cast<Dst>,

Casts the value.
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<Src, Dst> CastFrom<Src> for Dst
where Src: Cast<Dst>,

Source§

fn cast_from(src: Src) -> Dst

Casts the value.
Source§

impl<T> CheckedAs for T

Source§

fn checked_as<Dst>(self) -> Option<Dst>
where T: CheckedCast<Dst>,

Casts the value.
Source§

impl<Src, Dst> CheckedCastFrom<Src> for Dst
where Src: CheckedCast<Dst>,

Source§

fn checked_cast_from(src: Src) -> Option<Dst>

Casts the value.
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> OverflowingAs for T

Source§

fn overflowing_as<Dst>(self) -> (Dst, bool)
where T: OverflowingCast<Dst>,

Casts the value.
Source§

impl<Src, Dst> OverflowingCastFrom<Src> for Dst
where Src: OverflowingCast<Dst>,

Source§

fn overflowing_cast_from(src: Src) -> (Dst, bool)

Casts the value.
Source§

impl<T> SaturatingAs for T

Source§

fn saturating_as<Dst>(self) -> Dst
where T: SaturatingCast<Dst>,

Casts the value.
Source§

impl<Src, Dst> SaturatingCastFrom<Src> for Dst
where Src: SaturatingCast<Dst>,

Source§

fn saturating_cast_from(src: Src) -> Dst

Casts the value.
Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
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.
Source§

impl<T> UnwrappedAs for T

Source§

fn unwrapped_as<Dst>(self) -> Dst
where T: UnwrappedCast<Dst>,

Casts the value.
Source§

impl<Src, Dst> UnwrappedCastFrom<Src> for Dst
where Src: UnwrappedCast<Dst>,

Source§

fn unwrapped_cast_from(src: Src) -> Dst

Casts the value.
Source§

impl<T> WrappingAs for T

Source§

fn wrapping_as<Dst>(self) -> Dst
where T: WrappingCast<Dst>,

Casts the value.
Source§

impl<Src, Dst> WrappingCastFrom<Src> for Dst
where Src: WrappingCast<Dst>,

Source§

fn wrapping_cast_from(src: Src) -> Dst

Casts the value.