NTC Thermistor Driver
API reference
Loading...
Searching...
No Matches
Classes | Namespaces | Functions
ntc_lookup_table.hpp File Reference

Lookup table implementation for NTC thermistor temperature conversion. More...

#include <cstddef>
#include <cstdint>
Include dependency graph for ntc_lookup_table.hpp:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  NTC::ntc_lookup_entry_t
 Lookup table entry structure. More...
 
struct  NTC::ntc_lookup_table_t
 Lookup table structure. More...
 

Namespaces

namespace  NTC
 

Functions

const ntc_lookup_table_t * NTC::GetNtcLookupTable (int ntc_type) noexcept
 Get lookup table for NTC type.
 
bool NTC::FindTemperatureFromLookupTable (const ntc_lookup_table_t *table, float resistance_ohms, float *temperature_celsius) noexcept
 Find temperature using lookup table.
 
bool NTC::FindResistanceFromLookupTable (const ntc_lookup_table_t *table, float temperature_celsius, float *resistance_ohms) noexcept
 Find resistance using lookup table.
 
bool NTC::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.
 
bool NTC::BinarySearchLookupTable (const ntc_lookup_table_t *table, float resistance_ohms, size_t *lower_index, size_t *upper_index) noexcept
 Binary search in lookup table.
 
bool NTC::ValidateLookupTable (const ntc_lookup_table_t *table) noexcept
 Validate lookup table.
 
void NTC::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.
 
const ntc_lookup_table_t * NTC::GetNtcG163Jft103Ft1sLookupTable () noexcept
 Get NTCG163JFT103FT1S lookup table.
 
const ntc_lookup_table_t * NTC::GetNtcG164Jf103Ft1sLookupTable () noexcept
 Get NTCG164JF103FT1S lookup table.
 
const ntc_lookup_table_t * NTC::GetNtcG163Jf103Ft1sLookupTable () noexcept
 Get NTCG163JF103FT1S lookup table.
 

Detailed Description

Lookup table implementation for NTC thermistor temperature conversion.