Mercurial > hg > beaglert
comparison 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 |
comparison
equal
deleted
inserted
replaced
134:09a32ca96255 | 142:d064234468cd |
---|---|
21 | 21 |
22 class I2c_Codec : public I2c | 22 class I2c_Codec : public I2c |
23 { | 23 { |
24 short unsigned int pllJ; | 24 short unsigned int pllJ; |
25 short unsigned int pllD; | 25 short unsigned int pllD; |
26 short unsigned int pllP; | |
27 short unsigned int pllR; | |
28 short unsigned int anotherField; | |
26 public: | 29 public: |
27 int writeRegister(unsigned int reg, unsigned int value); | 30 int writeRegister(unsigned int reg, unsigned int value); |
28 | 31 |
29 int initCodec(); | 32 int initCodec(); |
30 int startAudio(int dual_rate); | 33 int startAudio(int dual_rate); |
31 int stopAudio(); | 34 int stopAudio(); |
32 | 35 |
33 int setPllJ(short unsigned int j); | 36 int setPllJ(short unsigned int j); |
34 int setPllD(unsigned int d); | 37 int setPllD(unsigned int d); |
38 int setPllP(short unsigned int p); | |
39 int setPllR(unsigned int r); | |
35 int setPllK(float k); | 40 int setPllK(float k); |
36 int setAudioSamplingRate(float newSamplingRate); | 41 int setAudioSamplingRate(float newSamplingRate); |
37 short unsigned int getPllJ(); | 42 short unsigned int getPllJ(); |
38 unsigned int getPllD(); | 43 unsigned int getPllD(); |
44 unsigned int getPllP(); | |
45 unsigned int getPllR(); | |
39 float getPllK(); | 46 float getPllK(); |
40 float getAudioSamplingRate(); | 47 float getAudioSamplingRate(); |
41 int setDACVolume(int halfDbSteps); | 48 int setDACVolume(int halfDbSteps); |
42 int writeDACVolumeRegisters(bool mute); | 49 int writeDACVolumeRegisters(bool mute); |
43 int setADCVolume(int halfDbSteps); | 50 int setADCVolume(int halfDbSteps); |