HF-Core Platform 0.1.0-dev
Hardware-Agnostic Handler Layer & RTOS Utilities for HardFOC
Loading...
Searching...
No Matches
NtcTemperatureHandler.h File Reference

NTC temperature sensor handler for the HardFOC system. More...

#include "core/hf-core-drivers/internal/hf-internal-interface-wrap/inc/base/BaseTemperature.h"
#include "core/hf-core-drivers/internal/hf-internal-interface-wrap/inc/base/BaseAdc.h"
#include "core/hf-core-drivers/external/hf-ntc-thermistor-driver/inc/ntc_thermistor.hpp"
#include "RtosMutex.h"
#include "core/hf-core-utils/hf-utils-rtos-wrap/include/PeriodicTimer.h"
#include <memory>
#include <cfloat>
#include <array>
Include dependency graph for NtcTemperatureHandler.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  NtcAdcAdapter
 Adapter that bridges BaseAdc to the ntc::AdcInterface CRTP interface required by the NtcThermistor template class. More...
 
struct  ntc_temp_handler_config_t
 NTC temperature handler configuration structure. More...
 
class  NtcTemperatureHandler
 NTC temperature sensor handler implementing BaseTemperature interface. More...
 

Macros

#define NTC_TEMP_HANDLER_CONFIG_DEFAULT()
 Default NTC temperature handler configuration.
 

Typedefs

using NtcThermistorConcrete = NtcThermistor<NtcAdcAdapter>
 Convenience alias for the concrete NtcThermistor type used by this handler.
 

Detailed Description

NTC temperature sensor handler for the HardFOC system.

This handler provides a BaseTemperature interface for NTC thermistor temperature sensors using a BaseAdc pointer for voltage measurements. It wraps the NtcThermistor library to provide a unified temperature sensor interface.

Author
HardFOC Development Team
Date
2025

Macro Definition Documentation

◆ NTC_TEMP_HANDLER_CONFIG_DEFAULT

#define NTC_TEMP_HANDLER_CONFIG_DEFAULT ( )
Value:
{ \
.ntc_type = NtcType::NtcG163Jft103Ft1S, \
.adc_channel = 0, \
.voltage_divider_series_resistance = 10000.0f, \
.voltage_divider_parallel_resistance = 0.0f, \
.reference_voltage = 3.3f, \
.calibration_offset = 0.0f, \
.beta_value = 0.0f, \
.conversion_method = NtcConversionMethod::Auto, \
.sample_count = 1, \
.sample_delay_ms = 0, \
.min_temperature = -40.0f, \
.max_temperature = 125.0f, \
.enable_filtering = false, \
.filter_alpha = 0.1f, \
.enable_threshold_monitoring = false, \
.low_threshold_celsius = -40.0f, \
.high_threshold_celsius = 125.0f, \
.threshold_callback = nullptr, \
.threshold_user_data = nullptr, \
.sensor_name = "NTC_Temperature_Sensor", \
.sensor_description = "NTC Thermistor Temperature Sensor" \
}

Default NTC temperature handler configuration.

Typedef Documentation

◆ NtcThermistorConcrete

using NtcThermistorConcrete = NtcThermistor<NtcAdcAdapter>

Convenience alias for the concrete NtcThermistor type used by this handler.