Struct atmega_hal::pac::SPI
source · pub struct SPI { /* private fields */ }
Expand description
Serial Peripheral Interface
Implementations§
Trait Implementations§
source§impl SpiOps<Atmega, PB5, PB3, PB4, PB2> for SPI
impl SpiOps<Atmega, PB5, PB3, PB4, PB2> for SPI
source§fn 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
source§fn raw_release(&mut self)
fn raw_release(&mut self)
Disable the peripheral
source§fn raw_check_iflag(&self) -> bool
fn raw_check_iflag(&self) -> bool
Check the interrupt flag to see if the write has completed Read more
source§fn raw_write(&mut self, byte: u8)
fn raw_write(&mut self, byte: u8)
Write a byte to the data register, which begins transmission
automatically.
source§fn raw_transaction(&mut self, byte: u8) -> u8
fn raw_transaction(&mut self, byte: u8) -> u8
Perform a transaction of a single byte
impl Send for SPI
Auto Trait Implementations§
impl Freeze for SPI
impl RefUnwindSafe for SPI
impl !Sync for SPI
impl Unpin for SPI
impl UnwindSafe for SPI
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