HF Interface Wrapper 0.1.0-dev
Embedded C++ hardware abstraction layer
Loading...
Searching...
No Matches
EspTemperature.cpp File Reference

ESP32-C6 internal temperature sensor implementation for the HardFOC system. More...

#include "EspTemperature.h"
#include <algorithm>
#include <cmath>
#include <cstring>
Include dependency graph for EspTemperature.cpp:

Detailed Description

ESP32-C6 internal temperature sensor implementation for the HardFOC system.

This file contains the complete implementation of the ESP32-C6 temperature sensor driver that extends the BaseTemperature abstract class. It provides comprehensive support for all ESP32-C6 temperature sensor features including multiple measurement ranges, threshold monitoring, continuous monitoring, calibration, and power management.

Key features implemented:

  • ESP32-C6 internal temperature sensor using ESP-IDF v5.x APIs
  • Multiple predefined measurement ranges with different accuracy levels
  • Hardware threshold monitoring with interrupt callbacks
  • Continuous monitoring using ESP32 timers
  • Thread-safe operations with mutex protection
  • Comprehensive error handling and diagnostics
  • Power management support for low-power applications
  • Operation statistics and performance tracking
  • Self-test and health monitoring capabilities
Author
Nebiyu Tadesse
Date
2025
Note
ESP32-C6 specific implementation using ESP-IDF v5.x
Thread-safe design suitable for multi-threaded applications
Follows HardFOC coding standards and patterns