Struct display_interface_spi::SPIInterface
source · pub struct SPIInterface<SPI, DC> { /* private fields */ }
Expand description
SPI display interface.
This combines the SPI peripheral and a data/command pin
Implementations§
Trait Implementations§
source§impl<SPI, DC> AsyncWriteOnlyDataCommand for SPIInterface<SPI, DC>
impl<SPI, DC> AsyncWriteOnlyDataCommand for SPIInterface<SPI, DC>
source§async fn send_commands(
&mut self,
cmds: DataFormat<'_>
) -> Result<(), DisplayError>
async fn send_commands( &mut self, cmds: DataFormat<'_> ) -> Result<(), DisplayError>
Send a batch of commands to display
source§async fn send_data(&mut self, buf: DataFormat<'_>) -> Result<(), DisplayError>
async fn send_data(&mut self, buf: DataFormat<'_>) -> Result<(), DisplayError>
Send pixel data to display
source§impl<SPI, DC> WriteOnlyDataCommand for SPIInterface<SPI, DC>
impl<SPI, DC> WriteOnlyDataCommand for SPIInterface<SPI, DC>
source§fn send_commands(&mut self, cmds: DataFormat<'_>) -> Result<(), DisplayError>
fn send_commands(&mut self, cmds: DataFormat<'_>) -> Result<(), DisplayError>
Send a batch of commands to display
source§fn send_data(&mut self, buf: DataFormat<'_>) -> Result<(), DisplayError>
fn send_data(&mut self, buf: DataFormat<'_>) -> Result<(), DisplayError>
Send pixel data to display
Auto Trait Implementations§
impl<SPI, DC> RefUnwindSafe for SPIInterface<SPI, DC>where
DC: RefUnwindSafe,
SPI: RefUnwindSafe,
impl<SPI, DC> Send for SPIInterface<SPI, DC>
impl<SPI, DC> Sync for SPIInterface<SPI, DC>
impl<SPI, DC> Unpin for SPIInterface<SPI, DC>
impl<SPI, DC> UnwindSafe for SPIInterface<SPI, DC>where
DC: UnwindSafe,
SPI: UnwindSafe,
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more