|
ADS7952 Driver 0.1.0
API reference
|
The GPIO program register and the GPIO output levels. GpioConfig{} is the reset state: every pin an input with no function.
More...
#include <ads7952_types.hpp>
Public Attributes | |
| uint8_t | output_mask {0} |
| Bit n = 1: GPIOn is a general-purpose output (DI03:00). | |
| uint8_t | output_levels {0} |
| Levels of the output pins, bit n for GPIOn; only output pins. | |
| AlarmOutput | alarm_output {AlarmOutput::None} |
| GPIO0/GPIO1 alarm functions (DI06:04). | |
| bool | gpio2_range_input {false} |
| GPIO2 selects the range (DI07); DI06 is then ignored. | |
| bool | gpio3_power_down_input {false} |
| GPIO3 is the active-low power-down input (DI08). | |
The GPIO program register and the GPIO output levels. GpioConfig{} is the reset state: every pin an input with no function.
A pin given a function (an alarm output, the range or power-down input) ignores its direction bit, so it must not be in output_mask (Table 11 note).