Bela
Real-time, ultra-low-latency audio and sensor processing system for BeagleBone Black
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups
Tlv320_Es9080_Codec.h
1 #pragma once
2 
3 #include <vector>
4 #include <memory>
5 #include "../include/I2c_Codec.h"
6 #include "../include/Es9080_Codec.h"
7 
9 {
10 public:
11  int initCodec();
12  int startAudio(int shouldBeReady);
13  int stopAudio();
14  unsigned int getNumIns();
15  unsigned int getNumOuts();
16  float getSampleRate();
17 
18  int setInputGain(int channel, float newGain);
19  int setLineOutVolume(int channel, float gain);
20  int setHpVolume(int channel, float gain);
21  int disable();
22  int reset();
23  int setMode(std::string parameter);
24 
25  McaspConfig& getMcaspConfig();
26 
27  Tlv320_Es9080_Codec(int tlvI2cBus, int tlvI2cAddr, I2c_Codec::CodecType tlvType, int esI2cBus, int esI2cAddr, int esResetPin, bool verbose);
29 
30 protected:
31  McaspConfig mcaspConfig;
32  bool running;
33  bool verbose;
34  AudioCodec* primaryCodec;
35  AudioCodec* secondaryCodec;
36  I2c_Codec* tlv320;
37  Es9080_Codec* es9080;
38 };
Definition: AudioCodec.h:29
Definition: Es9080_Codec.h:8
Definition: Mcasp.h:32
Definition: I2c_Codec.h:21
Definition: Tlv320_Es9080_Codec.h:8