|
ADS7952 Driver
API reference
|
Public enums, result payloads, and helper utilities. More...
Modules | |
| GPIO Bit Masks | |
| Bit masks for GPIO pin addressing. | |
| Channel Mask Helpers | |
| Helpers and constants for Auto-1 sequence mask construction. | |
| Conversion Helpers | |
| Lightweight utility functions for engineering-unit conversion. | |
Files | |
| file | ads7952_types.hpp |
| Type definitions for the ADS7952 driver. | |
Classes | |
| struct | ads7952::GPIOConfig |
| struct | ads7952::ReadResult |
| struct | ads7952::ChannelReadings |
Public enums, result payloads, and helper utilities.
|
strong |
| Enumerator | |
|---|---|
| Low | Low alarm threshold register. |
| High | High alarm threshold register. |
Definition at line 54 of file ads7952_types.hpp.
|
strong |
Definition at line 63 of file ads7952_types.hpp.
|
strong |
GPIO0/GPIO1 alarm functions, the DI06:04 codes of the GPIO program register (SLAS605C Table 11). Alarm outputs are active high. The chip has no GPIO1 high-alarm code: GPIO1 can only be the low-alarm output.
| Enumerator | |
|---|---|
| GPIO | 000: both as general-purpose I/O |
| GPIO0_HighAndLowAlarm | xx1: GPIO0 = combined high-or-low alarm output |
| GPIO0_HighAlarm | 010: GPIO0 = high alarm output |
| GPIO1_LowAlarm | 100: GPIO1 = low alarm output |
| GPIO1_LowAlarm_GPIO0_HighAlarm | 110: GPIO1 = low alarm, GPIO0 = high alarm |
| GPIO1_HighAlarm |
|
Definition at line 82 of file ads7952_types.hpp.
|
strong |
| Enumerator | |
|---|---|
| Manual | Host selects channel each frame. |
| Auto1 | Device sequences through programmed channel mask. |
| Auto2 | Device sequences channels 0 to last_channel. |
Definition at line 26 of file ads7952_types.hpp.
|
strong |
| Enumerator | |
|---|---|
| Normal | Normal operation. |
| PowerDown | Device enters power-down. |
Definition at line 45 of file ads7952_types.hpp.
|
strong |
| Enumerator | |
|---|---|
| Vref | 0 to Vref (RANGE bit = 0) |
| TwoVref | 0 to 2*Vref, clamped to VA (RANGE bit = 1) |
Definition at line 36 of file ads7952_types.hpp.