system_info.h 442 B

12345678910111213141516171819
  1. #ifndef _SYSTEM_INFO_H_
  2. #define _SYSTEM_INFO_H_
  3. #include <string>
  4. #include <esp_err.h>
  5. #include <freertos/FreeRTOS.h>
  6. class SystemInfo {
  7. public:
  8. static size_t GetFlashSize();
  9. static size_t GetMinimumFreeHeapSize();
  10. static size_t GetFreeHeapSize();
  11. static std::string GetMacAddress();
  12. static std::string GetChipModelName();
  13. static esp_err_t PrintRealTimeStats(TickType_t xTicksToWait);
  14. };
  15. #endif // _SYSTEM_INFO_H_