AceSPI  0.2.0
Unified interface for selecting hardware or software SPI implementations on Arduino platforms
Public Member Functions | List of all members
ace_spi::SimpleSpiInterface Class Reference

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
 
SimpleSpiInterfaceoperator= (const SimpleSpiInterface &)=default
 

Detailed Description

Software SPI using shiftOut().

Definition at line 34 of file SimpleSpiInterface.h.

Constructor & Destructor Documentation

◆ SimpleSpiInterface()

ace_spi::SimpleSpiInterface::SimpleSpiInterface ( uint8_t  latchPin,
uint8_t  dataPin,
uint8_t  clockPin 
)
inlineexplicit

Constructor.

Parameters
latchPinthe latch pin (CS)
dataPinthe data pin (MOSI)
clockPinthe clock pin (CLK)

Definition at line 43 of file SimpleSpiInterface.h.


The documentation for this class was generated from the following file: