AD5384 DAC.
Fork of AD5384 by
Diff: AD5384.h
- Revision:
- 1:d2d6341d3e97
- Parent:
- 0:33bb5081488a
- Child:
- 3:0d930c475e72
--- a/AD5384.h Thu Oct 02 06:30:46 2014 +0000 +++ b/AD5384.h Sun Oct 05 17:10:03 2014 +0000 @@ -3,21 +3,24 @@ #include "solid_sctrl_def.h" #include "SWSPI.h" +#include "getVersion.h" -#define VERSION_AD5384_HDR "1.01" +#define VERSION_AD5384_HDR "1.12" /* * class to set and readback the AD5384 * to minimize the access to the device there is a shadow of the DAC, GAIN and OFFSET values - * V 0.1 inital development to see if reading / writing is possible + * v0.10 initial development to see if reading / writing is possible + * v1.10 initial release versioni + * v1.11 added init1 init2 */ class SWSPI; #include "mbed.h" //class DigitalOut; -class AD5384 { +class AD5384 : public getVersion { SWSPI *spi ; DigitalOut* cs; float vref; @@ -47,6 +50,10 @@ u32 soft_clr(); u32 soft_rst(); u32 clear_code(); + void init1(); + void init2(); + + };