|
| | StmTemperature (const hf_stm32_temp_sensor_config_t &config) noexcept |
| | Construct from config.
|
| |
| | StmTemperature (ADC_HandleTypeDef *hadc=nullptr, hf_u8_t resolution_bits=12, float vref_mv=3300.0f) noexcept |
| | Construct with ADC handle + basics (uses internal sensor defaults).
|
| |
| | ~StmTemperature () noexcept override |
| |
| hf_temp_err_t | GetSensorInfo (hf_temp_sensor_info_t *info) const noexcept override |
| | Get sensor information.
|
| |
| hf_u32_t | GetCapabilities () const noexcept override |
| | Get sensor capabilities.
|
| |
| hf_temp_err_t | SetRange (float min_celsius, float max_celsius) noexcept override |
| | Set temperature measurement range (advanced feature)
|
| |
| hf_temp_err_t | GetRange (float *min_celsius, float *max_celsius) const noexcept override |
| | Get temperature measurement range (advanced feature)
|
| |
| hf_temp_err_t | SetCalibrationOffset (float offset_celsius) noexcept override |
| | Set calibration offset (advanced feature)
|
| |
| hf_temp_err_t | GetCalibrationOffset (float *offset_celsius) const noexcept override |
| | Get calibration offset (advanced feature)
|
| |
| | BaseTemperature (const BaseTemperature &)=delete |
| | Copy constructor is deleted to avoid copying instances.
|
| |
| BaseTemperature & | operator= (const BaseTemperature &)=delete |
| | Assignment operator is deleted to avoid copying instances.
|
| |
| virtual | ~BaseTemperature () noexcept=default |
| | Virtual destructor for proper cleanup of derived classes.
|
| |
| bool | IsInitialized () const noexcept |
| | Check if the temperature sensor is initialized.
|
| |
| bool | EnsureInitialized () noexcept |
| | Ensures the sensor is initialized (lazy initialization).
|
| |
| bool | EnsureDeinitialized () noexcept |
| | Ensures the sensor is deinitialized (lazy deinitialization).
|
| |
| hf_temp_state_t | GetState () const noexcept |
| | Get current sensor state.
|
| |
| hf_temp_err_t | ReadTemperatureCelsius (float *temperature_celsius) noexcept |
| | Read temperature in Celsius (blocking)
|
| |
| hf_temp_err_t | ReadTemperature (hf_temp_reading_t *reading) noexcept |
| | Read temperature with full information (blocking)
|
| |
| hf_temp_err_t | ReadTemperatureFahrenheit (float *temperature_fahrenheit) noexcept |
| | Read temperature in Fahrenheit.
|
| |
| hf_temp_err_t | ReadTemperatureKelvin (float *temperature_kelvin) noexcept |
| | Read temperature in Kelvin.
|
| |
| hf_temp_err_t | ReadTemperatureUnit (float *temperature, hf_temp_unit_t unit) noexcept |
| | Read temperature in specified unit.
|
| |
| bool | HasCapability (hf_temp_capabilities_t capability) const noexcept |
| | Check if a specific capability is supported.
|
| |
| virtual hf_temp_err_t | SetResolution (float resolution_celsius) noexcept |
| | Set measurement resolution (advanced feature)
|
| |
| virtual hf_temp_err_t | GetResolution (float *resolution_celsius) const noexcept |
| | Get measurement resolution (advanced feature)
|
| |
| virtual hf_temp_err_t | SetThresholds (float low_threshold_celsius, float high_threshold_celsius) noexcept |
| | Set temperature thresholds (advanced feature)
|
| |
| virtual hf_temp_err_t | GetThresholds (float *low_threshold_celsius, float *high_threshold_celsius) const noexcept |
| | Get temperature thresholds (advanced feature)
|
| |
| virtual hf_temp_err_t | EnableThresholdMonitoring (hf_temp_threshold_callback_t callback, void *user_data) noexcept |
| | Enable threshold monitoring (advanced feature)
|
| |
| virtual hf_temp_err_t | DisableThresholdMonitoring () noexcept |
| | Disable threshold monitoring (advanced feature)
|
| |
| virtual hf_temp_err_t | StartContinuousMonitoring (hf_u32_t sample_rate_hz, hf_temp_reading_callback_t callback, void *user_data) noexcept |
| | Start continuous temperature monitoring (advanced feature)
|
| |
| virtual hf_temp_err_t | StopContinuousMonitoring () noexcept |
| | Stop continuous temperature monitoring (advanced feature)
|
| |
| virtual bool | IsMonitoringActive () const noexcept |
| | Check if continuous monitoring is active (advanced feature)
|
| |
| virtual hf_temp_err_t | Calibrate (float reference_temperature_celsius) noexcept |
| | Perform sensor calibration (advanced feature)
|
| |
| virtual hf_temp_err_t | ResetCalibration () noexcept |
| | Reset calibration to default (advanced feature)
|
| |
| virtual hf_temp_err_t | EnterSleepMode () noexcept |
| | Enter low power mode (advanced feature)
|
| |
| virtual hf_temp_err_t | ExitSleepMode () noexcept |
| | Exit low power mode (advanced feature)
|
| |
| virtual bool | IsSleeping () const noexcept |
| | Check if sensor is in sleep mode (advanced feature)
|
| |
| virtual hf_temp_err_t | SelfTest () noexcept |
| | Perform sensor self-test (advanced feature)
|
| |
| virtual hf_temp_err_t | CheckHealth () noexcept |
| | Check sensor health status (advanced feature)
|
| |
| virtual hf_temp_err_t | GetStatistics (hf_temp_statistics_t &statistics) noexcept |
| | Get operation statistics (advanced feature)
|
| |
| virtual hf_temp_err_t | GetDiagnostics (hf_temp_diagnostics_t &diagnostics) noexcept |
| | Get diagnostic information (advanced feature)
|
| |
| virtual hf_temp_err_t | ResetStatistics () noexcept |
| | Reset operation statistics (advanced feature)
|
| |
| virtual hf_temp_err_t | ResetDiagnostics () noexcept |
| | Reset diagnostic information (advanced feature)
|
| |
STM32 Temperature sensor implementation.
Two modes of operation:
- Internal sensor — reads the on-chip temperature channel. The default conversion function uses the generic RM formula; users can override with family-specific calibration constants for better accuracy.
- External sensor — any NTC / PTC / thermocouple connected to an ADC channel. The user provides a
convert_fn that maps raw counts → °C.