arduino-audio-driver
Loading...
Searching...
No Matches
InfoSPI Struct Reference

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

#include <IDriverDeviceInfo.h>

Inheritance diagram for InfoSPI:
SPIConfig

Public Member Functions

 InfoSPI ()
 InfoSPI (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

◆ InfoSPI() [1/2]

InfoSPI ( )
inline

◆ InfoSPI() [2/2]

InfoSPI ( 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: