Struct avrox_display::drivers::solomon::SolomonDisplay

source ·
pub struct SolomonDisplay<CONFIG, CLIENT, DPIXEL>
where CONFIG: GenericConfig, CLIENT: SerialBusClient, DPIXEL: SolomonPixelConversion,
{ /* private fields */ }

Implementations§

source§

impl<CONFIG, CLIENT, DPIXEL> SolomonDisplay<CONFIG, CLIENT, DPIXEL>
where CONFIG: GenericConfig, CLIENT: SerialBusClient, DPIXEL: SolomonPixelConversion,

source

pub fn using_pin_and_client<OP: Into<OwnOrBorrow<'static, dyn Pin>>>( pin: OP, client: CLIENT ) -> Self

source

pub fn set_brightness(&self, brightness: u8) -> GfxResult<()>

source

pub fn set_double_buffering(&self, double_buffer: bool) -> GfxResult<()>

Trait Implementations§

source§

impl<CONFIG, CLIENT, DPIXEL> DisplayDevice for SolomonDisplay<CONFIG, CLIENT, DPIXEL>
where CONFIG: GenericConfig, CLIENT: SerialBusClient, DPIXEL: SolomonPixelConversion,

§

type PIXEL = DPIXEL

The type of pixel data this display renders
source§

fn reset(&self) -> GfxResult<()>

Reset the device to ‘power on’ configuration
source§

fn request_power_level(&self, level: PowerLevel) -> GfxResult<()>

Request the display device moves to the indicated power level.
source§

fn render<RPIXEL, RENDERABLE>(&self, scene: &RENDERABLE) -> GfxResult<()>
where RPIXEL: Into<Self::PIXEL>, RENDERABLE: Renderable<PIXEL = RPIXEL>,

Render the given scene in its entirety, replacing whatever is on the screen already
source§

fn render_changed<RPIXEL, RENDERABLE>( &self, scene: &RENDERABLE ) -> GfxResult<()>
where RPIXEL: Into<Self::PIXEL>, RENDERABLE: Renderable<PIXEL = RPIXEL>,

Render only the parts of the display that have - or may have - changed since the last time it was rendered. The worst-case, always correct, implementation of this method will just redraw the entire display - however the driver may be able to make more efficient choices than that.
source§

impl<CONFIG, CLIENT, DPIXEL> RenderPlane for SolomonDisplay<CONFIG, CLIENT, DPIXEL>
where CONFIG: GenericConfig, CLIENT: SerialBusClient, DPIXEL: SolomonPixelConversion,

source§

const WIDTH: XCoord = _

source§

const HEIGHT: YCoord = _

source§

const ORDERHINT: RenderOrderingHint = RenderOrderingHint::Columns

source§

impl<CONFIG, CLIENT, DPIXEL> Send for SolomonDisplay<CONFIG, CLIENT, DPIXEL>
where CONFIG: GenericConfig, CLIENT: SerialBusClient, DPIXEL: SolomonPixelConversion,

source§

impl<CONFIG, CLIENT, DPIXEL> Sync for SolomonDisplay<CONFIG, CLIENT, DPIXEL>
where CONFIG: GenericConfig, CLIENT: SerialBusClient, DPIXEL: SolomonPixelConversion,

Auto Trait Implementations§

§

impl<CONFIG, CLIENT, DPIXEL> !Freeze for SolomonDisplay<CONFIG, CLIENT, DPIXEL>

§

impl<CONFIG, CLIENT, DPIXEL> !RefUnwindSafe for SolomonDisplay<CONFIG, CLIENT, DPIXEL>

§

impl<CONFIG, CLIENT, DPIXEL> Unpin for SolomonDisplay<CONFIG, CLIENT, DPIXEL>
where CONFIG: Unpin, DPIXEL: Unpin, CLIENT: Unpin,

§

impl<CONFIG, CLIENT, DPIXEL> !UnwindSafe for SolomonDisplay<CONFIG, CLIENT, DPIXEL>

Blanket Implementations§

source§

impl<T> Any for T
where T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for T
where T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

impl<T, U> Into<U> for T
where U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.