Struct ssd1681::driver::Ssd1681 [−][src]
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]
SPI: Write<u8>,
CS: OutputPin,
CS::Error: Debug,
BUSY: InputPin,
DC: OutputPin,
DC::Error: Debug,
RST: OutputPin,
RST::Error: Debug,
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]
spi: &mut SPI,
cs: CS,
busy: BUSY,
dc: DC,
rst: RST,
delay: &mut DELAY
) -> Result<Self, SPI::Error> where
Self: Sized,
Create and initialize the display driver
pub fn init<DELAY: DelayMs<u8>>(
&mut self,
spi: &mut SPI,
delay: &mut DELAY
) -> Result<(), SPI::Error>
[src]
&mut self,
spi: &mut SPI,
delay: &mut DELAY
) -> Result<(), SPI::Error>
Initialise the controller
pub fn update_bw_frame(
&mut self,
spi: &mut SPI,
buffer: &[u8]
) -> Result<(), SPI::Error>
[src]
&mut self,
spi: &mut SPI,
buffer: &[u8]
) -> Result<(), SPI::Error>
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]
&mut self,
spi: &mut SPI,
buffer: &[u8]
) -> Result<(), SPI::Error>
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,
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,
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,
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,
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,
BUSY: UnwindSafe,
CS: UnwindSafe,
DC: UnwindSafe,
RST: UnwindSafe,
SPI: UnwindSafe,
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,