NTC Thermistor Driver
API reference
Loading...
Searching...
No Matches
Public Attributes | List of all members
ntc_reading_t Struct Reference

NTC thermistor reading structure. More...

#include <ntc_types.hpp>

Public Attributes

float temperature_celsius
 Temperature in Celsius.
 
float temperature_fahrenheit
 Temperature in Fahrenheit.
 
float temperature_kelvin
 Temperature in Kelvin.
 
float resistance_ohms
 Thermistor resistance (ohms)
 
float voltage_volts
 Voltage across thermistor (V)
 
uint32_t adc_raw_value
 Raw ADC value.
 
uint64_t timestamp_us
 Timestamp (microseconds)
 
NtcError error
 Error code.
 
bool is_valid
 Whether reading is valid.
 
float accuracy_celsius
 Estimated accuracy (°C)
 

Detailed Description

NTC thermistor reading structure.

Complete temperature reading information including all temperature units, raw ADC values, resistance, voltage, and error status.

Note
Always check the is_valid and error fields before using temperature values. Invalid readings may contain NaN or invalid data.
See also
NtcThermistor::ReadTemperature()

Member Data Documentation

◆ accuracy_celsius

float ntc_reading_t::accuracy_celsius

Estimated accuracy (°C)

◆ adc_raw_value

uint32_t ntc_reading_t::adc_raw_value

Raw ADC value.

◆ error

NtcError ntc_reading_t::error

Error code.

◆ is_valid

bool ntc_reading_t::is_valid

Whether reading is valid.

◆ resistance_ohms

float ntc_reading_t::resistance_ohms

Thermistor resistance (ohms)

◆ temperature_celsius

float ntc_reading_t::temperature_celsius

Temperature in Celsius.

◆ temperature_fahrenheit

float ntc_reading_t::temperature_fahrenheit

Temperature in Fahrenheit.

◆ temperature_kelvin

float ntc_reading_t::temperature_kelvin

Temperature in Kelvin.

◆ timestamp_us

uint64_t ntc_reading_t::timestamp_us

Timestamp (microseconds)

◆ voltage_volts

float ntc_reading_t::voltage_volts

Voltage across thermistor (V)


The documentation for this struct was generated from the following file: