HardFOC Core
API reference
Loading...
Searching...
No Matches
Macros | Functions | Variables
Ads7952Handler.cpp File Reference

Implementation of the ADS7952 12-channel SAR ADC handler. More...

#include "Ads7952Handler.h"
#include <cstring>
#include <algorithm>
#include "handlers/logger/Logger.h"

Macros

#define LOG_BANNER(tag, art, format)   Logger::GetInstance().LogBanner(tag, art, format)
 

Functions

std::unique_ptr< Ads7952Handler > CreateAds7952Handler (BaseSpi &spi_interface, const Ads7952HandlerConfig &config) noexcept
 Create ADS7952 handler instance.
 

Variables

static constexpr const char * TAG = "Ads7952Handler"
 

Detailed Description

Implementation of the ADS7952 12-channel SAR ADC handler.

Implements the CRTP SPI bridge, BaseAdc interface, lazy initialization, and thread-safe operations for the ADS7952 ADC. Follows the same architecture as As5047uHandler.cpp.

Author
HardFOC Team
Version
1.0
Date
2026

Macro Definition Documentation

◆ LOG_BANNER

#define LOG_BANNER (   tag,
  art,
  format 
)    Logger::GetInstance().LogBanner(tag, art, format)

Function Documentation

◆ CreateAds7952Handler()

std::unique_ptr< Ads7952Handler > CreateAds7952Handler ( BaseSpi &  spi_interface,
const Ads7952HandlerConfig &  config = GetDefaultAds7952Config() 
)
noexcept

Create ADS7952 handler instance.

Parameters
spi_interfaceReference to SPI interface
configHandler configuration
Returns
Unique pointer to Ads7952Handler

Variable Documentation

◆ TAG

constexpr const char* TAG = "Ads7952Handler"
staticconstexpr