HF-ADS7952 Driver 0.1.0-dev
HF-ADS7952 C++ Driver
Loading...
Searching...
No Matches
Compile-Time Configuration

Build-time defaults and tuning knobs for the ADS7952 driver. More...

Variables

constexpr ads7952::Mode ADS7952_CFG::DEFAULT_MODE = ads7952::Mode::Manual
 
constexpr ads7952::Range ADS7952_CFG::DEFAULT_RANGE = ads7952::Range::Vref
 
constexpr uint8_t ADS7952_CFG::NUM_CHANNELS = 12
 
constexpr uint8_t ADS7952_CFG::RESOLUTION_BITS = 12
 
constexpr uint16_t ADS7952_CFG::MAX_COUNT = (1U << RESOLUTION_BITS) - 1
 
constexpr float ADS7952_CFG::DEFAULT_VREF = 2.5f
 
constexpr float ADS7952_CFG::DEFAULT_VA = 5.0f
 
constexpr float ADS7952_CFG::MIN_VREF = 1.0f
 
constexpr float ADS7952_CFG::MAX_VREF = 2.5f
 
constexpr float ADS7952_CFG::MIN_VA = 2.7f
 
constexpr float ADS7952_CFG::MAX_VA = 5.5f
 
constexpr uint16_t ADS7952_CFG::DEFAULT_AUTO1_MASK = 0x0FFF
 
constexpr uint8_t ADS7952_CFG::DEFAULT_AUTO2_LAST_CH = 11
 
constexpr uint8_t ADS7952_CFG::READ_ALL_MAX_EXTRA_FRAMES = 4
 
constexpr uint8_t ADS7952_CFG::MAX_RETRIES = 3
 

Detailed Description

Build-time defaults and tuning knobs for the ADS7952 driver.

These constants define startup behavior (mode, range, channel sequencing), electrical assumptions (Vref/VA), and bounded runtime loop behavior. Values can be overridden from the build system using CONFIG_ADS7952_* macros.

Variable Documentation

◆ DEFAULT_AUTO1_MASK

constexpr uint16_t ADS7952_CFG::DEFAULT_AUTO1_MASK = 0x0FFF
inlineconstexpr

Definition at line 73 of file ads7952_config.hpp.

◆ DEFAULT_AUTO2_LAST_CH

constexpr uint8_t ADS7952_CFG::DEFAULT_AUTO2_LAST_CH = 11
inlineconstexpr

Definition at line 80 of file ads7952_config.hpp.

◆ DEFAULT_MODE

constexpr ads7952::Mode ADS7952_CFG::DEFAULT_MODE = ads7952::Mode::Manual
inlineconstexpr

Definition at line 35 of file ads7952_config.hpp.

◆ DEFAULT_RANGE

constexpr ads7952::Range ADS7952_CFG::DEFAULT_RANGE = ads7952::Range::Vref
inlineconstexpr

Definition at line 42 of file ads7952_config.hpp.

◆ DEFAULT_VA

constexpr float ADS7952_CFG::DEFAULT_VA = 5.0f
inlineconstexpr

Definition at line 60 of file ads7952_config.hpp.

◆ DEFAULT_VREF

constexpr float ADS7952_CFG::DEFAULT_VREF = 2.5f
inlineconstexpr

Definition at line 54 of file ads7952_config.hpp.

◆ MAX_COUNT

constexpr uint16_t ADS7952_CFG::MAX_COUNT = (1U << RESOLUTION_BITS) - 1
inlineconstexpr

Definition at line 48 of file ads7952_config.hpp.

◆ MAX_RETRIES

constexpr uint8_t ADS7952_CFG::MAX_RETRIES = 3
inlineconstexpr

Definition at line 94 of file ads7952_config.hpp.

◆ MAX_VA

constexpr float ADS7952_CFG::MAX_VA = 5.5f
inlineconstexpr

Definition at line 67 of file ads7952_config.hpp.

Referenced by ads7952::ADS7952< SpiType >::SetVA().

◆ MAX_VREF

constexpr float ADS7952_CFG::MAX_VREF = 2.5f
inlineconstexpr

Definition at line 65 of file ads7952_config.hpp.

Referenced by ads7952::ADS7952< SpiType >::SetVref().

◆ MIN_VA

constexpr float ADS7952_CFG::MIN_VA = 2.7f
inlineconstexpr

Definition at line 66 of file ads7952_config.hpp.

Referenced by ads7952::ADS7952< SpiType >::SetVA().

◆ MIN_VREF

constexpr float ADS7952_CFG::MIN_VREF = 1.0f
inlineconstexpr

Definition at line 64 of file ads7952_config.hpp.

Referenced by ads7952::ADS7952< SpiType >::SetVref().

◆ NUM_CHANNELS

constexpr uint8_t ADS7952_CFG::NUM_CHANNELS = 12
inlineconstexpr

Definition at line 46 of file ads7952_config.hpp.

◆ READ_ALL_MAX_EXTRA_FRAMES

constexpr uint8_t ADS7952_CFG::READ_ALL_MAX_EXTRA_FRAMES = 4
inlineconstexpr

Definition at line 87 of file ads7952_config.hpp.

Referenced by ads7952::ADS7952< SpiType >::ReadAllChannels().

◆ RESOLUTION_BITS

constexpr uint8_t ADS7952_CFG::RESOLUTION_BITS = 12
inlineconstexpr

Definition at line 47 of file ads7952_config.hpp.