68 float resistance_ohms,
69 float *temperature_celsius)
noexcept;
79 float temperature_celsius,
80 float *resistance_ohms)
noexcept;
92 float resistance_ohms,
93 float *temperature_celsius)
noexcept;
104 float resistance_ohms,
size_t *lower_index,
105 size_t *upper_index)
noexcept;
124 float *max_resistance,
float *min_temperature,
125 float *max_temperature,
size_t *entry_count)
noexcept;
Definition ntc_conversion.hpp:14
bool FindTemperatureFromLookupTable(const ntc_lookup_table_t *table, float resistance_ohms, float *temperature_celsius) noexcept
Find temperature using lookup table.
Definition ntc_lookup_table.cpp:128
const ntc_lookup_table_t * GetNtcG163Jft103Ft1sLookupTable() noexcept
Get NTCG163JFT103FT1S lookup table.
Definition ntc_lookup_table.cpp:329
const ntc_lookup_table_t * GetNtcG164Jf103Ft1sLookupTable() noexcept
Get NTCG164JF103FT1S lookup table.
Definition ntc_lookup_table.cpp:333
const ntc_lookup_table_t * GetNtcG163Jf103Ft1sLookupTable() noexcept
Get NTCG163JF103FT1S lookup table.
Definition ntc_lookup_table.cpp:337
bool FindResistanceFromLookupTable(const ntc_lookup_table_t *table, float temperature_celsius, float *resistance_ohms) noexcept
Find resistance using lookup table.
Definition ntc_lookup_table.cpp:161
void GetLookupTableStats(const ntc_lookup_table_t *table, float *min_resistance, float *max_resistance, float *min_temperature, float *max_temperature, size_t *entry_count) noexcept
Get lookup table statistics.
Definition ntc_lookup_table.cpp:301
bool InterpolateLookupEntries(const ntc_lookup_entry_t &entry1, const ntc_lookup_entry_t &entry2, float resistance_ohms, float *temperature_celsius) noexcept
Interpolate between two lookup table entries.
Definition ntc_lookup_table.cpp:204
bool ValidateLookupTable(const ntc_lookup_table_t *table) noexcept
Validate lookup table.
Definition ntc_lookup_table.cpp:272
bool BinarySearchLookupTable(const ntc_lookup_table_t *table, float resistance_ohms, size_t *lower_index, size_t *upper_index) noexcept
Binary search in lookup table.
Definition ntc_lookup_table.cpp:235
const ntc_lookup_table_t * GetNtcLookupTable(int ntc_type) noexcept
Get lookup table for NTC type.
Definition ntc_lookup_table.cpp:115
Lookup table entry structure.
Definition ntc_lookup_table.hpp:19
float resistance_ohms
Resistance value (ohms)
Definition ntc_lookup_table.hpp:20
float temperature_celsius
Corresponding temperature (°C)
Definition ntc_lookup_table.hpp:21
Lookup table structure.
Definition ntc_lookup_table.hpp:31
float min_resistance
Minimum resistance in table.
Definition ntc_lookup_table.hpp:34
float min_temperature
Minimum temperature in table.
Definition ntc_lookup_table.hpp:36
float resistance_step
Resistance step between entries.
Definition ntc_lookup_table.hpp:38
size_t entry_count
Number of entries.
Definition ntc_lookup_table.hpp:33
float max_temperature
Maximum temperature in table.
Definition ntc_lookup_table.hpp:37
float max_resistance
Maximum resistance in table.
Definition ntc_lookup_table.hpp:35
const ntc_lookup_entry_t * entries
Array of lookup entries.
Definition ntc_lookup_table.hpp:32