|
arduino-audio-driver
|
Pins for Lyrat 4.2 - use the PinsLyrat42 object! More...
#include <DriverPins.h>
Public Member Functions | |
| PinsLyrat42Class () | |
| bool | addI2C (PinFunction function, GpioPin scl, GpioPin sda, int port=-1, uint32_t frequency=100000, i2c_bus_handle_t wire=nullptr, bool active=true) |
| 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) |
| bool | addSPI (PinsSPI pin) |
| virtual bool | begin () |
| Sets up all pins e.g. by calling pinMode() | |
| void | end () |
| API_GPIO & | getGPIO () |
| audio_driver_local::Optional< PinsI2C > | getI2CPins (PinFunction function) override |
| Finds the I2C pin info with the help of the function. | |
| audio_driver_local::Optional< PinsI2S > | getI2SPins (int port) |
| Finds the I2S pin info with the help of the port. | |
| audio_driver_local::Optional< PinsI2S > | getI2SPins (PinFunction function=PinFunction::CODEC) |
| Finds the I2S pin info with the help of the function. | |
| audio_driver_local::Optional< PinsFunction > | getPin (GpioPin pinId) |
| Get pin information by pin ID. | |
| audio_driver_local::Optional< PinsFunction > | getPin (PinFunction function, int pos=0) |
| Get pin information by function. | |
| 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. | |
| bool | hasPins () |
| Returns true if some function pins have been defined. | |
| bool | isSDMMCActive () |
| Check if SDMMC has been activated. | |
| bool | isSPIActiveForSD () |
| Check if SPI for SD should be started automatically. | |
| bool | setI2C (PinsI2C pin) |
| Updates the I2C pin information using the function as key. | |
| bool | setI2S (PinsI2S pin) |
| Updates the I2S pin information using the function as key. | |
| bool | setPin (PinsFunction updatedPin) |
| Updates an existing pin information using the function and index as key. | |
| bool | setPinActive (int gpioPin, bool active) |
| Updates an existing pin active flag for the indicated gpio. | |
| bool | setPinActive (PinFunction func, int idx, bool active) |
| Updates an existing pin active flag for the indicated gpio. | |
| void | setSDMMCActive (bool active) |
| Defines if SPI for SD should be started (by default true) | |
| bool | setSPI (PinsSPI pin) |
| Updates the SPI pin information using the function as key. | |
| void | setSPIActiveForSD (bool active) |
| Defines if SPI for SD should be started (by default true) | |
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 | |
| GPIOExt | gpio |
| audio_driver_local::Vector< PinsI2C > | i2c {0} |
| audio_driver_local::Vector< PinsI2S > | i2s {0} |
| audio_driver_local::Vector< PinsFunction > | pins {0} |
| bool | sd_active = false |
| bool | sdmmc_active = false |
| audio_driver_local::Vector< PinsSPI > | spi {0} |
| int | touch_limit = 20 |
Pins for Lyrat 4.2 - use the PinsLyrat42 object!
|
inline |
|
inlineinherited |
|
inlineinherited |
|
inlineinherited |
|
inlineinherited |
|
inlineinherited |
Sets up all pins e.g. by calling pinMode()
Reimplemented in PinsESP32S3AISmartSpeakerClass.
|
inlineinherited |
|
inlineinherited |
|
inlineoverridevirtualinherited |
Finds the I2C pin info with the help of the function.
Implements IDriverPins.
|
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.
|
inlineinherited |
Returns true if some function pins have been defined.
|
inlineinherited |
Check if SDMMC has been activated.
|
inlineinherited |
Check if SPI for SD should be started automatically.
|
inlineprotectedinherited |
Updates the I2C pin information using the function as key.
Updates the I2S pin information using the function as key.
|
inlineinherited |
Updates an existing pin information using the function and index as key.
Updates an existing pin active flag for the indicated gpio.
|
inlineinherited |
Updates an existing pin active flag for the indicated gpio.
Defines if SPI for SD should be started (by default true)
Updates the SPI pin information using the function as key.
Defines if SPI for SD should be started (by default true)
|
inlineprotectedinherited |
|
protectedinherited |
|
protectedinherited |
|
protectedinherited |
|
protectedinherited |
|
protectedinherited |
|
protectedinherited |