AVR library
spi.h
1 #ifndef MAT_SPI_H
2 #define MAT_SPI_H
3 
4 #include <inttypes.h>
5 #include <avr/io.h>
6 
7 // init SPI
8 void spi_init(uint8_t fdiv);
9 
10 // send a byte over SPI
11 uint8_t spi_rw(uint8_t d);
12 
13 #endif
uint8_t spi_rw(uint8_t d)
Send and receive byte (NSS not controlled)
Definition: spi.c:70
void spi_init(uint8_t fdiv)
Initialize SPI interface.
Definition: spi.c:47