Trait pwr_hd44780::buses::Bus [] [src]

pub trait Bus {
    fn initialize(&mut self) -> UnitResult;
fn set_backlight(&mut self, enabled: bool) -> UnitResult;
fn write_byte(&mut self, value: u8, as_data: bool) -> UnitResult;
fn width(&self) -> usize; fn write_command(&mut self, value: u8) -> UnitResult { ... }
fn write_data(&mut self, value: u8) -> UnitResult { ... }
fn execute(&mut self, command: Command) -> UnitResult { ... } }

Required Methods

Initializes the bus (eg. puts LCD in appropriate 4/8-bit mode).

Enables / disables the backlight.

Sends a single byte to the device. When as_data is true, the RS register is pulled up and byte is sent as data.

Returns bus width (4 / 8 bit).

Provided Methods

Sends a raw command to the device.

Sends a raw data to the device.

Executes given command.

Implementors