ADS7952 Driver
API reference
Loading...
Searching...
No Matches
Variables
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 = 2.0f
 
constexpr float ADS7952_CFG::MAX_VREF = 3.0f
 
constexpr float ADS7952_CFG::MIN_VA = 2.7f
 
constexpr float ADS7952_CFG::MAX_VA = 5.25f
 
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::MANUAL_READ_MAX_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 74 of file ads7952_config.hpp.

◆ DEFAULT_AUTO2_LAST_CH

constexpr uint8_t ADS7952_CFG::DEFAULT_AUTO2_LAST_CH = 11
inlineconstexpr

Definition at line 81 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.

◆ MANUAL_READ_MAX_FRAMES

constexpr uint8_t ADS7952_CFG::MANUAL_READ_MAX_FRAMES = 4
inlineconstexpr

Definition at line 98 of file ads7952_config.hpp.

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

◆ 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 105 of file ads7952_config.hpp.

◆ MAX_VA

constexpr float ADS7952_CFG::MAX_VA = 5.25f
inlineconstexpr

Definition at line 68 of file ads7952_config.hpp.

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

◆ MAX_VREF

constexpr float ADS7952_CFG::MAX_VREF = 3.0f
inlineconstexpr

Definition at line 66 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 67 of file ads7952_config.hpp.

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

◆ MIN_VREF

constexpr float ADS7952_CFG::MIN_VREF = 2.0f
inlineconstexpr

Definition at line 65 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 88 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.