arduino-audio-driver
Public Member Functions | Public Attributes | List of all members
PinsSPI Struct Reference

SPI pins. More...

#include <DriverPins.h>

Public Member Functions

 PinsSPI ()=default
 
 PinsSPI (PinFunction function, GpioPin clk, GpioPin miso, GpioPin mosi, GpioPin cs, SPIClass &spi=SPI)
 
bool begin ()
 
void end ()
 
 operator bool ()
 
bool pinsAvailable ()
 

Public Attributes

GpioPin clk = -1
 
GpioPin cs = -1
 
PinFunction function
 
GpioPin miso = -1
 
GpioPin mosi = -1
 
SPIClass * p_spi = &SPI
 
bool set_active = true
 

Detailed Description

SPI pins.

Author
Phil Schatzmann

Constructor & Destructor Documentation

◆ PinsSPI() [1/2]

PinsSPI ( )
default

◆ PinsSPI() [2/2]

PinsSPI ( PinFunction  function,
GpioPin  clk,
GpioPin  miso,
GpioPin  mosi,
GpioPin  cs,
SPIClass &  spi = SPI 
)
inline

Member Function Documentation

◆ begin()

bool begin ( )
inline

◆ end()

void end ( )
inline

◆ operator bool()

operator bool ( )
inline

◆ pinsAvailable()

bool pinsAvailable ( )
inline

Member Data Documentation

◆ clk

GpioPin clk = -1

◆ cs

GpioPin cs = -1

◆ function

PinFunction function

◆ miso

GpioPin miso = -1

◆ mosi

GpioPin mosi = -1

◆ p_spi

SPIClass* p_spi = &SPI

◆ set_active

bool set_active = true

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