Skip to main content

WriteCommand

Trait WriteCommand 

Source
pub trait WriteCommand {
    type Params: AsRef<[u8]>;

    const OPCODE: Instr;

    // Required method
    fn params(&self) -> Self::Params;
}
Expand description

A command that can be sent with write_command: an opcode and its parameter bytes.

Required Associated Constants§

Source

const OPCODE: Instr

Opcode, sent with DC low

Required Associated Types§

Source

type Params: AsRef<[u8]>

Parameter bytes, sent with DC high

Required Methods§

Source

fn params(&self) -> Self::Params

Parameter bytes of this command value.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§

Source§

impl WriteCommand for AutoPowerDownControl

Source§

const OPCODE: Instr = Instr::AUTOPWRCTRL

Source§

type Params = [u8; 1]

Source§

impl WriteCommand for BoosterControl

Source§

const OPCODE: Instr = Instr::BSTEN

Source§

type Params = [u8; 1]

Source§

impl WriteCommand for ColumnAddressSet

Source§

const OPCODE: Instr = Instr::CASET

Source§

type Params = [u8; 2]

Source§

impl WriteCommand for DataFormatSelect

Source§

const OPCODE: Instr = Instr::DTFORM

Source§

type Params = [u8; 1]

Source§

impl WriteCommand for DisplayInversionOff

Source§

const OPCODE: Instr = Instr::INVOFF

Source§

type Params = [u8; 0]

Source§

impl WriteCommand for DisplayInversionOn

Source§

const OPCODE: Instr = Instr::INVON

Source§

type Params = [u8; 0]

Source§

impl WriteCommand for DisplayOff

Source§

const OPCODE: Instr = Instr::DISPOFF

Source§

type Params = [u8; 0]

Source§

impl WriteCommand for DisplayOn

Source§

const OPCODE: Instr = Instr::DISPON

Source§

type Params = [u8; 0]

Source§

impl WriteCommand for EnableClearRam

Source§

const OPCODE: Instr = Instr::CLRAM

Source§

type Params = [u8; 1]

Source§

impl WriteCommand for ExtbControl

Available on crate feature nvm-program only.
Source§

const OPCODE: Instr = Instr::EXTBCTRL

Source§

type Params = [u8; 1]

Source§

impl WriteCommand for FirstGateSetting

Source§

const OPCODE: Instr = Instr::FSTCOM

Source§

type Params = [u8; 2]

Source§

impl WriteCommand for FrameRateControl

Source§

const OPCODE: Instr = Instr::FRCTRL

Source§

type Params = [u8; 1]

Source§

impl WriteCommand for GammaModeSetting

Source§

const OPCODE: Instr = Instr::GAMAMS

Source§

type Params = [u8; 1]

Source§

impl WriteCommand for GateLineSetting

Source§

const OPCODE: Instr = Instr::GATESET

Source§

type Params = [u8; 1]

Source§

impl WriteCommand for GateTimingControl

Source§

const OPCODE: Instr = Instr::GTCTRL

Source§

type Params = [u8; 3]

Source§

impl WriteCommand for GateVoltageControl

Source§

const OPCODE: Instr = Instr::GCTRL

Source§

type Params = [u8; 2]

Source§

impl WriteCommand for HighPowerModeOn

Source§

const OPCODE: Instr = Instr::HPM

Source§

type Params = [u8; 0]

Source§

impl WriteCommand for Id1Setting

Available on crate feature nvm-program only.
Source§

const OPCODE: Instr = Instr::ID1SET

Source§

type Params = [u8; 1]

Source§

impl WriteCommand for Id2Setting

Available on crate feature nvm-program only.
Source§

const OPCODE: Instr = Instr::ID2SET

Source§

type Params = [u8; 1]

Source§

impl WriteCommand for Id3Setting

Available on crate feature nvm-program only.
Source§

const OPCODE: Instr = Instr::ID3SET

Source§

type Params = [u8; 1]

Source§

impl WriteCommand for LowPowerModeOn

Source§

const OPCODE: Instr = Instr::LPM

Source§

type Params = [u8; 0]

Source§

impl WriteCommand for MemoryDataAccessControl

Source§

const OPCODE: Instr = Instr::MADCTL

Source§

type Params = [u8; 1]

Source§

impl WriteCommand for Nop

Source§

const OPCODE: Instr = Instr::NOP

Source§

type Params = [u8; 0]

Source§

impl WriteCommand for NvmLoadControl

Source§

const OPCODE: Instr = Instr::NVMLOADCTRL

Source§

type Params = [u8; 2]

Source§

impl WriteCommand for NvmProgramEnable

Available on crate feature nvm-program only.
Source§

const OPCODE: Instr = Instr::NVMPROM

Source§

type Params = [u8; 2]

Source§

impl WriteCommand for NvmProgramSetting

Available on crate feature nvm-program only.
Source§

const OPCODE: Instr = Instr::NVMCTRL2

Source§

type Params = [u8; 2]

Source§

impl WriteCommand for NvmReadEnable

Source§

const OPCODE: Instr = Instr::NVMRDEN

Source§

type Params = [u8; 2]

Source§

impl WriteCommand for NvmWrRdControl

Source§

const OPCODE: Instr = Instr::NVMCTRL1

Source§

type Params = [u8; 4]

Source§

impl WriteCommand for OscSetting

Source§

const OPCODE: Instr = Instr::OSCSET

Source§

type Params = [u8; 2]

Source§

impl WriteCommand for PanelSetting

Source§

const OPCODE: Instr = Instr::PNLSET

Source§

type Params = [u8; 1]

Source§

impl WriteCommand for PartialOff

Source§

const OPCODE: Instr = Instr::PTLOFF

Source§

type Params = [u8; 0]

Source§

impl WriteCommand for PartialOn

Source§

const OPCODE: Instr = Instr::PTLON

Source§

type Params = [u8; 0]

Source§

impl WriteCommand for RowAddressSet

Source§

const OPCODE: Instr = Instr::RASET

Source§

type Params = [u8; 2]

Source§

impl WriteCommand for SetTearScanline

Source§

const OPCODE: Instr = Instr::TESCAN

Source§

type Params = [u8; 2]

Source§

impl WriteCommand for SleepIn

Source§

const OPCODE: Instr = Instr::SLPIN

Source§

type Params = [u8; 0]

Source§

impl WriteCommand for SleepOut

Source§

const OPCODE: Instr = Instr::SLPOUT

Source§

type Params = [u8; 0]

Source§

impl WriteCommand for SoftReset

Source§

const OPCODE: Instr = Instr::SWRESET

Source§

type Params = [u8; 0]

Source§

impl WriteCommand for SourceEqEnable

Source§

const OPCODE: Instr = Instr::SOUEQ

Source§

type Params = [u8; 1]

Source§

impl WriteCommand for SourceGammaVoltageControl

Source§

const OPCODE: Instr = Instr::VSIKCTRL

Source§

type Params = [u8; 4]

Source§

impl WriteCommand for SourceHighNegativeVoltageControl

Source§

const OPCODE: Instr = Instr::VSHNCTRL

Source§

type Params = [u8; 4]

Source§

impl WriteCommand for SourceHighPositiveVoltageControl

Source§

const OPCODE: Instr = Instr::VSHPCTRL

Source§

type Params = [u8; 4]

Source§

impl WriteCommand for SourceLowNegativeVoltageControl

Source§

const OPCODE: Instr = Instr::VSLNCTRL

Source§

type Params = [u8; 4]

Source§

impl WriteCommand for SourceLowPositiveVoltageControl

Source§

const OPCODE: Instr = Instr::VSLPCTRL

Source§

type Params = [u8; 4]

Source§

impl WriteCommand for SourceVoltageSelect

Source§

const OPCODE: Instr = Instr::VSHLSEL

Source§

type Params = [u8; 1]

Source§

impl WriteCommand for TearingEffectLineOff

Source§

const OPCODE: Instr = Instr::TEOFF

Source§

type Params = [u8; 0]

Source§

impl WriteCommand for TearingEffectLineOn

Source§

const OPCODE: Instr = Instr::TEON

Source§

type Params = [u8; 1]

Source§

impl WriteCommand for UpdatePeriodGateEqControlInHpm

Source§

const OPCODE: Instr = Instr::GTUPEQH

Source§

type Params = [u8; 10]

Source§

impl WriteCommand for UpdatePeriodGateEqControlInLpm

Source§

const OPCODE: Instr = Instr::GTUPEQL

Source§

type Params = [u8; 8]

Source§

impl WriteCommand for VerticalScrollStartAddressOfRam

Source§

const OPCODE: Instr = Instr::VSCSAD

Source§

type Params = [u8; 2]