Struct ssd1681::driver::Ssd1681[][src]

pub struct Ssd1681<SPI, CS, BUSY, DC, RST> { /* fields omitted */ }

A configured display with a hardware interface.

Implementations

impl<SPI, CS, BUSY, DC, RST> Ssd1681<SPI, CS, BUSY, DC, RST> where
    SPI: Write<u8>,
    CS: OutputPin,
    CS::Error: Debug,
    BUSY: InputPin,
    DC: OutputPin,
    DC::Error: Debug,
    RST: OutputPin,
    RST::Error: Debug
[src]

pub fn new<DELAY: DelayMs<u8>>(
    spi: &mut SPI,
    cs: CS,
    busy: BUSY,
    dc: DC,
    rst: RST,
    delay: &mut DELAY
) -> Result<Self, SPI::Error> where
    Self: Sized
[src]

Create and initialize the display driver

pub fn init<DELAY: DelayMs<u8>>(
    &mut self,
    spi: &mut SPI,
    delay: &mut DELAY
) -> Result<(), SPI::Error>
[src]

Initialise the controller

pub fn update_bw_frame(
    &mut self,
    spi: &mut SPI,
    buffer: &[u8]
) -> Result<(), SPI::Error>
[src]

Update the whole BW buffer on the display driver

pub fn update_red_frame(
    &mut self,
    spi: &mut SPI,
    buffer: &[u8]
) -> Result<(), SPI::Error>
[src]

Update the whole Red buffer on the display driver

pub fn display_frame(&mut self, spi: &mut SPI) -> Result<(), SPI::Error>[src]

Start an update of the whole display

pub fn clear_bw_frame(&mut self, spi: &mut SPI) -> Result<(), SPI::Error>[src]

Make the whole black and white frame on the display driver white

pub fn clear_red_frame(&mut self, spi: &mut SPI) -> Result<(), SPI::Error>[src]

Make the whole red frame on the display driver white

Auto Trait Implementations

impl<SPI, CS, BUSY, DC, RST> RefUnwindSafe for Ssd1681<SPI, CS, BUSY, DC, RST> where
    BUSY: RefUnwindSafe,
    CS: RefUnwindSafe,
    DC: RefUnwindSafe,
    RST: RefUnwindSafe,
    SPI: RefUnwindSafe

impl<SPI, CS, BUSY, DC, RST> Send for Ssd1681<SPI, CS, BUSY, DC, RST> where
    BUSY: Send,
    CS: Send,
    DC: Send,
    RST: Send,
    SPI: Send

impl<SPI, CS, BUSY, DC, RST> Sync for Ssd1681<SPI, CS, BUSY, DC, RST> where
    BUSY: Sync,
    CS: Sync,
    DC: Sync,
    RST: Sync,
    SPI: Sync

impl<SPI, CS, BUSY, DC, RST> Unpin for Ssd1681<SPI, CS, BUSY, DC, RST> where
    BUSY: Unpin,
    CS: Unpin,
    DC: Unpin,
    RST: Unpin,
    SPI: Unpin

impl<SPI, CS, BUSY, DC, RST> UnwindSafe for Ssd1681<SPI, CS, BUSY, DC, RST> where
    BUSY: UnwindSafe,
    CS: UnwindSafe,
    DC: UnwindSafe,
    RST: UnwindSafe,
    SPI: UnwindSafe

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

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

The type returned in the event of a conversion error.