AceSPI  0.4
Unified interface for selecting hardware or software SPI implementations on Arduino platforms
Public Member Functions | List of all members
ace_spi::SimpleSpiFastInterface< T_LATCH_PIN, T_DATA_PIN, T_CLOCK_PIN > Class Template Reference

Software SPI using pinModeFast(), digitalWriteFast() and shiftOutFast() from https://github.com/NicksonYap/digitalWriteFast. More...

#include <SimpleSpiFastInterface.h>

Public Member Functions

 SimpleSpiFastInterface ()=default
 Constructor.
 
void begin () const
 Initialize the various pins.
 
void end () const
 Reset the various pins.
 
void beginTransaction () const
 Begin SPI transaction. More...
 
void endTransaction () const
 End SPI transaction. More...
 
void transfer (uint8_t value) const
 Transfer 8 bits.
 
void transfer16 (uint16_t value) const
 Transfer 16 bits.
 
void send8 (uint8_t value) const
 Convenience method to send 8 bits a single transaction.
 
void send16 (uint16_t value) const
 Convenience method to send 16 bits a single transaction.
 
void send16 (uint8_t msb, uint8_t lsb) const
 Convenience method to send 16 bits a single transaction.
 
 SimpleSpiFastInterface (const SimpleSpiFastInterface &)=default
 
SimpleSpiFastInterfaceoperator= (const SimpleSpiFastInterface &)=default
 

Detailed Description

template<uint8_t T_LATCH_PIN, uint8_t T_DATA_PIN, uint8_t T_CLOCK_PIN>
class ace_spi::SimpleSpiFastInterface< T_LATCH_PIN, T_DATA_PIN, T_CLOCK_PIN >

Software SPI using pinModeFast(), digitalWriteFast() and shiftOutFast() from https://github.com/NicksonYap/digitalWriteFast.

Template Parameters
T_LATCH_PINthe latch pin (CS)
T_DATA_PINthe data pin (MOSI)
T_CLOCK_PINthe clock pin (CLK)

Definition at line 42 of file SimpleSpiFastInterface.h.

Member Function Documentation

◆ beginTransaction()

template<uint8_t T_LATCH_PIN, uint8_t T_DATA_PIN, uint8_t T_CLOCK_PIN>
void ace_spi::SimpleSpiFastInterface< T_LATCH_PIN, T_DATA_PIN, T_CLOCK_PIN >::beginTransaction ( ) const
inline

Begin SPI transaction.

Pull latch LOW.

Definition at line 62 of file SimpleSpiFastInterface.h.

◆ endTransaction()

template<uint8_t T_LATCH_PIN, uint8_t T_DATA_PIN, uint8_t T_CLOCK_PIN>
void ace_spi::SimpleSpiFastInterface< T_LATCH_PIN, T_DATA_PIN, T_CLOCK_PIN >::endTransaction ( ) const
inline

End SPI transaction.

Pull latch HIGH.

Definition at line 67 of file SimpleSpiFastInterface.h.


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