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
Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
Es9080_Codec Class Reference
Inheritance diagram for Es9080_Codec:
I2c AudioCodec

Public Member Functions

 Es9080_Codec (int i2cBus, int i2cAddress, AudioCodecParams::ClockSource clockSource, int resetPin, double mclkFrequency, bool isVerbose)
 
int initCodec ()
 
int startAudio (int parameter)
 
int stopAudio ()
 
unsigned int getNumIns ()
 
unsigned int getNumOuts ()
 
float getSampleRate ()
 
int setInputGain (int channel, float newGain)
 
int setLineOutVolume (int channel, float gain)
 
int setHpVolume (int channel, float gain)
 
int disable ()
 
int reset ()
 
McaspConfiggetMcaspConfig ()
 
int writeRegister (unsigned int reg, unsigned int value)
 
int readRegister (unsigned char reg)
 
- Public Member Functions inherited from I2c
ssize_t readBytes (void *buf, size_t count)
 
ssize_t writeBytes (const void *buf, size_t count)
 
 I2c (I2c &&)=delete
 
int initI2C_RW (int bus, int address, int file)
 
int closeI2C ()
 
- Public Member Functions inherited from AudioCodec
virtual int setMode (std::string parameter)
 

Protected Member Functions

int executeProgram (const std::string &program)
 
int setAddressForReg (unsigned int reg, bool write)
 

Protected Attributes

std::array< float,
kNumOutChannels > 
lineOutVolume
 
AudioCodecParams params
 
McaspConfig mcaspConfig
 
bool running
 
bool verbose
 
int currentAddress = 0xFF
 
Gpio gpio
 
- Protected Attributes inherited from I2c
int i2C_bus
 
int i2C_address
 
int i2C_file
 

The documentation for this class was generated from the following file: