|
STAR
Cal STAR — firmware, DAQ server, and engine design
|
Go to the source code of this file.
Classes | |
| struct | SensorSelfTest::AdcSelfTestResult |
| ADC self-test via internal TDAC. More... | |
| struct | SensorSelfTest::BiasReadResult |
Namespaces | |
| namespace | SensorSelfTest |
Enumerations | |
| enum class | SensorSelfTest::BiasResult : uint8_t { SensorSelfTest::CONNECTED = 0 , SensorSelfTest::AMBIGUOUS = 1 , SensorSelfTest::DISCONNECTED = 2 } |
Functions | |
| AdcSelfTestResult | SensorSelfTest::run_adc_self_test (ADS126X &adc, uint8_t drdy_pin, uint8_t original_ref_neg, uint8_t original_ref_pos) |
| void | SensorSelfTest::sensor_bias_enable (ADS126X &adc) |
| Call once before the connector loop. | |
| BiasReadResult | SensorSelfTest::read_sensor_bias (ADS126X &adc, uint8_t drdy_pin, uint8_t adc_channel, uint8_t aincom, uint8_t settle_cycles=5) |
| Read one connector with sensor bias already active. | |
| void | SensorSelfTest::sensor_bias_disable (ADS126X &adc) |
| Call once after the connector loop. | |
Variables | |
| constexpr int32_t | SensorSelfTest::ADC_TDAC_EXPECTED_CODE = 214748364 |
| constexpr int32_t | SensorSelfTest::ADC_TDAC_TOLERANCE = 2147484 |
| constexpr int32_t | SensorSelfTest::SENSOR_BIAS_CLOSED_THRESHOLD = 858993459 |
| constexpr int32_t | SensorSelfTest::SENSOR_BIAS_OPEN_THRESHOLD = 1288490188 |
| constexpr unsigned long | SensorSelfTest::BIAS_SETTLE_MS = 50 |
| constexpr uint8_t | SensorSelfTest::BIAS_AVG_SAMPLES = 4 |