control for DAC AD5384 for the SOLID SM1 Slow Control
Diff: AD5384.h
- Revision:
- 1:d2d6341d3e97
- Parent:
- 0:33bb5081488a
- Child:
- 3:7ca85ed310e0
diff -r 33bb5081488a -r d2d6341d3e97 AD5384.h --- 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(); + + };