TAS5711AudioSink.h 536 B

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