Mercurial > hg > beaglert
diff include/I2c_Codec.h @ 142:d064234468cd
Added I2c methods to set R and P values for the PLL
author | Giulio Moro <giuliomoro@yahoo.it> |
---|---|
date | Mon, 14 Sep 2015 17:31:24 +0100 |
parents | 09a32ca96255 |
children | 8ff5668bbbad |
line wrap: on
line diff
--- a/include/I2c_Codec.h Thu Aug 27 03:39:11 2015 +0100 +++ b/include/I2c_Codec.h Mon Sep 14 17:31:24 2015 +0100 @@ -23,6 +23,9 @@ { short unsigned int pllJ; short unsigned int pllD; + short unsigned int pllP; + short unsigned int pllR; + short unsigned int anotherField; public: int writeRegister(unsigned int reg, unsigned int value); @@ -32,10 +35,14 @@ int setPllJ(short unsigned int j); int setPllD(unsigned int d); + int setPllP(short unsigned int p); + int setPllR(unsigned int r); int setPllK(float k); int setAudioSamplingRate(float newSamplingRate); short unsigned int getPllJ(); unsigned int getPllD(); + unsigned int getPllP(); + unsigned int getPllR(); float getPllK(); float getAudioSamplingRate(); int setDACVolume(int halfDbSteps);