Struct atmega_hal::pac::SPI
source · [−]pub struct SPI { /* private fields */ }
Expand description
Serial Peripheral Interface
Implementations
sourceimpl SPI
impl SPI
sourcepub const PTR: *const RegisterBlock = {0x4c as *const avr_device::atmega328p::spi::RegisterBlock}
pub const PTR: *const RegisterBlock = {0x4c as *const avr_device::atmega328p::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
sourceimpl SpiOps<Atmega, PB5, PB3, PB4, PB2> for SPI
impl SpiOps<Atmega, PB5, PB3, PB4, PB2> for SPI
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
impl Send for SPI
Auto Trait Implementations
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more