Trait atmega_hal::spi::SpiOps
source · pub trait SpiOps<H, SCLK, MOSI, MISO, CS> {
// Required methods
fn raw_setup(&mut self, settings: &Settings);
fn raw_release(&mut self);
fn raw_check_iflag(&self) -> bool;
fn raw_read(&self) -> u8;
fn raw_write(&mut self, byte: u8);
fn raw_transaction(&mut self, byte: u8) -> u8;
}
Expand description
Required Methods§
sourcefn raw_setup(&mut self, settings: &Settings)
fn raw_setup(&mut self, settings: &Settings)
Sets up the control/status registers with the right settings for this secondary device
sourcefn raw_release(&mut self)
fn raw_release(&mut self)
Disable the peripheral
sourcefn raw_check_iflag(&self) -> bool
fn raw_check_iflag(&self) -> bool
Check the interrupt flag to see if the write has completed
Returns true
if the bus is idle
sourcefn raw_write(&mut self, byte: u8)
fn raw_write(&mut self, byte: u8)
Write a byte to the data register, which begins transmission automatically.
sourcefn raw_transaction(&mut self, byte: u8) -> u8
fn raw_transaction(&mut self, byte: u8) -> u8
Perform a transaction of a single byte