70 template <
class TCsDigitalIo, u
int8_t csPinNumber>
131 static Spi s_instance;
147 template <
class TCsDigitalIo, u
int8_t csPinNumber>
void transmit(uint8_t value)
Sends the byte value over SPI.
Definition: spi.h:116
uint8_t transceive(uint8_t value)
Sends the byte value and receives a byte over SPI.
Definition: spi.h:105
static Spi & instance()
Returns the Avr::Spi instance.
Definition: spi.h:79
void select()
Signals chip select to slave.
Definition: spi.h:87
void on()
Turns output pin on.
Definition: pin.h:160
A C++ wrapper for accessing the built-in SPI communication interface.
Definition: spi.h:71
uint8_t receive()
Receives a byte over SPI.
Definition: spi.h:125
Bit manipulation utilities.
Namespace containing all symbols of the AVR C++ utilities library.
Definition: adc.h:48
Output pin (normal mode).
Definition: pin.h:217
bool bitRead(T &value, uint8_t bit)
Returns the bit in the given value.
Definition: utils.h:92
void bitSet(T &value, uint8_t bit)
Sets the bit in the given value to 1.
Definition: utils.h:54
void deselect()
Signals chip deselect to slave.
Definition: spi.h:95
void off()
Turns output pin off.
Definition: pin.h:165
Wrapper for accessing digital I/O ports.