ADS7952 Driver
API reference
Loading...
Searching...
No Matches
Public Attributes | List of all members
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 120 of file ads7952_types.hpp.

Member Data Documentation

◆ alarm_mode

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

Definition at line 121 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 133 of file ads7952_types.hpp.

◆ gpio2_as_range_input

bool ads7952::GPIOConfig::gpio2_as_range_input = false

GPIO2 controls RANGE externally.

Definition at line 122 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 123 of file ads7952_types.hpp.

◆ reset_all_registers

bool ads7952::GPIOConfig::reset_all_registers = false

Reset all programming registers.

Definition at line 135 of file ads7952_types.hpp.


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