Bela
Real-time, ultra-low-latency audio and sensor processing system for BeagleBone Black
 All Classes Files Functions Variables Typedefs 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 dummy_parameter=0)
 
int stopAudio ()
 
int setDACVolume (int halfDbSteps)
 
int dumpRegisters ()
 
int reset ()
 
bool masterIsDetected ()
 
bool slaveIsDetected ()
 
int setADCVolume (int halfDbSteps)
 
int setHPVolume (int halfDbSteps)
 
int setPga (float newGain, unsigned short int channel)
 
int disable ()
 

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