ADS7952 Driver 0.1.0
API reference
Loading...
Searching...
No Matches
Public Attributes | List of all members
ads7952::ScaleMonitor Struct 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}
 

Detailed Description

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.

Member Data Documentation

◆ tolerance_uv

uint32_t ads7952::ScaleMonitor::tolerance_uv {0}

Accepted deviation, in microvolts; the windows of the two ranges must not touch (Validate() checks it).


The documentation for this struct was generated from the following file: