Trait ControllerInterface

Source
pub trait ControllerInterface {
    type Error;

    // Required methods
    fn send_command(&mut self, cmd: u8) -> Result<(), Self::Error>;
    fn send_command_with_data(
        &mut self,
        cmd: u8,
        data: &[u8],
    ) -> Result<(), Self::Error>;
    fn send_pixels(&mut self, pixels: &[u8]) -> Result<(), Self::Error>;
}
Expand description

Trait to implement the SH8601 controller communication interface (QSPI, SPI, etc.).

Required Associated Types§

Source

type Error

The specific error type for this interface implementation.

Required Methods§

Source

fn send_command(&mut self, cmd: u8) -> Result<(), Self::Error>

Sends a command byte to the display.

Source

fn send_command_with_data( &mut self, cmd: u8, data: &[u8], ) -> Result<(), Self::Error>

Sends data bytes to the display following a command.

Source

fn send_pixels(&mut self, pixels: &[u8]) -> Result<(), Self::Error>

Sends pixel data

Implementors§