arduino-audio-driver
|
Pins for Lyrat Mini - use the PinsLyratMini object! More...
#include <DriverPins.h>
Public Member Functions | |
PinsLyratMiniClass () | |
bool | addI2C (PinFunction function, GpioPin scl, GpioPin sda, int port=-1, uint32_t frequency=100000, TwoWire &wire=Wire) |
bool | addI2C (PinsI2C pin) |
bool | addI2S (PinFunction function, GpioPin mclk, GpioPin bck, GpioPin ws, GpioPin data_out, GpioPin data_in=-1, int port=0) |
bool | addI2S (PinsI2S pin) |
bool | addPin (PinFunction function, GpioPin pinNo, PinLogic logic, int index=0) |
bool | addPin (PinsFunction pin) |
bool | addSPI (PinFunction function, GpioPin clk, GpioPin miso, GpioPin mosi, GpioPin cs, SPIClass &spi=SPI) |
bool | addSPI (PinsSPI pin) |
virtual bool | begin () |
Sets up all pins e.g. by calling pinMode() More... | |
void | end () |
audio_driver_local::Optional< PinsI2C > | getI2CPins (PinFunction function) |
Finds the I2C pin info with the help of the function. More... | |
audio_driver_local::Optional< PinsI2S > | getI2SPins (int port) |
Finds the I2S pin info with the help of the port. More... | |
audio_driver_local::Optional< PinsI2S > | getI2SPins (PinFunction function=PinFunction::CODEC) |
Finds the I2S pin info with the help of the function. More... | |
audio_driver_local::Optional< PinsFunction > | getPin (GpioPin pinId) |
Get pin information by pin ID. More... | |
audio_driver_local::Optional< PinsFunction > | getPin (PinFunction function, int pos=0) |
Get pin information by function. More... | |
GpioPin | getPinID (PinFunction function, int pos=0) |
audio_driver_local::Optional< PinsSPI > | getSPIPins (PinFunction function) |
Finds the SPI pin info with the help of the function. More... | |
bool | hasPins () |
Returns true if some function pins have been defined. More... | |
bool | isSPIActiveForSD () |
Check if SPI for SD should be started automatically. More... | |
bool | setI2C (PinsI2C pin) |
Updates the I2C pin information using the function as key. More... | |
bool | setI2S (PinsI2S pin) |
Updates the I2S pin information using the function as key. More... | |
bool | setSPI (PinsSPI pin) |
Updates the SPI pin information using the function as key. More... | |
void | setSPIActiveForSD (bool active) |
Defines if SPI for SD should be started (by default true) More... | |
Protected Member Functions | |
template<typename T > | |
T * | getPtr (PinFunction function, audio_driver_local::Vector< T > &vect) |
bool | hasConflict (int pin) |
bool | hasI2CConflict (int pin) |
bool | hasSPIConflict (int pin) |
template<typename T > | |
bool | set (T pin, audio_driver_local::Vector< T > &vect) |
void | setupPinMode () |
Protected Attributes | |
audio_driver_local::Vector< PinsI2C > | i2c {0} |
audio_driver_local::Vector< PinsI2S > | i2s {0} |
audio_driver_local::Vector< PinsFunction > | pins {0} |
bool | sd_active = true |
audio_driver_local::Vector< PinsSPI > | spi {0} |
Pins for Lyrat Mini - use the PinsLyratMini object!
|
inline |
|
inlineinherited |
|
inlineinherited |
|
inlineinherited |
|
inlineinherited |
|
inlineinherited |
|
inlineinherited |
|
inlineinherited |
|
inlineinherited |
|
inlinevirtualinherited |
Sets up all pins e.g. by calling pinMode()
|
inlineinherited |
|
inlineinherited |
Finds the I2C pin info with the help of the function.
|
inlineinherited |
Finds the I2S pin info with the help of the port.
|
inlineinherited |
Finds the I2S pin info with the help of the function.
|
inlineinherited |
Get pin information by pin ID.
|
inlineinherited |
Get pin information by function.
|
inlineinherited |
|
inlineprotectedinherited |
|
inlineinherited |
Finds the SPI pin info with the help of the function.
|
inlineprotectedinherited |
|
inlineprotectedinherited |
|
inlineinherited |
Returns true if some function pins have been defined.
|
inlineprotectedinherited |
|
inlineinherited |
Check if SPI for SD should be started automatically.
|
inlineprotectedinherited |
|
inlineinherited |
Updates the I2C pin information using the function as key.
|
inlineinherited |
Updates the I2S pin information using the function as key.
|
inlineinherited |
Updates the SPI pin information using the function as key.
|
inlineinherited |
Defines if SPI for SD should be started (by default true)
|
inlineprotectedinherited |
|
protectedinherited |
|
protectedinherited |
|
protectedinherited |
|
protectedinherited |
|
protectedinherited |