arduino-audio-driver
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Modules Pages
Public Member Functions | Public Attributes | List of all members
PinsSPI Struct Reference

SPI pins: In Arduino we initialize the SPI, on other platform we just provide the pin information. More...

#include <DriverPins.h>

Inheritance diagram for PinsSPI:
SPIConfig

Public Member Functions

 PinsSPI ()
 
 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
 
GpioPin cs
 
PinFunction function
 
GpioPin miso
 
GpioPin mosi
 
spi_bus_handle_t p_spi
 
bool set_active = true
 

Detailed Description

SPI pins: In Arduino we initialize the SPI, on other platform we just provide the pin information.

Author
Phil Schatzmann

Constructor & Destructor Documentation

◆ PinsSPI() [1/2]

PinsSPI ( )
inline

◆ 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
inherited

◆ cs

GpioPin cs
inherited

◆ function

PinFunction function

◆ miso

GpioPin miso
inherited

◆ mosi

GpioPin mosi
inherited

◆ p_spi

spi_bus_handle_t p_spi
inherited

◆ set_active

bool set_active = true

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