#include "SPI.h"
Functions | |
void | spi0_init_master (void) |
Initializes spi0 as master. | |
uint8_t | spi0_master_rw8 (uint8_t to_slave) |
Writes and reads an 8-bit byte via SPI. | |
uint16_t | spi0_master_rw16 (uint16_t to_slave) |
Writes and reads a 16-bit word via SPI. | |
void | spi0_hard_init_master (void) |
Initializes the AVR hardware SPI for spi0. | |
uint8_t | spi0_hard_master_rw8 (uint8_t to_slave) |
Writes and reads an 8-bit byte via hardware SPI for spi0. | |
uint16_t | spi0_hard_master_rw16 (uint16_t to_slave) |
Writes and reads a 16-bit word via hardware SPI for spi0. |
void spi0_hard_init_master | ( | void | ) |
Initializes the AVR hardware SPI for spi0.
uint16_t spi0_hard_master_rw16 | ( | uint16_t | to_slave | ) |
Writes and reads a 16-bit word via hardware SPI for spi0.
to_slave | - 16-bit word to send to the slave device. |
uint8_t spi0_hard_master_rw8 | ( | uint8_t | to_slave | ) |
Writes and reads an 8-bit byte via hardware SPI for spi0.
to_slave | - 8-bit byte to send to the slave device. |
void spi0_init_master | ( | void | ) |
Initializes spi0 as master.
uint16_t spi0_master_rw16 | ( | uint16_t | to_slave | ) |
Writes and reads a 16-bit word via SPI.
uint8_t spi0_master_rw8 | ( | uint8_t | to_slave | ) |
Writes and reads an 8-bit byte via SPI.