DisplayHardwareLayer

Trait DisplayHardwareLayer 

Source
pub trait DisplayHardwareLayer {
    // Required methods
    fn set_direction(&self, _: Direction);
    fn set_level(&self, _: Level);
    fn get_value(&self) -> u8;

    // Provided methods
    fn init(&self) { ... }
    fn cleanup(&self) { ... }
}
Expand description

The DisplayHardwareLayer trait is intended to be implemented by the library user as a thin wrapper around the hardware specific system calls.

Required Methods§

Source

fn set_direction(&self, _: Direction)

Source

fn set_level(&self, _: Level)

Sets a value on an I/O pin.

Source

fn get_value(&self) -> u8

Provided Methods§

Source

fn init(&self)

Initializes an I/O pin.

Source

fn cleanup(&self)

Cleanup an I/O pin.

Implementors§