sw ADC SPI interface for the SOLID Slow control beta!!
Diff: SWSPI_BI.cpp
- Revision:
- 1:01459a6ab296
- Parent:
- 0:9efb460e962b
- Child:
- 2:1fb81137d906
diff -r 9efb460e962b -r 01459a6ab296 SWSPI_BI.cpp --- a/SWSPI_BI.cpp Tue Sep 23 08:25:23 2014 +0000 +++ b/SWSPI_BI.cpp Sun Oct 05 17:10:44 2014 +0000 @@ -29,6 +29,8 @@ #include "SWSPI_BI.h" #include "S_SCTRL_SM1_hwfunct.h" +#define SWSPI_BI_SRC_VER "1.50" + /** PARAM @misopin pointer to the input / output pin for the data communication @@ -37,7 +39,9 @@ @sclk_pin pointer to the output pin that act as the clock signal for the interface */ -SWSPI_BI::SWSPI_BI(DigitalInOut *msio_pin, DigitalOut *rdir_pin,DigitalOut *ldir_pin, DigitalOut *sclk_pin) { +SWSPI_BI::SWSPI_BI(DigitalInOut *msio_pin, DigitalOut *rdir_pin,DigitalOut *ldir_pin, DigitalOut *sclk_pin) + :getVersion( SWSPI_BI_HDR_VER , SWSPI_BI_SRC_VER , __TIME__, __DATE__) +{ msio = msio_pin; rdir = rdir_pin;