HF-ADS7952 Driver 0.1.0-dev
HF-ADS7952 C++ Driver
Loading...
Searching...
No Matches
ads7952::GPIOConfig Struct Reference

#include <ads7952_types.hpp>

Public Attributes

GPIO01AlarmMode alarm_mode = GPIO01AlarmMode::GPIO
 
bool gpio2_as_range_input = false
 GPIO2 controls RANGE externally.
 
bool gpio3_as_powerdown_input = false
 GPIO3 controls power-down externally.
 
uint8_t direction_mask = 0
 GPIO direction control — bits [3:0], bit N = GPIO pin N.
 
bool reset_all_registers = false
 Reset all programming registers.
 

Detailed Description

Definition at line 112 of file ads7952_types.hpp.

Member Data Documentation

◆ alarm_mode

GPIO01AlarmMode ads7952::GPIOConfig::alarm_mode = GPIO01AlarmMode::GPIO

Definition at line 113 of file ads7952_types.hpp.

◆ direction_mask

uint8_t ads7952::GPIOConfig::direction_mask = 0

GPIO direction control — bits [3:0], bit N = GPIO pin N.

Set bit to 1 for output, 0 for input. Use ads7952::gpio:: constants:

constexpr uint8_t kGPIO2
Bit 2 — GPIO pin 2.
constexpr uint8_t kGPIO3
Bit 3 — GPIO pin 3.

Definition at line 125 of file ads7952_types.hpp.

◆ gpio2_as_range_input

bool ads7952::GPIOConfig::gpio2_as_range_input = false

GPIO2 controls RANGE externally.

Definition at line 114 of file ads7952_types.hpp.

◆ gpio3_as_powerdown_input

bool ads7952::GPIOConfig::gpio3_as_powerdown_input = false

GPIO3 controls power-down externally.

Definition at line 115 of file ads7952_types.hpp.

◆ reset_all_registers

bool ads7952::GPIOConfig::reset_all_registers = false

Reset all programming registers.

Definition at line 127 of file ads7952_types.hpp.


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