pub enum Command {
Show 29 variants
DriverOutputControl(u16, u8),
GateDrivingVoltage(u8),
SourceDrivingVoltage(u8, u8, u8),
BoosterEnable(u8, u8, u8, u8),
GateScanStartPostion(u16),
DeepSleepMode(DeepSleepMode),
DataEntryMode(DataEntryMode, IncrementAxis),
SoftReset,
TemperatatSensorSelection(TemperatureSensor),
WriteTemperatureSensor(u16),
ReadTemperatureSensor(u16),
WriteExternalTemperatureSensor(u8, u8, u8),
UpdateDisplay,
UpdateDisplayOption1(RamOption, RamOption),
UpdateDisplayOption2(u8),
EnterVCOMSensing,
VCOMSenseDuration(u8),
WriteVCOM(u8),
DummyLinePeriod(u8),
GateLineWidth(u8),
BorderWaveform(u8),
StartEndXPosition(u8, u8),
StartEndYPosition(u16, u16),
AutoWriteRedPattern(u8),
AutoWriteBlackPattern(u8),
XAddress(u8),
YAddress(u8),
AnalogBlockControl(u8),
DigitalBlockControl(u8),
}
Expand description
A command that can be issued to the controller.
Variants
DriverOutputControl(u16, u8)
Set the MUX of gate lines, scanning sequence and direction 0: MAX gate lines 1: Gate scanning sequence and direction
GateDrivingVoltage(u8)
Set the gate driving voltage.
SourceDrivingVoltage(u8, u8, u8)
Set the source driving voltage. 0: VSH1 1: VSH2 2: VSL
BoosterEnable(u8, u8, u8, u8)
Booster enable with phases 1 to 3 for soft start current and duration setting 0: Soft start setting for phase 1 1: Soft start setting for phase 2 2: Soft start setting for phase 3 3: Duration setting
GateScanStartPostion(u16)
Set the scanning start position of the gate driver
DeepSleepMode(DeepSleepMode)
Set deep sleep mode
DataEntryMode(DataEntryMode, IncrementAxis)
Set the data entry mode and increament axis
SoftReset
Perform a soft reset, and reset all parameters to their default values BUSY will be high when in progress.
TemperatatSensorSelection(TemperatureSensor)
Specify internal or external temperature sensor
WriteTemperatureSensor(u16)
Write to the temperature sensor register
ReadTemperatureSensor(u16)
Read from the temperature sensor register
WriteExternalTemperatureSensor(u8, u8, u8)
Write a command to the external temperature sensor
UpdateDisplay
Activate display update sequence. BUSY will be high when in progress.
UpdateDisplayOption1(RamOption, RamOption)
Set RAM content options for update display command. 0: Black/White RAM option 1: Red RAM option
UpdateDisplayOption2(u8)
Set display update sequence options
EnterVCOMSensing
Enter VCOM sensing and hold for duration defined by VCOMSenseDuration BUSY will be high when in progress.
VCOMSenseDuration(u8)
Set VCOM sensing duration
WriteVCOM(u8)
Write VCOM register from MCU interface
DummyLinePeriod(u8)
Set the number of dummy line period in terms of gate line width (TGate)
GateLineWidth(u8)
Set the gate line width (TGate)
BorderWaveform(u8)
Select border waveform for VBD
StartEndXPosition(u8, u8)
Set the start/end positions of the window address in the X direction 0: Start 1: End
StartEndYPosition(u16, u16)
Set the start/end positions of the window address in the Y direction 0: Start 1: End
AutoWriteRedPattern(u8)
Auto write red RAM for regular pattern
AutoWriteBlackPattern(u8)
Auto write red RAM for regular pattern
XAddress(u8)
Set RAM X address
YAddress(u8)
Set RAM Y address
AnalogBlockControl(u8)
Set analog block control
DigitalBlockControl(u8)
Set digital block control
Implementations
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for Command
impl Send for Command
impl Sync for Command
impl Unpin for Command
impl UnwindSafe for Command
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> CheckedAs for T
impl<T> CheckedAs for T
sourcefn checked_as<Dst>(self) -> Option<Dst> where
T: CheckedCast<Dst>,
fn checked_as<Dst>(self) -> Option<Dst> where
T: CheckedCast<Dst>,
Casts the value.
sourceimpl<Src, Dst> CheckedCastFrom<Src> for Dst where
Src: CheckedCast<Dst>,
impl<Src, Dst> CheckedCastFrom<Src> for Dst where
Src: CheckedCast<Dst>,
sourcefn checked_cast_from(src: Src) -> Option<Dst>
fn checked_cast_from(src: Src) -> Option<Dst>
Casts the value.
sourceimpl<T> OverflowingAs for T
impl<T> OverflowingAs for T
sourcefn overflowing_as<Dst>(self) -> (Dst, bool) where
T: OverflowingCast<Dst>,
fn overflowing_as<Dst>(self) -> (Dst, bool) where
T: OverflowingCast<Dst>,
Casts the value.
sourceimpl<Src, Dst> OverflowingCastFrom<Src> for Dst where
Src: OverflowingCast<Dst>,
impl<Src, Dst> OverflowingCastFrom<Src> for Dst where
Src: OverflowingCast<Dst>,
sourcefn overflowing_cast_from(src: Src) -> (Dst, bool)
fn overflowing_cast_from(src: Src) -> (Dst, bool)
OverflowingCasts the value.
sourceimpl<T> SaturatingAs for T
impl<T> SaturatingAs for T
sourcefn saturating_as<Dst>(self) -> Dst where
T: SaturatingCast<Dst>,
fn saturating_as<Dst>(self) -> Dst where
T: SaturatingCast<Dst>,
Casts the value.
sourceimpl<Src, Dst> SaturatingCastFrom<Src> for Dst where
Src: SaturatingCast<Dst>,
impl<Src, Dst> SaturatingCastFrom<Src> for Dst where
Src: SaturatingCast<Dst>,
sourcefn saturating_cast_from(src: Src) -> Dst
fn saturating_cast_from(src: Src) -> Dst
Casts the value.
sourceimpl<T> UnwrappedAs for T
impl<T> UnwrappedAs for T
sourcefn unwrapped_as<Dst>(self) -> Dst where
T: UnwrappedCast<Dst>,
fn unwrapped_as<Dst>(self) -> Dst where
T: UnwrappedCast<Dst>,
Casts the value.
sourceimpl<Src, Dst> UnwrappedCastFrom<Src> for Dst where
Src: UnwrappedCast<Dst>,
impl<Src, Dst> UnwrappedCastFrom<Src> for Dst where
Src: UnwrappedCast<Dst>,
sourcefn unwrapped_cast_from(src: Src) -> Dst
fn unwrapped_cast_from(src: Src) -> Dst
UnwrappedCasts the value.
sourceimpl<T> WrappingAs for T
impl<T> WrappingAs for T
sourcefn wrapping_as<Dst>(self) -> Dst where
T: WrappingCast<Dst>,
fn wrapping_as<Dst>(self) -> Dst where
T: WrappingCast<Dst>,
Casts the value.
sourceimpl<Src, Dst> WrappingCastFrom<Src> for Dst where
Src: WrappingCast<Dst>,
impl<Src, Dst> WrappingCastFrom<Src> for Dst where
Src: WrappingCast<Dst>,
sourcefn wrapping_cast_from(src: Src) -> Dst
fn wrapping_cast_from(src: Src) -> Dst
WrappingCasts the value.