some handy dandy functions and constants for interfacing with ADS1198 from texas semiconductor corp
ADSlib.cpp@0:48e2ec1af2d9, 2015-04-02 (annotated)
- Committer:
- joelbandi
- Date:
- Thu Apr 02 13:12:59 2015 +0000
- Revision:
- 0:48e2ec1af2d9
- Child:
- 1:e81126a7a3e7
added more convenient ads setting templates
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
joelbandi | 0:48e2ec1af2d9 | 1 | #include "ADSlib/ADSlib.h" |
joelbandi | 0:48e2ec1af2d9 | 2 | |
joelbandi | 0:48e2ec1af2d9 | 3 | unsigned char ADS_Default_Register_Settings [22] = |
joelbandi | 0:48e2ec1af2d9 | 4 | { |
joelbandi | 0:48e2ec1af2d9 | 5 | 0x06, // Config1 |
joelbandi | 0:48e2ec1af2d9 | 6 | 0x20, // Config2 |
joelbandi | 0:48e2ec1af2d9 | 7 | 0xC0, // Config3 |
joelbandi | 0:48e2ec1af2d9 | 8 | 0x00, // loff |
joelbandi | 0:48e2ec1af2d9 | 9 | 0x00, // ch1set |
joelbandi | 0:48e2ec1af2d9 | 10 | 0x00, // ch2set |
joelbandi | 0:48e2ec1af2d9 | 11 | 0x00, // ch3set |
joelbandi | 0:48e2ec1af2d9 | 12 | 0x00, // ch4set |
joelbandi | 0:48e2ec1af2d9 | 13 | 0x00, // ch5set |
joelbandi | 0:48e2ec1af2d9 | 14 | 0x00, // ch6set |
joelbandi | 0:48e2ec1af2d9 | 15 | 0x00, // ch7set |
joelbandi | 0:48e2ec1af2d9 | 16 | 0x00, // ch8set |
joelbandi | 0:48e2ec1af2d9 | 17 | 0x00, // rld_sensp |
joelbandi | 0:48e2ec1af2d9 | 18 | 0x00, // rld_sensm |
joelbandi | 0:48e2ec1af2d9 | 19 | 0x00, // loff_sensp |
joelbandi | 0:48e2ec1af2d9 | 20 | 0x00, // loff_sensm |
joelbandi | 0:48e2ec1af2d9 | 21 | 0x00, // loff_flip |
joelbandi | 0:48e2ec1af2d9 | 22 | 0x00, // gpio |
joelbandi | 0:48e2ec1af2d9 | 23 | 0x00, // pace |
joelbandi | 0:48e2ec1af2d9 | 24 | 0x00, // reserved |
joelbandi | 0:48e2ec1af2d9 | 25 | 0x00, // config4 |
joelbandi | 0:48e2ec1af2d9 | 26 | 0x00, // wct1 |
joelbandi | 0:48e2ec1af2d9 | 27 | 0x00, // wct2 |
joelbandi | 0:48e2ec1af2d9 | 28 | }; |
joelbandi | 0:48e2ec1af2d9 | 29 | /**************************************************************************/ |
joelbandi | 0:48e2ec1af2d9 | 30 | |
joelbandi | 0:48e2ec1af2d9 | 31 | unsigned char ADS_Default_Channel_Settings [8] = |
joelbandi | 0:48e2ec1af2d9 | 32 | { |
joelbandi | 0:48e2ec1af2d9 | 33 | 0x00, // ch1set |
joelbandi | 0:48e2ec1af2d9 | 34 | 0x00, // ch2set |
joelbandi | 0:48e2ec1af2d9 | 35 | 0x00, // ch3set |
joelbandi | 0:48e2ec1af2d9 | 36 | 0x00, // ch4set |
joelbandi | 0:48e2ec1af2d9 | 37 | 0x00, // ch5set |
joelbandi | 0:48e2ec1af2d9 | 38 | 0x00, // ch6set |
joelbandi | 0:48e2ec1af2d9 | 39 | 0x00, // ch7set |
joelbandi | 0:48e2ec1af2d9 | 40 | 0x00, // ch8set |
joelbandi | 0:48e2ec1af2d9 | 41 | |
joelbandi | 0:48e2ec1af2d9 | 42 | }; |
joelbandi | 0:48e2ec1af2d9 | 43 | /**************************************************************************/ |
joelbandi | 0:48e2ec1af2d9 | 44 | |
joelbandi | 0:48e2ec1af2d9 | 45 | unsigned cgar ADS_Alternative_WCT_Settings [2] = |
joelbandi | 0:48e2ec1af2d9 | 46 | { |
joelbandi | 0:48e2ec1af2d9 | 47 | 0x00, // wct1 |
joelbandi | 0:48e2ec1af2d9 | 48 | 0x00, // wct2 |
joelbandi | 0:48e2ec1af2d9 | 49 | |
joelbandi | 0:48e2ec1af2d9 | 50 | }; |
joelbandi | 0:48e2ec1af2d9 | 51 | /**************************************************************************/ |