HF-ADS7952 Driver 0.1.0-dev
HF-ADS7952 C++ Driver
Loading...
Searching...
No Matches
ads7952_config.hpp File Reference

Compile-time configuration options for the ADS7952 driver. More...

#include <cstdint>
#include "ads7952_types.hpp"

Go to the source code of this file.

Namespaces

namespace  ADS7952_CFG
 

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

Compile-time configuration options for the ADS7952 driver.

Provides sensible defaults that can be overridden via Kconfig (ESP-IDF), CMake definitions, or direct preprocessor defines.

Definition in file ads7952_config.hpp.