![]() |
Linduino
1.3.0
Linear Technology Arduino-Compatible Demonstration Board
|
Copyright 2018(c) Analog Devices, Inc. More...
Copyright 2018(c) Analog Devices, Inc.
All rights reserved.
Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:
THIS SOFTWARE IS PROVIDED BY ANALOG DEVICES "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, NON-INFRINGEMENT, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL ANALOG DEVICES BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, INTELLECTUAL PROPERTY RIGHTS, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
Definition in file LTC24XX_general_test.ino.
Go to the source code of this file.
Functions | |
static void | set_CS_decoder (uint8_t CS_addr) |
static void | print_all (float *se_results, float *diff_results) |
Displays the the data in the arrays. More... | |
static void | test_LTC2400 (float vref, uint16_t eoc_timeout) |
Reads the LTC2400 and displays the results. More... | |
static void | test_LTC2412 (float vref, uint16_t eoc_timeout) |
Reads the LTC2412 and displays the results. More... | |
static void | test_LTC2418 (float vref, uint16_t eoc_timeout) |
Reads the LTC2418 and displays the results. More... | |
static void | test_LTC2420 (float vref, uint16_t eoc_timeout) |
Reads the LTC2420 and displays the results. More... | |
static void | test_LTC2436 (float vref, uint16_t eoc_timeout) |
Reads the LTC2436 and displays the results. More... | |
static void | test_LTC2439 (float vref, uint16_t eoc_timeout) |
Reads the LTC2439 and displays the results. More... | |
static void | test_LTC2449 (float vref, uint16_t eoc_timeout) |
Reads the LTC2449 and displays the results. More... | |
static void | test_LTC2494 (float vref, uint16_t eoc_timeout) |
Reads the LTC2494 and displays the results. More... | |
static void | test_LTC2495 (float vref, uint16_t eoc_timeout) |
Reads the LTC2495 and displays the results. More... | |
static void | test_LTC2496 (float vref, uint16_t eoc_timeout) |
Reads the LTC2496 and displays the results. More... | |
static void | test_LTC2497 (float vref, uint16_t eoc_timeout) |
Reads the LTC2497 and displays the results. More... | |
static void | test_LTC2498 (float vref, uint16_t eoc_timeout) |
Reads the LTC2498 and displays the results. More... | |
static void | test_LTC2499 (float vref, uint16_t eoc_timeout) |
Reads the LTC2499 and displays the results. More... | |
static void | test_all (float vref, uint16_t eoc_timeout) |
Sets the LTC6998, reads all the ADCs, and displays the results. More... | |
static void | setup () |
Initialize Linduino. More... | |
static void | loop () |
Repeats Linduino loop. More... | |
Macros | |
#define | CS QUIKEVAL_CS |
The chip select. More... | |
#define | LTC2668_CS_ADDR 0 |
Decoder address for the LTC2668 chip select. More... | |
#define | LTC2439_CS_ADDR 1 |
Decoder address for the LTC2439 chip select. More... | |
#define | LTC2418_CS_ADDR 2 |
Decoder address for the LTC2418 chip select. More... | |
#define | LTC2449_CS_ADDR 3 |
Decoder address for the LTC2449 chip select. More... | |
#define | LTC2494_CS_ADDR 4 |
Decoder address for the LTC2494 chip select. More... | |
#define | LTC2498_CS_ADDR 5 |
Decoder address for the LTC2498 chip select. More... | |
#define | LTC2496_CS_ADDR 6 |
Decoder address for the LTC2496 chip select. More... | |
#define | LTC2412_CS_ADDR 7 |
Decoder address for the LTC2412 chip select. More... | |
#define | LTC2436_CS_ADDR 8 |
Decoder address for the LTC2436 chip select. More... | |
#define | LTC2400_CS_ADDR 9 |
Decoder address for the LTC2400 chip select. More... | |
#define | LTC2420_CS_ADDR 10 |
Decoder address for the LTC2420 chip select. More... | |
#define | TEST_LTC2439 |
#define | TEST_LTC2418 |
#define | TEST_LTC2449 |
#define | TEST_LTC2494 |
#define | TEST_LTC2496 |
#define | TEST_LTC2498 |
#define | TEST_LTC2495 |
#define | TEST_LTC2497 |
#define | TEST_LTC2499 |
#define | TEST_LTC2436 |
#define | TEST_LTC2412 |
#define | TEST_LTC2400 |
#define | TEST_LTC2420 |
I2C Addresses | |
#define | LTC2495_ADDR 0b0010100 |
#define | LTC2497_ADDR 0b0100110 |
#define | LTC2499_ADDR 0b1010110 |
Variables | |
const uint8_t | SINGLE_ENDED_CONFIG_ARRAY [16] |
Lookup table to build the command for single-ended mode. More... | |
const uint8_t | DIFF_CONFIG_ARRAY [16] |
Lookup table to build the command for differential mode. More... | |
const uint8_t | OSR_CONFIG_ARRAY [16] |
Lookup table to build the OSR command. More... | |
char | demo_name [] = "DCXXXX" |
Demo Board Name stored in QuikEval EEPROM. More... | |
|
static |
Repeats Linduino loop.
Definition at line 169 of file LTC24XX_general_test.ino.
|
static |
Displays the the data in the arrays.
Definition at line 233 of file LTC24XX_general_test.ino.
|
static |
Definition at line 262 of file LTC24XX_general_test.ino.
|
static |
Initialize Linduino.
Definition at line 148 of file LTC24XX_general_test.ino.
|
static |
Sets the LTC6998, reads all the ADCs, and displays the results.
Definition at line 751 of file LTC24XX_general_test.ino.
|
static |
Reads the LTC2400 and displays the results.
Definition at line 299 of file LTC24XX_general_test.ino.
|
static |
Reads the LTC2412 and displays the results.
Definition at line 326 of file LTC24XX_general_test.ino.
|
static |
Reads the LTC2418 and displays the results.
Definition at line 359 of file LTC24XX_general_test.ino.
|
static |
Reads the LTC2420 and displays the results.
Definition at line 397 of file LTC24XX_general_test.ino.
|
static |
Reads the LTC2436 and displays the results.
Definition at line 424 of file LTC24XX_general_test.ino.
|
static |
Reads the LTC2439 and displays the results.
Definition at line 457 of file LTC24XX_general_test.ino.
|
static |
Reads the LTC2449 and displays the results.
Definition at line 495 of file LTC24XX_general_test.ino.
|
static |
Reads the LTC2494 and displays the results.
Definition at line 533 of file LTC24XX_general_test.ino.
|
static |
Reads the LTC2495 and displays the results.
Definition at line 571 of file LTC24XX_general_test.ino.
|
static |
Reads the LTC2496 and displays the results.
Definition at line 606 of file LTC24XX_general_test.ino.
|
static |
Reads the LTC2497 and displays the results.
Definition at line 644 of file LTC24XX_general_test.ino.
|
static |
Reads the LTC2498 and displays the results.
Definition at line 680 of file LTC24XX_general_test.ino.
|
static |
Reads the LTC2499 and displays the results.
Definition at line 715 of file LTC24XX_general_test.ino.
#define CS QUIKEVAL_CS |
The chip select.
Definition at line 61 of file LTC24XX_general_test.ino.
#define LTC2400_CS_ADDR 9 |
Decoder address for the LTC2400 chip select.
Definition at line 72 of file LTC24XX_general_test.ino.
#define LTC2412_CS_ADDR 7 |
Decoder address for the LTC2412 chip select.
Definition at line 70 of file LTC24XX_general_test.ino.
#define LTC2418_CS_ADDR 2 |
Decoder address for the LTC2418 chip select.
Definition at line 65 of file LTC24XX_general_test.ino.
#define LTC2420_CS_ADDR 10 |
Decoder address for the LTC2420 chip select.
Definition at line 73 of file LTC24XX_general_test.ino.
#define LTC2436_CS_ADDR 8 |
Decoder address for the LTC2436 chip select.
Definition at line 71 of file LTC24XX_general_test.ino.
#define LTC2439_CS_ADDR 1 |
Decoder address for the LTC2439 chip select.
Definition at line 64 of file LTC24XX_general_test.ino.
#define LTC2449_CS_ADDR 3 |
Decoder address for the LTC2449 chip select.
Definition at line 66 of file LTC24XX_general_test.ino.
#define LTC2494_CS_ADDR 4 |
Decoder address for the LTC2494 chip select.
Definition at line 67 of file LTC24XX_general_test.ino.
#define LTC2495_ADDR 0b0010100 |
Definition at line 78 of file LTC24XX_general_test.ino.
#define LTC2496_CS_ADDR 6 |
Decoder address for the LTC2496 chip select.
Definition at line 69 of file LTC24XX_general_test.ino.
#define LTC2497_ADDR 0b0100110 |
Definition at line 79 of file LTC24XX_general_test.ino.
#define LTC2498_CS_ADDR 5 |
Decoder address for the LTC2498 chip select.
Definition at line 68 of file LTC24XX_general_test.ino.
#define LTC2499_ADDR 0b1010110 |
Definition at line 80 of file LTC24XX_general_test.ino.
#define LTC2668_CS_ADDR 0 |
Decoder address for the LTC2668 chip select.
Definition at line 63 of file LTC24XX_general_test.ino.
#define TEST_LTC2400 |
Definition at line 97 of file LTC24XX_general_test.ino.
#define TEST_LTC2412 |
Definition at line 95 of file LTC24XX_general_test.ino.
#define TEST_LTC2418 |
Definition at line 84 of file LTC24XX_general_test.ino.
#define TEST_LTC2420 |
Definition at line 98 of file LTC24XX_general_test.ino.
#define TEST_LTC2436 |
Definition at line 94 of file LTC24XX_general_test.ino.
#define TEST_LTC2439 |
Definition at line 83 of file LTC24XX_general_test.ino.
#define TEST_LTC2449 |
Definition at line 85 of file LTC24XX_general_test.ino.
#define TEST_LTC2494 |
Definition at line 86 of file LTC24XX_general_test.ino.
#define TEST_LTC2495 |
Definition at line 90 of file LTC24XX_general_test.ino.
#define TEST_LTC2496 |
Definition at line 87 of file LTC24XX_general_test.ino.
#define TEST_LTC2497 |
Definition at line 91 of file LTC24XX_general_test.ino.
#define TEST_LTC2498 |
Definition at line 88 of file LTC24XX_general_test.ino.
#define TEST_LTC2499 |
Definition at line 92 of file LTC24XX_general_test.ino.
char demo_name[] = "DCXXXX" |
Demo Board Name stored in QuikEval EEPROM.
Definition at line 145 of file LTC24XX_general_test.ino.
const uint8_t DIFF_CONFIG_ARRAY[16] |
Lookup table to build the command for differential mode.
Build the command for differential mode
Definition at line 111 of file LTC24XX_general_test.ino.
const uint8_t OSR_CONFIG_ARRAY[16] |
Lookup table to build the OSR command.
Build the command for different OSR modes
Definition at line 119 of file LTC24XX_general_test.ino.
const uint8_t SINGLE_ENDED_CONFIG_ARRAY[16] |
Lookup table to build the command for single-ended mode.
Builds the command for single-ended mode
Definition at line 104 of file LTC24XX_general_test.ino.