TAS5711AudioSink.h 536 B

12345678910111213141516171819202122232425262728
  1. #ifndef TAS5711AUDIOSINK_H
  2. #define TAS5711AUDIOSINK_H
  3. #include <driver/i2c.h>
  4. #include <stdio.h>
  5. #include <string.h>
  6. #include <sys/stat.h>
  7. #include <sys/unistd.h>
  8. #include <iostream>
  9. #include <vector>
  10. #include "BufferedAudioSink.h"
  11. #include "driver/i2s.h"
  12. #include "esp_err.h"
  13. #include "esp_log.h"
  14. class TAS5711AudioSink : public BufferedAudioSink {
  15. public:
  16. TAS5711AudioSink();
  17. ~TAS5711AudioSink();
  18. void writeReg(uint8_t reg, uint8_t value);
  19. private:
  20. i2c_config_t i2c_config;
  21. i2c_port_t i2c_port = I2C_NUM_0;
  22. };
  23. #endif