39 lines
862 B
C++
39 lines
862 B
C++
/*
|
|
* UI State Manager Module
|
|
*
|
|
* Holds the debug flag (sent to Inst. Cluster, shows LVGL's performance overlay).
|
|
*/
|
|
|
|
#pragma once
|
|
|
|
#include <Arduino.h>
|
|
#include <lvgl.h>
|
|
|
|
namespace UIStateManager {
|
|
|
|
// ============================================================================
|
|
// PUBLIC API
|
|
// ============================================================================
|
|
|
|
/**
|
|
* @brief Initialize the UI State Manager
|
|
*
|
|
* This function:
|
|
* - Initializes internal state tracking variables
|
|
*/
|
|
void init();
|
|
|
|
/**
|
|
* @brief Enable or disable debug mode (LVGL performance and memory monitors)
|
|
* @param enabled True to enable debug monitors, false to disable
|
|
*/
|
|
void setDebugEnabled(bool enabled);
|
|
|
|
/**
|
|
* @brief Get current debug mode state
|
|
* @return True if debug mode is enabled, false otherwise
|
|
*/
|
|
bool isDebugEnabled();
|
|
|
|
} // namespace UIStateManager
|