some handy dandy functions and constants for interfacing with ADS1198 from texas semiconductor corp
Diff: ADSlib.cpp
- Revision:
- 0:48e2ec1af2d9
- Child:
- 1:e81126a7a3e7
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/ADSlib.cpp Thu Apr 02 13:12:59 2015 +0000 @@ -0,0 +1,51 @@ +#include "ADSlib/ADSlib.h" + +unsigned char ADS_Default_Register_Settings [22] = +{ + 0x06, // Config1 + 0x20, // Config2 + 0xC0, // Config3 + 0x00, // loff + 0x00, // ch1set + 0x00, // ch2set + 0x00, // ch3set + 0x00, // ch4set + 0x00, // ch5set + 0x00, // ch6set + 0x00, // ch7set + 0x00, // ch8set + 0x00, // rld_sensp + 0x00, // rld_sensm + 0x00, // loff_sensp + 0x00, // loff_sensm + 0x00, // loff_flip + 0x00, // gpio + 0x00, // pace + 0x00, // reserved + 0x00, // config4 + 0x00, // wct1 + 0x00, // wct2 +}; +/**************************************************************************/ + +unsigned char ADS_Default_Channel_Settings [8] = +{ + 0x00, // ch1set + 0x00, // ch2set + 0x00, // ch3set + 0x00, // ch4set + 0x00, // ch5set + 0x00, // ch6set + 0x00, // ch7set + 0x00, // ch8set + +}; +/**************************************************************************/ + +unsigned cgar ADS_Alternative_WCT_Settings [2] = +{ + 0x00, // wct1 + 0x00, // wct2 + +}; +/**************************************************************************/ \ No newline at end of file