|
STAR
Cal STAR — firmware, DAQ server, and engine design
|
#include <Arduino.h>#include <SPI.h>#include "STAR_ADS126X.h"#include "connector_adc_map.h"#include "sense_board_pins.h"Go to the source code of this file.
Macros | |
| #define | PINS_ACTIVE_LAYOUT sense_board_pins::LC_Board |
| #define | TEST_CONNECTOR 3 |
| #define | TEST_PIN 1 |
Functions | |
| float | convert_code_to_voltage (int32_t code) |
| void | setup () |
| void | loop () |
Variables | |
| static ADS126X | ads126x |
| #define PINS_ACTIVE_LAYOUT sense_board_pins::LC_Board |
| float convert_code_to_voltage | ( | int32_t | code | ) |
| void loop | ( | ) |
Definition at line 71 of file main.cpp.
References ads126x, convert_code_to_voltage(), delayMicroseconds(), digitalRead(), LOW, sense_board_pins::Pins, and Serial.
| void setup | ( | void | ) |
Definition at line 34 of file main.cpp.
References ads126x, ADS126X_GAIN_8, ADS126X_RATE_1200, ADS126X_SINC4, sense_board_pins::getAdcChannel(), INPUT, pinMode(), sense_board_pins::Pins, Serial, and SPI_MODE1.