Sam Grove / TLV320AIC1110
Revision:
3:4592d862ef88
Parent:
1:4d559df5733e
Parent:
2:e7c7c0177dd8
Child:
4:470f89e786f9
diff -r 4d559df5733e -r 4592d862ef88 TLV320AIC1110.h
--- a/TLV320AIC1110.h	Wed May 15 21:07:10 2013 +0000
+++ b/TLV320AIC1110.h	Wed May 15 21:12:22 2013 +0000
@@ -42,14 +42,18 @@
 private:
     I2C     *_i2c;
     
-    void writeRegister(const uint8_t reg, const uint8_t value);
-    uint8_t readRegister(const uint8_t reg);
+    enum TLV320AIC1110_REGISTERS
+    {
+        POWER_CONTROL = 0, MODE_CONTROL, TXPGA, RXPGA, HI_DTMF, LO_DTMF, AUX
+    };
 
 public:
     TLV320AIC1110(I2C &i2c);
     ~TLV320AIC1110();
-    void init(void);
-    void regDump(void);
+    void regDump(void) const ;
+    void init(void) const ;
+    void writeRegister(const TLV320AIC1110_REGISTERS reg, const uint8_t value) const ;
+    uint8_t readRegister(const uint8_t reg) const ;
 };