sw ADC SPI interface for the SOLID Slow control beta!!
Diff: AD9249.h
- Revision:
- 1:01459a6ab296
- Parent:
- 0:9efb460e962b
- Child:
- 2:1fb81137d906
diff -r 9efb460e962b -r 01459a6ab296 AD9249.h --- a/AD9249.h Tue Sep 23 08:25:23 2014 +0000 +++ b/AD9249.h Sun Oct 05 17:10:44 2014 +0000 @@ -10,10 +10,14 @@ (C) Universiteit Antwerpen 27 August 2014 */ + +#define AD9249_HDR_VER "1.22" +#include "getVersion.h" + class SWSPI_BI; //class DigitalIn; -class AD9249 { +class AD9249: public getVersion { typedef unsigned char u8; typedef unsigned int u32; typedef unsigned short u16; @@ -62,7 +66,9 @@ bool setReg16( u16 regaddr, u16 data); bool setReg8 ( u16 regaddr, u8 data); bool readReg16( u16 regaddr, u16& data); - bool readReg8 ( u16 regaddr, u8& data); + bool readReg8 ( u16 regaddr, u8& data); + void init1(); + void init2(); };