AceSPI
0.2.0
Unified interface for selecting hardware or software SPI implementations on Arduino platforms
|
Software SPI using shiftOut(). More...
#include <SimpleSpiInterface.h>
Public Member Functions | |
SimpleSpiInterface (uint8_t latchPin, uint8_t dataPin, uint8_t clockPin) | |
Constructor. More... | |
void | begin () const |
Initialize the various pins. | |
void | end () const |
Reset the various pins. | |
void | send8 (uint8_t value) const |
Send 8 bits, including latching LOW and HIGH. | |
void | send16 (uint16_t value) const |
Send 16 bits, including latching LOW and HIGH. | |
void | send16 (uint8_t msb, uint8_t lsb) const |
Send 2 bytes as 16-bit stream, including latching LOW and HIGH. | |
SimpleSpiInterface (const SimpleSpiInterface &)=default | |
SimpleSpiInterface & | operator= (const SimpleSpiInterface &)=default |
Software SPI using shiftOut().
Definition at line 34 of file SimpleSpiInterface.h.
|
inlineexplicit |
Constructor.
latchPin | the latch pin (CS) |
dataPin | the data pin (MOSI) |
clockPin | the clock pin (CLK) |
Definition at line 43 of file SimpleSpiInterface.h.