diff include/I2c_Codec.h @ 132:e24c531220ee scope-refactoring

Added some sort of synchronization, not working great though
author Giulio Moro <giuliomoro@yahoo.it>
date Thu, 27 Aug 2015 01:42:04 +0100
parents ef9392d077a4
children d064234468cd
line wrap: on
line diff
--- a/include/I2c_Codec.h	Wed Aug 26 02:02:10 2015 +0100
+++ b/include/I2c_Codec.h	Thu Aug 27 01:42:04 2015 +0100
@@ -21,6 +21,8 @@
 
 class I2c_Codec : public I2c
 {
+	short unsigned int pllJ;
+	short unsigned int pllD;
 public:
 	int writeRegister(unsigned int reg, unsigned int value);
 
@@ -31,6 +33,11 @@
 	int setPllJ(short unsigned int j);
 	int setPllD(unsigned int d);
 	int setPllK(float k);
+	int setAudioSamplingRate(float newSamplingRate);
+	short unsigned int getPllJ();
+	unsigned int getPllD();
+	float getPllK();
+	float getAudioSamplingRate();
 	int setDACVolume(int halfDbSteps);
 	int writeDACVolumeRegisters(bool mute);
 	int setADCVolume(int halfDbSteps);