Type Alias SPI

Source
pub type SPI = Periph<RegisterBlock, 76>;
Expand description

Serial Peripheral Interface

Aliased Type§

struct SPI { /* private fields */ }

Trait Implementations§

Source§

impl SpiOps<Atmega, PB5, PB3, PB4, PB2> for SPI

Source§

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)

Disable the peripheral
Source§

fn raw_check_iflag(&self) -> bool

Check the interrupt flag to see if the write has completed Read more
Source§

fn raw_read(&self) -> u8

Read a byte from the data register
Source§

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

Perform a transaction of a single byte