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 Types | Public Member Functions | List of all members
Spi_Codec Class Reference
Inheritance diagram for Spi_Codec:
AudioCodec

Public Types

enum  CODEC_TYPE { MASTER_CODEC, SLAVE_CODEC }
 

Public Member Functions

 Spi_Codec (const char *spidev_gpio_cs0, const char *spidev_gpio_cs1, bool isVerbose=false)
 
int writeRegister (unsigned char reg, unsigned char value, CODEC_TYPE codec=MASTER_CODEC)
 
unsigned char readRegister (unsigned char reg, CODEC_TYPE codec=MASTER_CODEC)
 
int initCodec ()
 
int startAudio (int shouldBeReady)
 
int stopAudio ()
 
unsigned int getNumIns ()
 
unsigned int getNumOuts ()
 
float getSampleRate ()
 
int dumpRegisters ()
 
int reset ()
 
bool masterIsDetected ()
 
bool slaveIsDetected ()
 
int setLineOutVolume (int channel, float gain)
 
int setHpVolume (int channel, float gain)
 
int setInputGain (int channel, float newGain)
 
int disable ()
 
McaspConfiggetMcaspConfig ()
 
- Public Member Functions inherited from AudioCodec
virtual int setMode (std::string parameter)
 

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