Class for AD7390, a 12 bit SPI driven external DAC from Analog Devices.

Dependencies:   mbed

Datasheet - http://www.analog.com/static/imported-files/data_sheets/AD7390_7391.pdf

Revision:
1:19818c103c9c
Parent:
0:82cd70f9fc3f
Child:
3:37ec9ea72264
--- a/AD7390.h	Sat Apr 05 19:08:44 2014 +0000
+++ b/AD7390.h	Sat Apr 05 20:45:08 2014 +0000
@@ -5,10 +5,13 @@
 
 class AD7390    {           //Create an AD7390 instance
     public:
-        AD7390(PinName data, PinName clock, PinName resetpin, PinName latchpin, float RefV);
+        AD7390(PinName data, PinName clock, PinName resetpin, PinName latchpin, float RefV, unsigned int feq);    //RefV set up for user reference voltage
         void Reset();
         void Latch();
-        int RefV;
+        void Write(float Volts);
+        void WriteL(float volts);
+        float RefV;
+        unsigned int freq;
     private:
         DigitalOut reset, latch;
         SPI spi;