pub trait Instance {
// Required methods
fn configure<Word>(&self, br: u8, cpol: bool, cpha: bool)
where Word: SupportedWordSize;
fn read<Word>(&self) -> Result<Word, Error>
where Word: SupportedWordSize;
fn send<Word>(&self, word: Word) -> Result<(), Error>
where Word: SupportedWordSize;
fn dr_address(&self) -> u32;
}
Expand description
Implemented for all instances of the SPI peripheral
Users of this crate should not implement this trait.
Required Methods§
fn configure<Word>(&self, br: u8, cpol: bool, cpha: bool)where
Word: SupportedWordSize,
fn read<Word>(&self) -> Result<Word, Error>where
Word: SupportedWordSize,
fn send<Word>(&self, word: Word) -> Result<(), Error>where
Word: SupportedWordSize,
fn dr_address(&self) -> u32
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.