Creates DAC interface

Fork of DevInterfaces by wimbeaumont Project

Revision:
0:da1fb7dd363f
Child:
1:5672673314f9
diff -r 000000000000 -r da1fb7dd363f DACInterface.h
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/DACInterface.h	Fri Oct 23 19:34:53 2015 +0000
@@ -0,0 +1,22 @@
+#ifndef __DACINTERFACE__
+#define __DACINTERFACE__
+
+
+#define VERSION_DACINTERFACE_HDR "0.30"
+#include "getVersion.h"
+
+class DACInterface: public virtual getVersion{
+private: 
+
+
+public : 
+    DACInterface():getVersion( VERSION_DACINTERFACE_HDR ,VERSION_DACINTERFACE_HDR , __TIME__, __DATE__){};   //Create an I2C Master interface
+    
+virtual int     setDACvalue(int dacvalue, int ch=0){   return 0;};
+virtual int     getDACvalue (int& dacvalue , int ch=0){return 0;};
+virtual int     setVoltage (float voltage, int ch=0){    return 0;};// Write to an I2C slave.
+virtual int     getVoltage(float &voltage, int ch=0){return 0;};//  Write single byte out on the I2C bus.
+    
+}; 
+
+#endif