|
ADS7952 Driver 0.1.0
API reference
|
A channel the board drives with a known voltage, so the driver can prove the scale every code is converted with: the range the chip is really in, and a reference that is present. More...
#include <ads7952_types.hpp>
Public Attributes | |
| uint8_t | channel {kNoMonitor} |
The channel, or kNoMonitor. | |
| uint32_t | expected_uv {0} |
| Its nominal input, in microvolts; strictly inside the range. | |
| uint32_t | tolerance_uv {0} |
A channel the board drives with a known voltage, so the driver can prove the scale every code is converted with: the range the chip is really in, and a reference that is present.
The chip has no way to read its range back (section 8.4.2) and powers up and resets in Range 1, so a lost range doubles or halves every result while every channel address still checks out. A known input tells the two apart: in the other range it reads twice or half the code. Best is a voltage derived from REFP itself (REFP, or REFP through two matched resistors): its code does not depend on the reference's accuracy. ScaleMonitor{} is no monitor.
| uint32_t ads7952::ScaleMonitor::tolerance_uv {0} |
Accepted deviation, in microvolts; the windows of the two ranges must not touch (Validate() checks it).