ADS7952 Driver 0.1.0
API reference
Loading...
Searching...
No Matches
Public Attributes | List of all members
ads7952::AlarmThreshold Struct Reference

The two alarm thresholds of one channel, in 12-bit result codes. The chip keeps the upper 10 bits and compares them with the upper 10 bits of each result (Table 13), so the two lowest bits of a threshold are dropped. AlarmThreshold{} is the reset state: no alarm. More...

#include <ads7952_types.hpp>

Public Attributes

uint16_t low_code {0}
 Low alarm when the result is below this; 0 to 4095.
 
uint16_t high_code {4095}
 High alarm when the result is above this; 0 to 4095.
 

Detailed Description

The two alarm thresholds of one channel, in 12-bit result codes. The chip keeps the upper 10 bits and compares them with the upper 10 bits of each result (Table 13), so the two lowest bits of a threshold are dropped. AlarmThreshold{} is the reset state: no alarm.


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