Struct atmega_hal::pac::SPI
source · pub struct SPI { /* private fields */ }Expand description
Serial Peripheral Interface
Implementations§
source§impl SPI
impl SPI
sourcepub const PTR: *const RegisterBlock = {0x4c as *const avr_device::atmega2560::spi::RegisterBlock}
pub const PTR: *const RegisterBlock = {0x4c as *const avr_device::atmega2560::spi::RegisterBlock}
Pointer to the register block
sourcepub const fn ptr() -> *const RegisterBlock
pub const fn ptr() -> *const RegisterBlock
Return the pointer to the register block
Trait Implementations§
source§impl SpiOps<Atmega, PB1, PB2, PB3, PB0> for SPI
impl SpiOps<Atmega, PB1, PB2, PB3, PB0> 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