|
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::PT_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::PT_Board |
| #define TEST_PIN 1 |
Definition at line 23 of file main.cpp.
Referenced by collect_chunk(), collect_chunk_impl(), init_adc_cb(), loop(), run_self_test_cb(), and setup().
| float convert_code_to_voltage | ( | int32_t | code | ) |
| void loop | ( | ) |
Definition at line 72 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_AINCOM, ADS126X_RATE_1200, ADS126X_SINC4, sense_board_pins::getAdcChannel(), INPUT, pinMode(), sense_board_pins::Pins, Serial, SPI_MODE1, TEST_CONNECTOR, and TEST_PIN.