|
CDC Badge OS
Firmware for the CDC Badge v1.0 hardware security key
|
Centralized key-code constants for cdc_views. More...
Namespaces | |
| namespace | settings |
| namespace | layout |
| Centralized layout constants for cdc_views. | |
| namespace | render |
Classes | |
| struct | UiDeps |
| class | SleepManager |
| class | BlePairingPromptView |
| class | BlePairingView |
| Discoverable/pairing-mode screen. More... | |
| class | LockScreenView |
| class | PinChangeView |
| struct | WifiWizard |
| struct | WifiConfig |
| class | WifiHandlers |
| struct | PendingPairing |
| struct | FixedMenuEntry |
| class | BleScanView |
| ListView for the BLE scan results that drives async name resolution while visible and cancels it when the view closes. More... | |
| struct | FixedExpertEntry |
| struct | WifiItem |
| One scanned Wi-Fi network entry displayed in the scan list. More... | |
| struct | I18nEntry |
| Single English translation entry. More... | |
| struct | OverlayLanguage |
| Internationalization singleton. More... | |
| class | I18n |
| class | IView |
| class | ViewBase |
| struct | PsramCjsonScope |
| Routes cJSON allocations to PSRAM for the lifetime of the scope. More... | |
| class | ViewStack |
| class | CanvasView |
| Generic canvas view exposed to WASM plugins for custom UIs. More... | |
| class | ColorPickerView |
| Monochrome RGB color picker. More... | |
| class | ConfirmView |
| struct | ContextMenuItem |
| class | ContextMenuView |
| class | DateInputView |
| class | InfoView |
| struct | ListItem |
| class | ListView |
| class | MessageBox |
| class | PasswordT9View |
| T9 input variant for secrets: displays asterisks instead of letters and offers a long-press reveal toggle. More... | |
| class | PinEntryView |
| class | QRCodeView |
| class | SliderView |
| class | T9InputView |
| class | TimeInputView |
| class | ToastView |
| class | Console |
Typedefs | |
| using | BleListenerToken = hal::IBluetoothController::ListenerToken |
| using | BackupEntryHandler = bool (*)(const cJSON* entry, void* user) |
| Per-entry restore callback for importJsonArray(). | |
Functions | |
| void | ui_init (const UiDeps &deps) |
| Initializes App UI, builds all core views, and wires callbacks. | |
| void | ui_on_modules_ready () |
| Refreshes module-backed menus once module startup is complete. | |
| void | ui_rebuild_menus () |
| Rebuilds dynamic UI menus. | |
| void | ui_process (uint32_t nowMs) |
| Main UI tick: input processing, timeouts, status updates, and rendering. | |
| void | rebootIntoBootloader () |
| Reboots the device into USB download (bootloader) mode. | |
| void | showHardwareInfo () |
| Opens hardware info screen using shared info view. | |
| StatusIcon | operator| (StatusIcon a, StatusIcon b) |
| StatusIcon | operator& (StatusIcon a, StatusIcon b) |
| StatusIcon & | operator|= (StatusIcon &a, StatusIcon b) |
| static uint8_t | getPluginsIndex () |
| Returns main-menu index of the fixed "Plugins" item. | |
| static uint8_t | getToolsIndex () |
| Returns main-menu index of the fixed "Tools" item. | |
| static uint8_t | getSettingsIndex () |
| Returns main-menu index of the fixed "Settings" item. | |
| static uint8_t | getMainMenuCount () |
| Returns effective main-menu item count including fixed entries. | |
| static void | onUnlockRequested () |
| Starts unlock flow from lock screen. | |
| static bool | onPinVerify (const char *pin) |
| Verifies entered PIN via PinManager. | |
| static void | onPinSuccess () |
| Handles successful unlock and transitions to main menu. | |
| static void | onMainMenuSelect (uint16_t index, void *userData) |
| Handles main-menu item selection. | |
| static void | onToolsSelect (uint16_t index, void *userData) |
| Handles tools-menu item selection. | |
| static void | onSettingsSelect (uint16_t index, void *userData) |
| Handles settings-menu item selection. | |
| static void | onLanguageSelect (uint16_t index, void *userData) |
| Handles language-menu item selection. | |
| static void | rebuildLanguageMenu () |
| Rebuilds the language picker from the overlay files present. | |
| static void | rebuildMenuLabels () |
| Rebuilds labels for translatable menus after language change. | |
| static void | onInactivityTimeout () |
| Callback invoked when inactivity timeout is reached. | |
| static void | clearKeypadBuffer () |
| Drains buffered keypad events. | |
| void | drawSignalBars (Gdey029T94 *gfx, int x, int y, int8_t rssi, bool inverted) |
| Draws RSSI signal bars using the shared lock-screen visual style. | |
| static void | updateStatusIcon (StatusIcon icon, bool active, bool &last) |
| Updates a single boolean-driven status icon on the lock screen. | |
| static void | updateBatteryIndicator () |
| Updates the battery percentage indicator on the lock screen. | |
| void | updatePowerStatusIcons () |
| Synchronizes lock-screen status icons with current hardware state. | |
| static void | updateLockScreenClock () |
| Updates lock-screen clock/date once per minute while lock screen is visible. | |
| static bool | onDuressPinSet (const char *currentPin, const char *newPin) |
| PinChangeView change-callback for the duress-PIN setup flow. | |
| void | showDuressPinSetup () |
| Opens the duress / self-destruct PIN setup wizard. | |
| static void | performAntiBlockLock () |
| Anti-block instant lock: force the badge into a clean locked state. | |
| void | rebuildMainMenu () |
| Rebuilds main menu entries including dynamically provided modules. | |
| static uint8_t | toolsBluetoothIcon () |
| void | rebuildToolsMenu () |
| Rebuilds tools menu entries including dynamic module tools. | |
| bool | isBadgeLocked () |
| Returns whether the badge is currently locked (showing lock screen with no menu above). | |
| static void | onBleNumericComparison (uint16_t connHandle, uint32_t passkey) |
| Numeric-comparison pairing request, invoked on the nimble_host task. | |
| static void | onBlePairingRequestEvent (const core::Event &evt) |
| Main-task handler for a deferred numeric-comparison pairing request. | |
| void | prepareForBootloaderReset () |
| Puts the badge into a quiet pre-reset state. | |
| void | showWifiMainMenu () |
| Shows top-level Wi-Fi menu and reloads stored configuration. | |
| void | rebuildWifiMainMenu () |
| Rebuilds top-level Wi-Fi menu items and dynamic module extensions. | |
| void | showBluetoothMenu () |
| Shows top-level Bluetooth menu. | |
| void | rebuildBluetoothMenu () |
| Rebuilds Bluetooth menu entries and dynamic module items. | |
| void | msgTransferUiInit () |
| void | msgTransferUiProcess (uint32_t nowMs) |
| void | showBeaconMenu () |
| void | showMsgBeaconScan () |
| void | showExpertMenu () |
| Shows expert menu and initial warning toast. | |
| void | showModulesView () |
| Shows module management list view. | |
| void | onModuleErrorEvent (const core::Event &evt) |
| Displays toast notification for module error events. | |
| void | showBackupMenu () |
| Shows the Backup submenu (Export / Import / Delete). | |
| void | registerBackupSerialCommand () |
| Registers the AUTH-gated BACKUP serial command. | |
| static void | onBluetoothMenuSelect (uint16_t index, void *userData) |
| Handles Bluetooth menu selection. | |
| static void | toggleBluetoothEnable () |
| Toggles BLE controller enabled state. | |
| static void | showBluetoothStatus () |
| Shows BLE status and adapter information. | |
| static void | startBluetoothScan () |
| Starts BLE scan and opens result list. | |
| static void | showPairedDevices () |
| Shows the list of paired (bonded) devices. | |
| static bool | renderBleRow (Gdey029T94 *gfx, const ListItem &item, uint16_t index, int x, int y, int w, int h, bool selected, void *userCtx) |
| Renders one BLE scan row with signal bars and RSSI text. | |
| static void | sortBleScanResults () |
| Sorts BLE scan results by RSSI descending. | |
| static void | bleResolveStop () |
| static void | bleResolveBeginNext (uint32_t nowMs) |
| Starts resolving the next device that still shows its MAC. | |
| static void | bleResolveMac (const hal::BleScanResult &d, char *out, size_t n) |
| Formats a scan result's MAC the same way as the no-name fallback. | |
| static bool | bleDeviceNeedsName (uint8_t i) |
| True when the row still shows the MAC fallback (no name yet). | |
| static void | bleResolveClearEvents () |
| static void | rOnConnect (uint16_t connHandle) |
| static void | rOnDisconnect (uint16_t connHandle, int) |
| static void | rOnServiceDiscovered (uint16_t connHandle, const hal::IBluetoothController::DiscoveredService *svc, bool complete) |
| static void | rOnCharRead (uint16_t connHandle, uint16_t, const uint8_t *data, uint16_t len) |
| static void | bleResolveCleanupToSettle (uint32_t nowMs) |
| Tears down the current attempt and waits briefly for a clean stack. | |
| static void | bleResolveStart () |
| static void | bleResolveTick (uint32_t nowMs) |
| static void | rebuildPairedList () |
| Rebuilds the paired-device list from the current bond store. | |
| static void | onForgetConfirm (void *) |
| Confirmed-forget handler: unpairs the selected device and refreshes. | |
| static void | onPairedSelect (uint16_t index, void *userData) |
| Asks for confirmation to forget the selected paired device. | |
| static void | runSystemTest () |
| Opens hardware information/system-test screen. | |
| static void | runTropicCacheRebuild () |
| Rebuilds cached TROPIC metadata and reports operation result. | |
| static void | runTropicCacheCleanup () |
| Cleans cached TROPIC metadata and reports operation result. | |
| static void | enterShipModeMenu () |
| Prompts to confirm ship-mode entry from the expert menu. | |
| static void | rebuildModulesView () |
| Rebuilds module status list view content. | |
| static void | onModuleRetryConfirm (void *userData) |
| Retries failed module initialization after user confirmation. | |
| static void | onModuleSelect (uint16_t index, void *userData) |
| Handles module list selection for retry/toggle behavior. | |
| static void | onShipModeConfirm (void *) |
| Disconnects the battery (ship mode) after user confirmation. | |
| static void | rebuildExpertMenu () |
| Rebuilds expert menu item list including module-provided entries. | |
| static void | onExpertMenuSelect (uint16_t index, void *userData) |
| Handles expert menu selection actions. | |
| static void | bootloaderResetTask (void *) |
| Worker that detaches USB, arms the download-boot bit and triggers a hard system reset. | |
| static void | buildHardwareInfoText (char *buf, size_t bufSize) |
| Builds localized hardware info text into a caller-provided buffer. | |
| static void | onLightMenuCallback () |
| Context-menu callback toggling lock-screen backlight mode. | |
| static void | onWifiToggleCallback () |
| Context-menu callback toggling WiFi on/off via the user intent flag. | |
| static void | moduleContextCallback0 () |
| Wrapper callback for module context item at index 0. | |
| static void | moduleContextCallback1 () |
| Wrapper callback for module context item at index 1. | |
| static void | moduleContextCallback2 () |
| Wrapper callback for module context item at index 2. | |
| static void | moduleContextCallback3 () |
| Wrapper callback for module context item at index 3. | |
| static void | moduleContextCallback4 () |
| Wrapper callback for module context item at index 4. | |
| static void | moduleContextCallback5 () |
| Wrapper callback for module context item at index 5. | |
| static void | moduleContextCallback6 () |
| Wrapper callback for module context item at index 6. | |
| static void | pluginContextCallback0 () |
| static void | pluginContextCallback1 () |
| static void | pluginContextCallback2 () |
| static void | pluginContextCallback3 () |
| static void | onWifiMainSelect (uint16_t index, void *userData) |
| Handles top-level Wi-Fi menu selection. | |
| static void | wifiConnect () |
| Connects using saved Wi-Fi configuration. | |
| static void | wifiSetup () |
| Starts Wi-Fi setup wizard flow. | |
| static void | wifiShowDetails () |
| Shows Wi-Fi details/info screen. | |
| static void | wifiDisconnect () |
| Disconnects active Wi-Fi session. | |
| static void | wifiNtpSync () |
| Runs NTP synchronization via Wi-Fi. | |
| static void | wifiStartScan () |
| Starts network scan and opens scan result list. | |
| static void | onWifiScanSelect (uint16_t index, void *userData) |
| Handles scan result selection. | |
| static void | sortWifiScanResults () |
| Sorts scan results by RSSI descending. | |
| static void | wifiShowAuthMenu () |
| Opens security/authentication selection menu. | |
| static void | onWifiAuthSelect (uint16_t index, void *userData) |
| Handles authentication mode selection. | |
| static void | wifiShowPasswordInput () |
| Opens password input for selected network. | |
| static void | onWifiPasswordEntered (const char *password) |
| Stores entered password and continues wizard. | |
| static void | wifiShowIpModeMenu () |
| Opens IP mode selection menu (DHCP/static). | |
| static void | onWifiIpModeSelect (uint16_t index, void *userData) |
| Handles IP mode selection. | |
| static void | wifiShowIpInputField (const char *title, char *target, size_t targetSize, T9InputView::SaveCallback onComplete) |
| Opens generic IP-related text input step. | |
| static void | onWifiStaticIpEntered (const char *ip) |
| Validates and stores static IP input. | |
| static void | onWifiGatewayEntered (const char *gateway) |
| Validates and stores gateway input. | |
| static void | onWifiNetmaskEntered (const char *netmask) |
| Validates and stores netmask input. | |
| static void | wifiFinishSetup () |
| Persists wizard config and attempts connection. | |
| static void | drawWifiLockIcon (Gdey029T94 *gfx, int x, int y, bool inverted) |
| Draws padlock icon for secured Wi-Fi networks. | |
| static bool | renderWifiRow (Gdey029T94 *gfx, const ListItem &item, uint16_t index, int x, int y, int w, int h, bool selected, void *userCtx) |
| Custom list-row renderer for Wi-Fi scan entries. | |
| cdc::core::IModule::BackupResult | importJsonArray (const cJSON *array, BackupEntryHandler handler, void *user) |
| Iterates a JSON backup array best-effort and tallies the outcome. | |
| const char * | tr (const char *key) |
| Look up a translation by string key. | |
| static bool | isListView (const IView *view) |
| Checks whether a view is a ListView by runtime name. | |
| void | showConfirm (const char *message, ConfirmView::ConfirmCallback onConfirm, ConfirmView::CancelCallback onCancel, ConfirmView::Icon icon, void *userData) |
| Shows a shared modal confirmation dialog instance. | |
| void | askConfirm (const char *message, ConfirmView::ConfirmCallback onYes, void *userData=nullptr) |
| ContextMenuView * | showContextMenu (const char *title, const ContextMenuItem *items, uint8_t count) |
| Shows the shared context menu instance as modal. | |
| void | hideContextMenu () |
| Hides the active context menu modal. | |
| const GFXfont * | getGfxFont (FontId id) |
| Resolves a FontId to its underlying GFX font pointer. | |
| const GFXfont * | getGfxFont (uint8_t id) |
| Integer overload, for plugin/host-API bridges that ship uint8_t. | |
| InfoView * | showInfo (const char *title, const char *text, const char *hint) |
| Shows a shared info view instance and pushes it onto the view stack. | |
| ListView * | showListView (const char *title, const ListItem *items, uint16_t count, ListView::SelectCallback onSelect, const char *hint) |
| Shows a shared list view instance with selection callback. | |
| void | showMessage (const char *message, MessageIcon icon, uint32_t timeoutMs, MessageBox::CloseCallback onClose) |
| Shows the shared modal message box. | |
| void | showSuccess (const char *message, uint32_t timeoutMs=2000) |
| void | showError (const char *message, uint32_t timeoutMs=2000) |
| void | hideMessage () |
| Hides the currently shown modal message box. | |
| PinEntryView * | showPinEntry (const char *title, PinEntryView::VerifyCallback onVerify, PinEntryView::SuccessCallback onSuccess, uint8_t maxLength, uint8_t minLength, uint8_t maxAttempts) |
| Shows a shared PIN entry view instance. | |
| QRCodeView * | showQRCode (const char *data, const char *title, const char *subtitle, const char *hint) |
| Shows a shared QR code view instance. | |
| SliderView * | showSlider (const char *title, uint16_t minVal, uint16_t maxVal, uint16_t initial, uint16_t step, const char *unit, SliderView::SaveCallback onSave, SliderView::ChangeCallback onChange) |
| Shows a shared slider view instance. | |
| T9InputView * | showT9Input (const char *title, const char *initialText, T9InputView::SaveCallback onSave, uint16_t maxLen) |
| Shows a shared T9 input view instance. | |
| void | showToast (const char *message, uint16_t durationMs) |
| Shows a plain toast message. | |
| void | showToastSuccess (const char *message, uint16_t durationMs) |
| Shows a success toast message. | |
| void | showToastError (const char *message, uint16_t durationMs) |
| Shows an error toast message. | |
| void | showToastInfo (const char *message, uint16_t durationMs) |
| Shows an informational toast message. | |
| void | showToastTask (const char *message, uint16_t durationMs) |
| Shows a task/progress toast message. | |
| void | showToastAlert (const char *message, uint16_t durationMs) |
| Shows an alert toast message. | |
| void | showToastAlertSticky (const char *message) |
| Shows a non-dismissible alert toast. | |
| static void | qrDisplayCallback (esp_qrcode_handle_t qrcode) |
| Renders or measures the QR code through the ESP QR callback. | |
| static void | showToastInternal (const char *message, ToastView::Icon icon, uint16_t durationMs, bool dismissible=true) |
| Shows the shared toast instance with custom icon and behavior. | |
Variables | |
| static constexpr uint32_t | LIGHT_SLEEP_TIMEOUT_MS = 120 * 1000 |
| static constexpr uint8_t | MAX_SLEEP_INHIBITORS = 8 |
| static constexpr uint32_t | DEEP_SLEEP_HOLD_MS = 5000 |
| static constexpr uint32_t | WIFI_CONNECT_TIMEOUT_DEFAULT_MS = 15000 |
| static constexpr uint32_t | WIFI_CONNECT_TIMEOUT_MIN_MS = 3000 |
| static constexpr uint32_t | WIFI_CONNECT_TIMEOUT_MAX_MS = 60000 |
| static constexpr uint32_t | WIFI_SCAN_TIMEOUT_MS = 10000 |
| static constexpr uint32_t | NTP_SYNC_TIMEOUT_MS = 10000 |
| static constexpr uint8_t | MAIN_MENU_MAX_ITEMS = 16 |
| Menu sizing and inactivity timeout constants. | |
| static constexpr uint8_t | TOOLS_MAX_ITEMS = 16 |
| static constexpr uint32_t | INACTIVITY_TIMEOUT_MS = 5 * 60 * 1000 |
| static constexpr uint16_t | MAX_LANGUAGES = 16 |
| Upper bound on languages shown in the picker (English + overlay files). | |
| static LockScreenView * | s_lockScreen = nullptr |
| Static UI state and lazily constructed view pointers. | |
| static PinEntryView * | s_pinEntry = nullptr |
| static ListView * | s_mainMenu = nullptr |
| static ListView * | s_toolsMenu = nullptr |
| static ListView * | s_settingsMenu = nullptr |
| static SliderView * | s_brightnessSlider = nullptr |
| static SliderView * | s_sleepSlider = nullptr |
| static SliderView * | s_timezoneSlider = nullptr |
| static ListView * | s_languageMenu = nullptr |
| static DateInputView * | s_dateInput = nullptr |
| static TimeInputView * | s_timeInput = nullptr |
| static PinChangeView * | s_pinChangeView = nullptr |
| static PinChangeView * | s_duressPinView = nullptr |
| static BlePairingPromptView * | s_pairingPrompt = nullptr |
| static cdc::plugin_manager::PluginListView * | s_pluginListView = nullptr |
| static PendingPairing | s_pendingPairing |
| static SemaphoreHandle_t | s_blePendingMutex = nullptr |
| static UiDeps | s_deps = {} |
| Runtime dependencies provided during ui_init. | |
| static ListItem | s_mainMenuItems [MAIN_MENU_MAX_ITEMS] |
| Main-menu backing storage for module and fixed menu entries. | |
| static core::ModuleMenuItem | s_mainMenuModuleItems [MAIN_MENU_MAX_ITEMS] |
| static uint8_t | s_mainMenuPluginCount = 0 |
| static ListItem | s_toolsItems [TOOLS_MAX_ITEMS] |
| Tools-menu backing storage for fixed and module entries. | |
| static core::ModuleMenuItem | s_toolsModuleItems [TOOLS_MAX_ITEMS] |
| static uint8_t | s_toolsModuleCount = 0 |
| static ListItem | s_settingsItems [SETTINGS_IDX_COUNT] |
| Settings menu backing storage. | |
| static ListItem | s_languageItems [MAX_LANGUAGES] |
| Language menu backing storage (filled dynamically from overlay files). | |
| static char | s_languageCodes [MAX_LANGUAGES][8] |
| static uint16_t | s_languageCount = 0 |
| static int8_t | s_lastMinute = -1 |
| Last rendered minute for lock-screen clock throttling. | |
| static bool | s_lastUsbConnected = false |
| Last known status-icon inputs to avoid redundant updates. | |
| static bool | s_lastCharging = false |
| static bool | s_lastWifiConnected = false |
| static bool | s_lastBleEnabled = false |
| static bool | s_lastBackgroundPlugin = false |
| static bool | s_lastBatteryPresent = false |
| static constexpr uint32_t | BATTERY_SAMPLE_INTERVAL_MS = 30000 |
| static uint32_t | s_lastBatterySampleMs = 0 |
| static bool | s_ignoreKeyUntilRelease = false |
| Prevents stale key events directly after unlock transition. | |
| static std::atomic< bool > | s_antiBlockLockRequested {false} |
| static const FixedMenuEntry | kToolsFixed [] |
| static constexpr uint8_t | TOOLS_FIXED_COUNT |
| static constexpr uint32_t | TOAST_DURATION_SHORT_MS = 1000 |
| static constexpr uint32_t | TOAST_DURATION_MEDIUM_MS = 1500 |
| static constexpr uint32_t | TOAST_DURATION_LONG_MS = 2500 |
| static const char * | TAG = "BleMenu" |
| static constexpr uint8_t | BT_MENU_MAX_ITEMS = 16 |
| static constexpr uint8_t | BLE_MAX_SCAN_RESULTS = hal::IBluetoothController::MAX_SCAN_RESULTS |
| static constexpr uint8_t | BLE_MAX_BONDS = hal::IBluetoothController::MAX_BONDED_DEVICES |
| static constexpr uint32_t | BLE_SCAN_TIMEOUT_MS = 8000 |
| static ListView * | s_bluetoothMenu = nullptr |
| Bluetooth menu and scan state. | |
| static ListItem | s_bluetoothItems [BT_MENU_MAX_ITEMS] |
| static core::ModuleMenuItem | s_bluetoothModuleItems [12] |
| static uint8_t | s_bluetoothModuleCount = 0 |
| static ListView * | s_bleScanView = nullptr |
| BLE scan result list state. | |
| static ListItem | s_bleScanItems [BLE_MAX_SCAN_RESULTS] |
| static hal::BleScanResult | s_bleScanResults [BLE_MAX_SCAN_RESULTS] |
| static uint8_t | s_bleScanCount = 0 |
| static ListView * | s_pairedView = nullptr |
| Paired (bonded) device list state. | |
| static ListItem | s_pairedItems [BLE_MAX_BONDS] |
| static hal::BleBondInfo | s_pairedBonds [BLE_MAX_BONDS] |
| static char | s_pairedLabels [BLE_MAX_BONDS][24] |
| static uint8_t | s_pairedCount = 0 |
| static hal::BleBondInfo | s_forgetTarget = {} |
| static constexpr size_t | BLE_STATUS_BUF_SIZE = 256 |
| PSRAM-backed text buffer used for BLE status details. | |
| static char | s_bleStatusBuf [BLE_STATUS_BUF_SIZE] |
| static constexpr uint16_t | BLE_GAP_SVC_UUID = 0x1800 |
| static constexpr uint16_t | BLE_DEV_NAME_UUID = 0x2A00 |
| static constexpr uint32_t | BLE_RESOLVE_DEVICE_TIMEOUT_MS = 5000 |
| static constexpr uint32_t | BLE_RESOLVE_SETTLE_TIMEOUT_MS = 800 |
| static BleResolvePhase | s_resolvePhase = BleResolvePhase::Idle |
| static bool | s_resolveActive = false |
| static uint8_t | s_resolveIndex = 0 |
| static uint16_t | s_resolveConn = 0xFFFF |
| static uint16_t | s_resolveNameHandle = 0 |
| static uint32_t | s_resolveDeviceStartMs = 0 |
| static uint32_t | s_resolveSettleStartMs = 0 |
| static volatile bool | s_evtConnected = false |
| static volatile bool | s_evtDiscovered = false |
| static volatile bool | s_evtGotName = false |
| static volatile bool | s_evtDisconnected = false |
| static volatile uint16_t | s_evtConnHandle = 0xFFFF |
| static volatile uint16_t | s_evtNameHandle = 0 |
| static char | s_resolveNameBuf [32] |
| static constexpr BleListenerToken | kInvalidListener = hal::IBluetoothController::INVALID_LISTENER |
| static BleListenerToken | s_tokResConn = kInvalidListener |
| static BleListenerToken | s_tokResDisc = kInvalidListener |
| static BleListenerToken | s_tokResSvc = kInvalidListener |
| static BleListenerToken | s_tokResRead = kInvalidListener |
| static constexpr uint8_t | EXPERT_MAX_ITEMS = 16 |
| Expert menu sizing constants. | |
| static constexpr uint8_t | MODULES_VIEW_MAX = 16 |
| static const FixedExpertEntry | kExpertTop [] |
| static const FixedExpertEntry | kExpertBottom [] |
| static constexpr uint8_t | EXPERT_TOP_COUNT = sizeof(kExpertTop) / sizeof(kExpertTop[0]) |
| static constexpr uint8_t | EXPERT_BOTTOM_COUNT = sizeof(kExpertBottom) / sizeof(kExpertBottom[0]) |
| static constexpr uint8_t | EXPERT_FIXED_COUNT = EXPERT_TOP_COUNT + EXPERT_BOTTOM_COUNT |
| static ListView * | s_expertMenu = nullptr |
| Static view pointers and menu item storage for expert/module views. | |
| static ListItem | s_expertItems [EXPERT_MAX_ITEMS] |
| static core::ModuleMenuItem | s_expertModuleItems [EXPERT_MAX_ITEMS - EXPERT_FIXED_COUNT] |
| static uint8_t | s_expertModuleCount = 0 |
| static ListView * | s_modulesView = nullptr |
| static ListItem | s_modulesItems [MODULES_VIEW_MAX] |
| static char | s_moduleLabels [MODULES_VIEW_MAX][48] |
| static LockScreenView * | s_lockScreenInstance = nullptr |
| Static lock-screen instance pointer for C-style callbacks. | |
| static constexpr uint8_t | MAX_CONTEXT_ITEMS = 12 |
| Storage for dynamic context-menu items contributed by modules. | |
| static constexpr uint8_t | MAX_PLUGIN_ITEMS = 4 |
| static constexpr uint8_t | MAX_MODULE_CONTEXT_ITEMS = 7 |
| static ContextMenuItem | s_contextItems [MAX_CONTEXT_ITEMS] |
| static core::LockScreenContextItem | s_moduleContextItems [MAX_MODULE_CONTEXT_ITEMS] |
| static uint8_t | s_moduleContextCount = 0 |
| static cdc::plugin_manager::PluginManager::LockscreenItem | s_pluginContextItems [MAX_PLUGIN_ITEMS] |
| static uint8_t | s_pluginContextCount = 0 |
| static void(*const | s_moduleCallbacks [])() |
| static void(*const | s_pluginCallbacks [MAX_PLUGIN_ITEMS])() |
| static constexpr uint8_t | WIFI_MAX_NETWORKS = hal::IWifiController::MAX_SCAN_RESULTS |
| Wi-Fi menu size limits. | |
| static constexpr uint8_t | WIFI_MENU_MAX_ITEMS = 16 |
| static constexpr uint8_t | WIFI_MENU_FIXED_COUNT = WIFI_IDX_COUNT |
| Static view pointers and wizard/scan state. | |
| static ListView * | s_wifiMainMenu = nullptr |
| static ListView * | s_wifiScanView = nullptr |
| static ListView * | s_wifiAuthMenu = nullptr |
| static ListView * | s_wifiIpMenu = nullptr |
| static ListItem | s_wifiMainItems [WIFI_MENU_MAX_ITEMS] |
| static core::ModuleMenuItem | s_wifiModuleItems [12] |
| static uint8_t | s_wifiModuleCount = 0 |
| static ListItem | s_wifiAuthItems [WIFI_AUTH_COUNT] |
| static ListItem | s_wifiIpItems [WIFI_IP_COUNT] |
| static ListItem | s_wifiScanItems [WIFI_MAX_NETWORKS+1] |
| static char | s_wifiManualLabel [48] |
| static WifiItem | s_wifiScanResults [WIFI_MAX_NETWORKS] |
| static uint8_t | s_wifiScanCount = 0 |
| static const char * | s_wifiAuthLabels [WIFI_AUTH_COUNT] |
| static constexpr size_t | WIFI_DETAILS_BUF_SIZE = 512 |
| PSRAM-backed text buffer used for Wi-Fi details view. | |
| static char | s_wifiDetailsBuf [WIFI_DETAILS_BUF_SIZE] |
| static const char * | TAG = "I18n" |
| constexpr uint8_t | kFontIdCount = 5 |
| Number of entries in the canonical font table. | |
| static constexpr char | KEY_UP = '2' |
| Move selection up (numeric '2'). | |
| static constexpr char | KEY_DOWN = '8' |
| Move selection down (numeric '8'). | |
| static constexpr char | KEY_SELECT = '5' |
| Center select / digit '5'. | |
| static constexpr char | KEY_YES = 'Y' |
| Confirm / OK / Save. | |
| static constexpr char | KEY_NO = 'N' |
| Cancel / Back / Backspace. | |
| static constexpr char | KEY_MENU = '3' |
| Open context menu / digit '3'. | |
| static ConfirmView | s_sharedConfirm |
| Convenience helper functions. | |
| static ContextMenuView | s_sharedContextMenu |
| Convenience helper functions. | |
| static InfoView | s_sharedInfoView |
| Convenience factory/helper function. | |
| static ListView | s_sharedListView |
| Convenience factory/helper function. | |
| static MessageBox | s_sharedMessageBox |
| Convenience helper functions. | |
| static constexpr int | TITLE_Y = 5 |
| Layout constants mirror the ones used by T9InputView. | |
| static constexpr int | TEXT_Y = 50 |
| static constexpr int | TEXT_MARGIN = 10 |
| static PinEntryView | s_sharedPinEntry |
| Convenience factory/helper function. | |
| struct { | |
| int cdc::ui::offsetX | |
| int cdc::ui::offsetY | |
| int cdc::ui::scale | |
| int cdc::ui::actualSize | |
| bool cdc::ui::sizingPass | |
| Gdey029T94 * cdc::ui::display | |
| } | s_qrCtx |
| QR rendering context used by callback-driven rendering. | |
| static QRCodeView | s_sharedQRCodeView |
| Convenience factory/helper function. | |
| static SliderView | s_sharedSlider |
| Convenience factory/helper function. | |
| static T9InputView | s_sharedT9Input |
| Convenience factory/helper function. | |
| static ToastView | s_sharedToast |
| Convenience helper functions. | |
Centralized key-code constants for cdc_views.
Canonical font table shared by firmware UI and plugin host API.
Internal header shared between AppUi sub-files. Not part of the public API - only used by AppUi*.cpp and *MenuUi.cpp files.
The badge uses a TCA9535-driven 12-key keypad with the following physical layout:
1 2 3 4 5 6 7 8 9 N 0 Y
Across the views these characters carry conventional UI meanings. Using named constants keeps key handlers readable and makes it easier to retarget the badge to a different keypad in the future.
Notes:
Not every view consumes every key; views that do not need a given action simply ignore it.
ConfirmView Implementation
Y/N confirmation dialog
ToastView Implementation
Temporary overlay message with auto-dismiss
| using cdc::ui::BackupEntryHandler = bool (*)(const cJSON* entry, void* user) |
Per-entry restore callback for importJsonArray().
Receives one element of the backup array and performs the module-specific field mapping plus upsert through the module's own storage path.
| entry | One element of the JSON array (not guaranteed to be an object). |
| user | Opaque pointer forwarded from importJsonArray(). |
Definition at line 18 of file BackupImport.h.
Definition at line 357 of file BluetoothMenuUi.cpp.
|
strong |
| Enumerator | |
|---|---|
| Idle | |
| Begin | |
| Connecting | |
| Discovering | |
| Reading | |
| Settle | |
Definition at line 338 of file BluetoothMenuUi.cpp.
Bluetooth fixed menu indices and capacity limits.
| Enumerator | |
|---|---|
| BT_IDX_ENABLE | |
| BT_IDX_PAIR | |
| BT_IDX_PAIRED | |
| BT_IDX_STATUS | |
| BT_IDX_SCAN | |
| BT_IDX_BEACON | |
| BT_IDX_FORGET_BONDS | |
| BT_IDX_FIXED_COUNT | |
Definition at line 25 of file BluetoothMenuUi.cpp.
|
strong |
Canonical font identifier shared by firmware UI and plugin host API.
The integer values are stable and form the wire format used by the WASM plugin host API (HOST_FONT_*). Do not reorder.
|
strong |
| enum cdc::ui::MainMenuFixed : uint8_t |
|
strong |
MessageBox Icon Types
| Enumerator | |
|---|---|
| NONE | |
| SUCCESS | |
| ERROR | |
| INFO | |
| WARNING | |
Definition at line 11 of file MessageBox.h.
|
strong |
Status icons for lock screen
| Enumerator | |
|---|---|
| NONE | |
| LOCK | |
| DEEP_SLEEP | |
| LIGHT_SLEEP | |
| BACKLIGHT | |
| USB | |
| BLE | |
| WIFI | |
| SAO | |
| CHARGING | |
| NO_BATTERY | |
| CAFFEINATED | |
| BACKGROUND | |
Definition at line 20 of file LockScreenView.h.
| enum cdc::ui::WifiAuthIdx |
| Enumerator | |
|---|---|
| WIFI_AUTH_WPA2 | |
| WIFI_AUTH_WPA_WPA2 | |
| WIFI_AUTH_WPA3 | |
| WIFI_AUTH_WPA | |
| WIFI_AUTH_OPEN | |
| WIFI_AUTH_WEP | |
| WIFI_AUTH_COUNT | |
Definition at line 46 of file WifiMenuUi.cpp.
| Enumerator | |
|---|---|
| WIFI_IP_DHCP | |
| WIFI_IP_STATIC | |
| WIFI_IP_COUNT | |
Definition at line 56 of file WifiMenuUi.cpp.
Fixed Wi-Fi menu and wizard index enums.
| Enumerator | |
|---|---|
| WIFI_IDX_CONNECT | |
| WIFI_IDX_SETUP | |
| WIFI_IDX_DETAILS | |
| WIFI_IDX_NTP_SYNC | |
| WIFI_IDX_COUNT | |
Definition at line 38 of file WifiMenuUi.cpp.
|
inline |
Show a simple Y/N confirm and return result via callback Shorthand for common "Are you sure?" pattern
Definition at line 94 of file ConfirmView.h.
References cdc::ui::ConfirmView::QUESTION, and showConfirm().
Referenced by onBluetoothMenuSelect(), and onPairedSelect().
|
static |
True when the row still shows the MAC fallback (no name yet).
Definition at line 374 of file BluetoothMenuUi.cpp.
References bleResolveMac(), name, and s_bleScanResults.
Referenced by bleResolveBeginNext(), and bleResolveStart().
|
static |
Starts resolving the next device that still shows its MAC.
Definition at line 439 of file BluetoothMenuUi.cpp.
References bleDeviceNeedsName(), bleResolveBeginNext(), bleResolveClearEvents(), bleResolveStop(), Connecting, cdc::hal::getBluetoothControllerInstance(), LOG_I, LOG_W, s_bleScanCount, s_bleScanResults, s_resolveConn, s_resolveDeviceStartMs, s_resolveIndex, s_resolveNameHandle, s_resolvePhase, and TAG.
Referenced by bleResolveBeginNext(), and bleResolveTick().
|
static |
Tears down the current attempt and waits briefly for a clean stack.
Definition at line 427 of file BluetoothMenuUi.cpp.
References cdc::hal::getBluetoothControllerInstance(), s_evtDisconnected, s_resolveConn, s_resolvePhase, s_resolveSettleStartMs, and Settle.
Referenced by bleResolveTick().
|
static |
Definition at line 380 of file BluetoothMenuUi.cpp.
References s_evtConnected, s_evtConnHandle, s_evtDisconnected, s_evtDiscovered, s_evtGotName, and s_evtNameHandle.
Referenced by bleResolveBeginNext(), and bleResolveStart().
|
static |
Formats a scan result's MAC the same way as the no-name fallback.
Definition at line 368 of file BluetoothMenuUi.cpp.
References cdc::hal::BleScanResult::mac.
Referenced by bleDeviceNeedsName().
|
static |
Definition at line 466 of file BluetoothMenuUi.cpp.
References Begin, bleDeviceNeedsName(), bleResolveClearEvents(), cdc::hal::getBluetoothControllerInstance(), LOG_I, LOG_W, rOnCharRead(), rOnConnect(), rOnDisconnect(), rOnServiceDiscovered(), s_bleScanCount, s_resolveActive, s_resolveConn, s_resolveIndex, s_resolveNameHandle, s_resolvePhase, s_tokResConn, s_tokResDisc, s_tokResRead, s_tokResSvc, and TAG.
Referenced by cdc::ui::BleScanView::onEnter(), and cdc::ui::BleScanView::onResume().
|
static |
Definition at line 494 of file BluetoothMenuUi.cpp.
References cdc::hal::getBluetoothControllerInstance(), Idle, kInvalidListener, s_resolveActive, s_resolveConn, s_resolveNameHandle, s_resolvePhase, s_tokResConn, s_tokResDisc, s_tokResRead, and s_tokResSvc.
Referenced by bleResolveBeginNext(), bleResolveTick(), and cdc::ui::BleScanView::onExit().
|
static |
Definition at line 511 of file BluetoothMenuUi.cpp.
References Begin, BLE_GAP_SVC_UUID, BLE_RESOLVE_DEVICE_TIMEOUT_MS, BLE_RESOLVE_SETTLE_TIMEOUT_MS, bleResolveBeginNext(), bleResolveCleanupToSettle(), bleResolveStop(), Connecting, Discovering, cdc::hal::BleUuid::from16(), cdc::hal::getBluetoothControllerInstance(), Idle, LOG_I, LOG_W, Reading, s_bleScanResults, s_bleScanView, s_evtConnected, s_evtConnHandle, s_evtDisconnected, s_evtDiscovered, s_evtGotName, s_evtNameHandle, s_resolveActive, s_resolveConn, s_resolveDeviceStartMs, s_resolveIndex, s_resolveNameBuf, s_resolveNameHandle, s_resolvePhase, s_resolveSettleStartMs, Settle, and TAG.
Referenced by cdc::ui::BleScanView::onTick().
|
static |
Worker that detaches USB, arms the download-boot bit and triggers a hard system reset.
Definition at line 317 of file ExpertMenuUi.cpp.
Referenced by rebootIntoBootloader().
|
static |
Builds localized hardware info text into a caller-provided buffer.
| buf | Destination character buffer. |
| bufSize | Size of destination buffer. |
Definition at line 30 of file HardwareInfo.cpp.
References display, cdc::hal::FAST_CHARGE, cdc::hal::getBluetoothControllerInstance(), cdc::hal::getDisplayInstance(), cdc::hal::getEspHardwareInstance(), cdc::hal::getI2cBus0(), cdc::hal::getKeypadInstance(), cdc::hal::getPowerManagerInstance(), cdc::hal::getSecureElementInstance(), cdc::hal::getWifiControllerInstance(), cdc::core::INITIALIZED, cdc::core::CpuStats::loadOverWindow(), cdc::hal::PRE_CHARGE, cdc::core::STARTED, and tr().
Referenced by showHardwareInfo().
|
static |
Drains buffered keypad events.
Clears pending keypad key events.
Definition at line 313 of file AppUi.cpp.
References cdc::hal::KEY_NONE, and s_deps.
Referenced by onInactivityTimeout(), onUnlockRequested(), performAntiBlockLock(), and ui_process().
| void cdc::ui::drawSignalBars | ( | Gdey029T94 * | gfx, |
| int | x, | ||
| int | y, | ||
| int8_t | rssi, | ||
| bool | inverted ) |
Draws RSSI signal bars using the shared lock-screen visual style.
| gfx | Display graphics context. |
| x | Left position. |
| y | Top reference position. |
| rssi | Signal strength in dBm. |
| inverted | Whether to draw inverted colors. |
Draw RSSI signal strength bars (used by WiFi and BLE scan views)
Definition at line 199 of file AppUi.cpp.
Referenced by renderBleRow(), and renderWifiRow().
|
static |
Draws padlock icon for secured Wi-Fi networks.
| gfx | Display graphics context. |
| x | Left position. |
| y | Top position. |
| inverted | Whether colors are inverted due to row selection. |
Definition at line 136 of file WifiMenuUi.cpp.
Referenced by renderWifiRow().
|
static |
Prompts to confirm ship-mode entry from the expert menu.
Definition at line 245 of file ExpertMenuUi.cpp.
References onShipModeConfirm(), showConfirm(), tr(), and cdc::ui::ConfirmView::WARNING.
| const GFXfont * cdc::ui::getGfxFont | ( | FontId | id | ) |
Resolves a FontId to its underlying GFX font pointer.
| id | Font identifier. |
Definition at line 26 of file Fonts.cpp.
References getGfxFont().
Referenced by getGfxFont(), host_text_pick_font_that_fits(), and cdc::ui::LockScreenView::render().
| const GFXfont * cdc::ui::getGfxFont | ( | uint8_t | id | ) |
Integer overload, for plugin/host-API bridges that ship uint8_t.
Definition at line 30 of file Fonts.cpp.
References kFontIdCount.
|
inlinestatic |
Returns effective main-menu item count including fixed entries.
Definition at line 166 of file AppUi.cpp.
References MAIN_MENU_FIXED_COUNT, and s_mainMenuPluginCount.
Referenced by rebuildMainMenu().
|
inlinestatic |
Returns main-menu index of the fixed "Plugins" item.
Definition at line 160 of file AppUi.cpp.
References MM_PLUGINS, and s_mainMenuPluginCount.
Referenced by onMainMenuSelect(), and rebuildMainMenu().
|
inlinestatic |
Returns main-menu index of the fixed "Settings" item.
Definition at line 164 of file AppUi.cpp.
References MM_SETTINGS, and s_mainMenuPluginCount.
Referenced by onMainMenuSelect(), and rebuildMainMenu().
|
inlinestatic |
Returns main-menu index of the fixed "Tools" item.
Definition at line 162 of file AppUi.cpp.
References MM_TOOLS, and s_mainMenuPluginCount.
Referenced by onMainMenuSelect(), and rebuildMainMenu().
| void cdc::ui::hideContextMenu | ( | ) |
Hides the active context menu modal.
Hide the context menu (if visible)
Definition at line 293 of file ContextMenuView.cpp.
References cdc::ui::ViewStack::hideModal(), and cdc::ui::ViewStack::instance().
Referenced by moduleContextCallback0(), moduleContextCallback1(), moduleContextCallback2(), moduleContextCallback3(), moduleContextCallback4(), moduleContextCallback5(), moduleContextCallback6(), cdc::plugin_manager::onCtxDisable(), cdc::plugin_manager::onCtxEnable(), cdc::plugin_manager::onCtxStart(), cdc::plugin_manager::onCtxStop(), cdc::mod_nvsedit::onDeleteKey(), cdc::mod_nvsedit::onDeleteNamespace(), cdc::ui::ContextMenuView::onKey(), onLightMenuCallback(), cdc::ui::ContextMenuView::onTick(), onWifiToggleCallback(), pluginContextCallback0(), pluginContextCallback1(), pluginContextCallback2(), and pluginContextCallback3().
| void cdc::ui::hideMessage | ( | ) |
Hides the currently shown modal message box.
Hide current message box (if visible)
Definition at line 222 of file MessageBox.cpp.
References cdc::ui::ViewStack::hideModal(), and cdc::ui::ViewStack::instance().
Referenced by cdc::ui::MessageBox::onKey(), and cdc::ui::MessageBox::onTick().
|
inline |
Iterates a JSON backup array best-effort and tallies the outcome.
Walks every element of array and invokes handler for each. A handler returning false (or a non-object element) is counted as failed; the loop never aborts early. The module-specific schema check and field mapping stay in the caller/handler.
| array | JSON array node (nullptr or non-array yields an empty tally). |
| handler | Per-entry mapping/upsert callback. |
| user | Opaque pointer forwarded to handler. |
Definition at line 33 of file BackupImport.h.
References cdc::core::IModule::BackupResult::failed, and cdc::core::IModule::BackupResult::imported.
Referenced by cdc::mod_2fa::TwoFaModule::importBackup(), cdc::mod_password::PasswordModule::importBackup(), and cdc::mod_vcard::VcardModule::importBackup().
| bool cdc::ui::isBadgeLocked | ( | ) |
Returns whether the badge is currently locked (showing lock screen with no menu above).
True if the lock screen is the only view on the stack (badge locked).
Definition at line 689 of file AppUi.cpp.
References cdc::ui::ViewStack::current(), cdc::ui::ViewStack::depth(), cdc::ui::ViewStack::instance(), and s_lockScreen.
Referenced by onBlePairingRequestEvent().
|
static |
Checks whether a view is a ListView by runtime name.
Definition at line 27 of file ViewStack.cpp.
References cdc::ui::IView::getName().
Referenced by cdc::ui::ViewStack::replace().
|
static |
Wrapper callback for module context item at index 0.
Definition at line 285 of file LockScreenView.cpp.
References hideContextMenu(), and s_moduleContextItems.
|
static |
Wrapper callback for module context item at index 1.
Definition at line 290 of file LockScreenView.cpp.
References hideContextMenu(), and s_moduleContextItems.
|
static |
Wrapper callback for module context item at index 2.
Definition at line 295 of file LockScreenView.cpp.
References hideContextMenu(), and s_moduleContextItems.
|
static |
Wrapper callback for module context item at index 3.
Definition at line 300 of file LockScreenView.cpp.
References hideContextMenu(), and s_moduleContextItems.
|
static |
Wrapper callback for module context item at index 4.
Definition at line 305 of file LockScreenView.cpp.
References hideContextMenu(), and s_moduleContextItems.
|
static |
Wrapper callback for module context item at index 5.
Definition at line 310 of file LockScreenView.cpp.
References hideContextMenu(), and s_moduleContextItems.
|
static |
Wrapper callback for module context item at index 6.
Definition at line 315 of file LockScreenView.cpp.
References hideContextMenu(), and s_moduleContextItems.
| void cdc::ui::msgTransferUiInit | ( | ) |
Definition at line 410 of file MsgTransferUi.cpp.
References cdc::core::BLE_CONSENT_REQUEST, cdc::core::BLE_EXCHANGE_COMPLETE, cdc::core::EventBus::eventMask(), cdc::core::EventBus::instance(), and cdc::core::EventBus::subscribe().
Referenced by ui_init().
| void cdc::ui::msgTransferUiProcess | ( | uint32_t | nowMs | ) |
Definition at line 419 of file MsgTransferUi.cpp.
References cdc::ui::ViewStack::hideModal(), cdc::ui::ViewStack::instance(), showToastInfo(), and tr().
Referenced by ui_process().
|
static |
Numeric-comparison pairing request, invoked on the nimble_host task.
| connHandle | BLE connection handle being paired. |
| passkey | Six-digit confirmation code shown by the remote host. |
Touches no UI: parks the request under s_blePendingMutex and defers the prompt to the main task via BLE_PAIRING_REQUEST. A second request arriving before the first is consumed is rejected inline.
Definition at line 703 of file AppUi.cpp.
References cdc::core::BLE_PAIRING_REQUEST, cdc::hal::getBluetoothControllerInstance(), cdc::core::EventBus::instance(), s_blePendingMutex, and s_pendingPairing.
Referenced by ui_init().
|
static |
Main-task handler for a deferred numeric-comparison pairing request.
| evt | Unused event payload; the request is read from s_pendingPairing. |
If the badge is locked the request is rejected without prompting. Otherwise a modal pairing prompt is shown; ui_process renders it on the next pass.
Definition at line 738 of file AppUi.cpp.
References cdc::ui::PendingPairing::connHandle, cdc::hal::getBluetoothControllerInstance(), cdc::ui::ViewStack::instance(), isBadgeLocked(), cdc::ui::PendingPairing::passkey, s_blePendingMutex, s_pairingPrompt, s_pendingPairing, cdc::ui::ViewStack::showModal(), and cdc::ui::PendingPairing::valid.
Referenced by ui_init().
|
static |
Handles Bluetooth menu selection.
Handles Bluetooth menu selection and dispatches actions.
| index | Selected menu index. |
| userData | Optional callback user data. |
Definition at line 200 of file BluetoothMenuUi.cpp.
References askConfirm(), BT_IDX_BEACON, BT_IDX_ENABLE, BT_IDX_FIXED_COUNT, BT_IDX_FORGET_BONDS, BT_IDX_PAIR, BT_IDX_PAIRED, BT_IDX_SCAN, BT_IDX_STATUS, cdc::hal::getBluetoothControllerInstance(), cdc::ui::ViewStack::instance(), cdc::ui::ViewStack::push(), rebuildBluetoothMenu(), s_bluetoothModuleCount, s_bluetoothModuleItems, showBluetoothStatus(), showPairedDevices(), showToastSuccess(), startBluetoothScan(), toggleBluetoothEnable(), and tr().
Referenced by showBluetoothMenu().
|
static |
PinChangeView change-callback for the duress-PIN setup flow.
Step 1 of the wizard already verified the current badge PIN, so the current PIN is ignored here. Arms the duress PIN via PinManager (rejects a duress PIN equal to the badge PIN).
| currentPin | Verified badge PIN (unused). |
| newPin | New duress PIN. |
Definition at line 378 of file AppUi.cpp.
References cdc::core::PinManager::instance(), and cdc::core::PinManager::setDuressPin().
Referenced by ui_init().
|
static |
Handles expert menu selection actions.
Handles selected expert-menu action.
| index | Selected menu item index. |
| userData | Optional callback user data. |
Definition at line 345 of file ExpertMenuUi.cpp.
References EXPERT_BOTTOM_COUNT, EXPERT_TOP_COUNT, cdc::ui::ViewStack::instance(), kExpertBottom, kExpertTop, cdc::ui::ViewStack::push(), s_expertModuleCount, and s_expertModuleItems.
Referenced by showExpertMenu().
|
static |
Confirmed-forget handler: unpairs the selected device and refreshes.
Definition at line 686 of file BluetoothMenuUi.cpp.
References cdc::hal::getBluetoothControllerInstance(), rebuildPairedList(), s_forgetTarget, showToastSuccess(), and tr().
Referenced by onPairedSelect().
|
static |
Callback invoked when inactivity timeout is reached.
Locks UI back to root lock-screen state on inactivity timeout.
Definition at line 407 of file AppUi.cpp.
References clearKeypadBuffer(), cdc::plugin_manager::PluginManager::instance(), cdc::ui::ViewStack::instance(), cdc::ui::ViewStack::pop(), cdc::ui::ViewStack::resetInactivityTimer(), and s_ignoreKeyUntilRelease.
Referenced by ui_init().
|
static |
Handles language-menu item selection.
Applies the selected UI language and rebuilds translated menus.
| index | Selected language item index. |
| userData | Optional callback user data. |
Definition at line 676 of file AppUi.cpp.
References cdc::plugin_manager::PluginManager::instance(), cdc::ui::I18n::instance(), cdc::ui::ViewStack::instance(), cdc::ui::ViewStack::pop(), cdc::plugin_manager::PluginManager::reloadActiveLangOverlay(), s_languageCodes, s_languageCount, and cdc::ui::I18n::setLanguageCode().
Referenced by rebuildLanguageMenu().
|
static |
Context-menu callback toggling lock-screen backlight mode.
Definition at line 248 of file LockScreenView.cpp.
References hideContextMenu(), and s_lockScreenInstance.
Referenced by cdc::ui::LockScreenView::onKey().
|
static |
Handles main-menu item selection.
Handles main-menu selection and dispatches configured destination views.
| index | Selected item index. |
| userData | Optional callback user data. |
Definition at line 546 of file AppUi.cpp.
References getPluginsIndex(), getSettingsIndex(), getToolsIndex(), cdc::ui::ViewStack::instance(), cdc::ui::ViewStack::push(), s_mainMenuModuleItems, s_mainMenuPluginCount, s_pluginListView, s_settingsMenu, and s_toolsMenu.
Referenced by ui_init().
| void cdc::ui::onModuleErrorEvent | ( | const core::Event & | evt | ) |
Displays toast notification for module error events.
| evt | Event payload from module registry. |
Definition at line 375 of file ExpertMenuUi.cpp.
References cdc::core::Event::data, cdc::core::ModuleRegistry::instance(), cdc::core::MODULE_ERROR, name, showToastError(), TOAST_DURATION_LONG_MS, cdc::core::Event::type, and cdc::core::Event::value.
Referenced by ui_init().
|
static |
Retries failed module initialization after user confirmation.
| userData | Encoded module index. |
Definition at line 75 of file ExpertMenuUi.cpp.
References cdc::core::ModuleRegistry::instance(), rebuildModulesView(), showToastError(), showToastSuccess(), TOAST_DURATION_MEDIUM_MS, TOAST_DURATION_SHORT_MS, tr(), and ui_rebuild_menus().
Referenced by onModuleSelect().
|
static |
Handles module list selection for retry/toggle behavior.
| index | Selected module index. |
| userData | Optional callback user data. |
Definition at line 95 of file ExpertMenuUi.cpp.
References cdc::ui::ConfirmView::ERROR, cdc::core::Generic, cdc::core::IService::getState(), cdc::core::ModuleRegistry::instance(), cdc::core::UsbManager::instance(), cdc::core::UsbManager::needsReplug(), onModuleRetryConfirm(), rebuildModulesView(), showConfirm(), showToastAlertSticky(), showToastError(), cdc::core::SlotError, cdc::core::STARTED, TOAST_DURATION_MEDIUM_MS, tr(), ui_rebuild_menus(), and cdc::core::UsbBudgetFull.
Referenced by showModulesView().
|
static |
Asks for confirmation to forget the selected paired device.
| index | Selected list index. |
| userData | Unused. |
Definition at line 700 of file BluetoothMenuUi.cpp.
References askConfirm(), onForgetConfirm(), s_forgetTarget, s_pairedBonds, s_pairedCount, and tr().
Referenced by showPairedDevices().
|
static |
Handles successful unlock and transitions to main menu.
Handles successful unlock, switches to main menu, and dispatches unlock hooks.
Definition at line 398 of file AppUi.cpp.
References cdc::core::ModuleRegistry::dispatchUnlock(), cdc::core::ModuleRegistry::instance(), cdc::ui::ViewStack::instance(), cdc::ui::ViewStack::replace(), s_deps, and s_mainMenu.
Referenced by ui_init().
|
static |
Verifies entered PIN via PinManager.
Verifies entered badge PIN against secure PinManager state.
| pin | Null-terminated PIN text. |
Definition at line 355 of file AppUi.cpp.
References cdc::core::PinManager::instance(), and cdc::core::selfDestruct().
Referenced by ui_init().
|
static |
Handles settings-menu item selection.
Handles settings-menu actions.
| index | Selected settings item index. |
| userData | Optional callback user data. |
Definition at line 599 of file AppUi.cpp.
References cdc::core::PinManager::BADGE_PIN_MAX, cdc::core::PinManager::BADGE_PIN_MIN, cdc::ui::ViewStack::instance(), cdc::ui::ViewStack::push(), rebuildLanguageMenu(), s_brightnessSlider, s_dateInput, s_languageMenu, s_pinChangeView, s_sleepSlider, s_timeInput, s_timezoneSlider, SETTINGS_IDX_AUTO_SLEEP, SETTINGS_IDX_BADGE_TEXT, SETTINGS_IDX_BRIGHTNESS, SETTINGS_IDX_CHANGE_PIN, SETTINGS_IDX_LANGUAGE, SETTINGS_IDX_SET_DATE, SETTINGS_IDX_SET_TIME, SETTINGS_IDX_TIMEZONE, and cdc::ui::settings::startBadgeTextEdit().
Referenced by ui_init().
|
static |
Disconnects the battery (ship mode) after user confirmation.
| userData | Unused callback user data. |
Definition at line 235 of file ExpertMenuUi.cpp.
References cdc::hal::getPowerManagerInstance(), showToastError(), TOAST_DURATION_MEDIUM_MS, and tr().
Referenced by enterShipModeMenu().
|
static |
Handles tools-menu item selection.
Handles tools-menu selection and routes to fixed or module-defined views.
| index | Selected item index. |
| userData | Optional callback user data. |
Definition at line 574 of file AppUi.cpp.
References cdc::ui::ViewStack::instance(), cdc::ui::ViewStack::push(), s_toolsModuleCount, s_toolsModuleItems, showBeaconMenu(), showBluetoothMenu(), showExpertMenu(), showWifiMainMenu(), and TOOLS_FIXED_COUNT.
Referenced by ui_init().
|
static |
Starts unlock flow from lock screen.
Handles lock-screen unlock request and opens PIN entry when required.
Definition at line 340 of file AppUi.cpp.
References clearKeypadBuffer(), cdc::ui::ViewStack::instance(), cdc::ui::ViewStack::push(), s_ignoreKeyUntilRelease, and s_pinEntry.
Referenced by ui_init().
|
static |
Handles authentication mode selection.
Stores selected authentication mode and continues wizard.
| index | Selected authentication mode index. |
| userData | Optional callback user data. |
Definition at line 486 of file WifiMenuUi.cpp.
References cdc::ui::WifiHandlers::instance(), cdc::hal::OPEN, cdc::hal::WEP, WIFI_AUTH_OPEN, WIFI_AUTH_WEP, WIFI_AUTH_WPA, WIFI_AUTH_WPA2, WIFI_AUTH_WPA3, WIFI_AUTH_WPA_WPA2, wifiShowIpModeMenu(), wifiShowPasswordInput(), cdc::ui::WifiHandlers::wizard(), cdc::hal::WPA2_PSK, cdc::hal::WPA3_PSK, and cdc::hal::WPA_PSK.
Referenced by wifiShowAuthMenu().
|
static |
Validates and stores gateway input.
Validates and stores gateway value.
| gateway | Entered gateway IP string. |
Definition at line 590 of file WifiMenuUi.cpp.
References cdc::ui::WifiHandlers::instance(), cdc::ui::WifiHandlers::isValidIpAddress(), onWifiGatewayEntered(), onWifiNetmaskEntered(), showToastError(), TOAST_DURATION_MEDIUM_MS, tr(), wifiShowIpInputField(), and cdc::ui::WifiHandlers::wizard().
Referenced by onWifiGatewayEntered(), and onWifiStaticIpEntered().
|
static |
Handles IP mode selection.
Handles IP-mode choice and proceeds with DHCP or static inputs.
| index | Selected IP-mode index. |
| userData | Optional callback user data. |
Definition at line 545 of file WifiMenuUi.cpp.
References cdc::ui::WifiHandlers::instance(), onWifiStaticIpEntered(), cdc::ui::WifiWizard::useDhcp, WIFI_IP_DHCP, wifiFinishSetup(), wifiShowIpInputField(), and cdc::ui::WifiHandlers::wizard().
Referenced by wifiShowIpModeMenu().
|
static |
Handles top-level Wi-Fi menu selection.
Handles top-level Wi-Fi menu actions.
| index | Selected item index. |
| userData | Optional callback user data. |
Definition at line 256 of file WifiMenuUi.cpp.
References cdc::hal::getWifiControllerInstance(), cdc::ui::ViewStack::instance(), cdc::ui::ViewStack::push(), rebuildWifiMainMenu(), s_wifiModuleCount, s_wifiModuleItems, WIFI_IDX_CONNECT, WIFI_IDX_DETAILS, WIFI_IDX_NTP_SYNC, WIFI_IDX_SETUP, WIFI_MENU_FIXED_COUNT, wifiConnect(), wifiDisconnect(), wifiNtpSync(), wifiSetup(), and wifiShowDetails().
Referenced by showWifiMainMenu().
|
static |
Validates and stores netmask input.
Validates and stores netmask value.
| netmask | Entered netmask string. |
Definition at line 605 of file WifiMenuUi.cpp.
References cdc::ui::WifiHandlers::instance(), cdc::ui::WifiHandlers::isValidIpAddress(), onWifiNetmaskEntered(), showToastError(), TOAST_DURATION_MEDIUM_MS, tr(), wifiFinishSetup(), wifiShowIpInputField(), and cdc::ui::WifiHandlers::wizard().
Referenced by onWifiGatewayEntered(), and onWifiNetmaskEntered().
|
static |
Stores entered password and continues wizard.
Stores entered Wi-Fi password and proceeds to IP-mode step.
| password | Entered Wi-Fi password. |
Definition at line 518 of file WifiMenuUi.cpp.
References cdc::ui::WifiHandlers::instance(), wifiShowIpModeMenu(), and cdc::ui::WifiHandlers::wizard().
Referenced by wifiShowPasswordInput().
|
static |
Handles scan result selection.
Handles selected scan entry and advances setup wizard.
| index | Selected list index. |
| userData | Optional pointer to selected WifiItem. |
Definition at line 438 of file WifiMenuUi.cpp.
References cdc::ui::WifiHandlers::instance(), cdc::hal::OPEN, showT9Input(), tr(), wifiShowAuthMenu(), wifiShowIpModeMenu(), wifiShowPasswordInput(), and cdc::ui::WifiHandlers::wizard().
Referenced by wifiStartScan().
|
static |
Validates and stores static IP input.
Validates and stores static IP value.
| ip | Entered IP address string. |
Definition at line 575 of file WifiMenuUi.cpp.
References cdc::ui::WifiHandlers::instance(), cdc::ui::WifiHandlers::isValidIpAddress(), onWifiGatewayEntered(), onWifiStaticIpEntered(), showToastError(), TOAST_DURATION_MEDIUM_MS, tr(), wifiShowIpInputField(), and cdc::ui::WifiHandlers::wizard().
Referenced by onWifiIpModeSelect(), and onWifiStaticIpEntered().
|
static |
Context-menu callback toggling WiFi on/off via the user intent flag.
Definition at line 258 of file LockScreenView.cpp.
References hideContextMenu(), and cdc::ui::WifiHandlers::instance().
Referenced by cdc::ui::LockScreenView::onKey().
|
inline |
Definition at line 40 of file LockScreenView.h.
|
inline |
Definition at line 37 of file LockScreenView.h.
|
inline |
Definition at line 43 of file LockScreenView.h.
|
static |
Anti-block instant lock: force the badge into a clean locked state.
Triggered by the reserved N+Y rescue chord. Unloads every loaded plugin, dismisses all modals and views back to the lock screen, and notifies modules so the badge recovers from a wedged view or undefined UI state without a hardware reset.
Definition at line 432 of file AppUi.cpp.
References clearKeypadBuffer(), cdc::core::ModuleRegistry::dispatchLock(), cdc::core::ModuleRegistry::instance(), cdc::plugin_manager::PluginManager::instance(), cdc::ui::ViewStack::instance(), s_ignoreKeyUntilRelease, s_lockScreen, and cdc::plugin_manager::PluginManager::unloadAllFromRam().
Referenced by ui_process().
|
static |
Definition at line 325 of file LockScreenView.cpp.
References hideContextMenu(), cdc::plugin_manager::PluginManager::instance(), s_pluginContextItems, and cdc::plugin_manager::PluginManager::triggerLockscreenItem().
|
static |
Definition at line 329 of file LockScreenView.cpp.
References hideContextMenu(), cdc::plugin_manager::PluginManager::instance(), s_pluginContextItems, and cdc::plugin_manager::PluginManager::triggerLockscreenItem().
|
static |
Definition at line 333 of file LockScreenView.cpp.
References hideContextMenu(), cdc::plugin_manager::PluginManager::instance(), s_pluginContextItems, and cdc::plugin_manager::PluginManager::triggerLockscreenItem().
|
static |
Definition at line 337 of file LockScreenView.cpp.
References hideContextMenu(), cdc::plugin_manager::PluginManager::instance(), s_pluginContextItems, and cdc::plugin_manager::PluginManager::triggerLockscreenItem().
| void cdc::ui::prepareForBootloaderReset | ( | ) |
Puts the badge into a quiet pre-reset state.
Forces the badge into a quiet state ahead of the bootloader reset: pops every view back to the lock screen, replaces the lock-screen text with "BOOTLOADER MODE" / reset-button hint and triggers a full EPD refresh + backlight off.
Replaces lock-screen text with a clear "BOOTLOADER MODE" banner, drops any open views/modals, forces a full EPD refresh and switches the backlight off. The follow-up download-boot reset is triggered by the caller from a separate worker task.
Provided by AppUi.cpp because it touches the static lock-screen instance.
Definition at line 1052 of file AppUi.cpp.
References cdc::hal::FULL, cdc::ui::ViewStack::instance(), s_deps, and s_lockScreen.
Referenced by rebootIntoBootloader().
|
static |
| void cdc::ui::rebootIntoBootloader | ( | ) |
Reboots the device into USB download (bootloader) mode.
Reboots into USB download mode.
Shows a "Bootloader Mode" toast, forces an EPD full refresh, switches off the backlight, then spawns a dedicated task that arms RTC_CNTL_FORCE_DOWNLOAD_BOOT and calls esp_restart(). Returns to the caller so any locks it holds are released before the reset runs.
Forces the UI to the lock screen with a "BOOTLOADER MODE" banner, flushes the EPD and switches the backlight off (the lock-screen path is the known-quiet rendering state), then spawns a dedicated worker that detaches USB and triggers the hard reset. The caller returns immediately so any locks it holds are released before reset proceeds.
Definition at line 333 of file ExpertMenuUi.cpp.
References bootloaderResetTask(), and prepareForBootloaderReset().
Referenced by cdc::serial::cmdBootloader().
| void cdc::ui::rebuildBluetoothMenu | ( | ) |
Rebuilds Bluetooth menu entries and dynamic module items.
Definition at line 145 of file BluetoothMenuUi.cpp.
References cdc::core::BLUETOOTH_MENU, BT_IDX_BEACON, BT_IDX_ENABLE, BT_IDX_FIXED_COUNT, BT_IDX_FORGET_BONDS, BT_IDX_PAIR, BT_IDX_PAIRED, BT_IDX_SCAN, BT_IDX_STATUS, BT_MENU_MAX_ITEMS, cdc::hal::getBluetoothControllerInstance(), cdc::core::ModuleRegistry::instance(), s_bluetoothItems, s_bluetoothMenu, s_bluetoothModuleCount, s_bluetoothModuleItems, and tr().
Referenced by onBluetoothMenuSelect(), showBluetoothMenu(), and toggleBluetoothEnable().
|
static |
Rebuilds expert menu item list including module-provided entries.
Rebuilds expert menu entries including dynamically provided items.
Definition at line 274 of file ExpertMenuUi.cpp.
References EXPERT_BOTTOM_COUNT, EXPERT_FIXED_COUNT, EXPERT_MAX_ITEMS, cdc::core::EXPERT_MENU, EXPERT_TOP_COUNT, cdc::core::ModuleRegistry::instance(), kExpertBottom, kExpertTop, s_expertItems, s_expertMenu, s_expertModuleCount, s_expertModuleItems, and tr().
Referenced by showExpertMenu().
|
static |
Rebuilds the language picker from the overlay files present.
Rebuilds the language picker from the overlay files on the plugins FAT.
The list always starts with English (in-code) followed by one entry per lang_<code>.json discovered by I18n, each labelled with the file's own core.lang_name. With no overlay files present only English is shown.
Definition at line 641 of file AppUi.cpp.
References cdc::ui::I18n::instance(), MAX_LANGUAGES, onLanguageSelect(), s_languageCodes, s_languageCount, s_languageItems, s_languageMenu, and tr().
Referenced by onSettingsSelect(), and ui_init().
| void cdc::ui::rebuildMainMenu | ( | ) |
Rebuilds main menu entries including dynamically provided modules.
Definition at line 449 of file AppUi.cpp.
References getMainMenuCount(), getPluginsIndex(), getSettingsIndex(), getToolsIndex(), cdc::core::ModuleRegistry::instance(), cdc::core::MAIN_MENU, MAIN_MENU_FIXED_COUNT, MAIN_MENU_MAX_ITEMS, s_mainMenu, s_mainMenuItems, s_mainMenuModuleItems, s_mainMenuPluginCount, and tr().
Referenced by rebuildMenuLabels(), ui_init(), and ui_on_modules_ready().
|
static |
Rebuilds labels for translatable menus after language change.
Rebuilds all translatable menu labels and refreshes visible menus.
Definition at line 522 of file AppUi.cpp.
References rebuildMainMenu(), rebuildToolsMenu(), s_settingsItems, s_settingsMenu, SETTINGS_IDX_AUTO_SLEEP, SETTINGS_IDX_BADGE_TEXT, SETTINGS_IDX_BRIGHTNESS, SETTINGS_IDX_CHANGE_PIN, SETTINGS_IDX_COUNT, SETTINGS_IDX_LANGUAGE, SETTINGS_IDX_SET_DATE, SETTINGS_IDX_SET_TIME, SETTINGS_IDX_TIMEZONE, and tr().
Referenced by ui_rebuild_menus().
|
static |
Rebuilds module status list view content.
Rebuilds module list rows with current enabled/state/error markers.
Definition at line 158 of file ExpertMenuUi.cpp.
References cdc::core::IService::getName(), cdc::core::ModuleRegistry::instance(), MODULES_VIEW_MAX, s_moduleLabels, s_modulesItems, s_modulesView, and tr().
Referenced by onModuleRetryConfirm(), onModuleSelect(), and showModulesView().
|
static |
Rebuilds the paired-device list from the current bond store.
Definition at line 662 of file BluetoothMenuUi.cpp.
References BLE_MAX_BONDS, cdc::hal::getBluetoothControllerInstance(), s_pairedBonds, s_pairedCount, s_pairedItems, s_pairedLabels, s_pairedView, and tr().
Referenced by onForgetConfirm(), and showPairedDevices().
| void cdc::ui::rebuildToolsMenu | ( | ) |
Rebuilds tools menu entries including dynamic module tools.
Definition at line 496 of file AppUi.cpp.
References cdc::core::ModuleRegistry::instance(), kToolsFixed, s_toolsItems, s_toolsMenu, s_toolsModuleCount, s_toolsModuleItems, TOOLS_FIXED_COUNT, TOOLS_MAX_ITEMS, cdc::core::TOOLS_MENU, and tr().
Referenced by rebuildMenuLabels(), toggleBluetoothEnable(), ui_init(), and ui_on_modules_ready().
| void cdc::ui::rebuildWifiMainMenu | ( | ) |
Rebuilds top-level Wi-Fi menu items and dynamic module extensions.
Definition at line 202 of file WifiMenuUi.cpp.
References cdc::hal::getWifiControllerInstance(), cdc::core::ModuleRegistry::instance(), cdc::ui::WifiHandlers::instance(), s_wifiMainItems, s_wifiMainMenu, s_wifiModuleCount, s_wifiModuleItems, tr(), WIFI_IDX_CONNECT, WIFI_IDX_DETAILS, WIFI_IDX_NTP_SYNC, WIFI_IDX_SETUP, cdc::core::WIFI_MENU, WIFI_MENU_FIXED_COUNT, and WIFI_MENU_MAX_ITEMS.
Referenced by onWifiMainSelect(), showWifiMainMenu(), wifiConnect(), and wifiDisconnect().
| void cdc::ui::registerBackupSerialCommand | ( | ) |
Registers the AUTH-gated BACKUP serial command.
Definition at line 218 of file BackupMenuUi.cpp.
References cdc::serial::getCommandRegistry(), and cdc::serial::ICommandRegistry::registerCommand().
Referenced by ui_init().
|
static |
Renders one BLE scan row with signal bars and RSSI text.
| gfx | Display graphics context. |
| item | List item containing BleScanResult in userData. |
| index | Row index. |
| x | Row left position. |
| y | Row top position. |
| w | Row width. |
| h | Row height. |
| selected | Whether row is selected. |
| userCtx | Optional renderer context. |
Definition at line 91 of file BluetoothMenuUi.cpp.
References drawSignalBars(), cdc::ui::render::printText(), and cdc::ui::ListItem::userData.
Referenced by startBluetoothScan().
|
static |
Custom list-row renderer for Wi-Fi scan entries.
| gfx | Display graphics context. |
| item | Item metadata and optional scan-result user data. |
| index | Row index. |
| x | Row left position. |
| y | Row top position. |
| w | Row width. |
| h | Row height. |
| selected | Whether row is selected. |
| userCtx | Optional renderer context. |
Definition at line 159 of file WifiMenuUi.cpp.
References drawSignalBars(), drawWifiLockIcon(), cdc::ui::ListItem::label, cdc::hal::OPEN, cdc::ui::render::printText(), and cdc::ui::ListItem::userData.
Referenced by wifiStartScan().
|
static |
Definition at line 413 of file BluetoothMenuUi.cpp.
References s_evtGotName, s_resolveActive, s_resolveConn, and s_resolveNameBuf.
Referenced by bleResolveStart().
|
static |
Definition at line 390 of file BluetoothMenuUi.cpp.
References s_evtConnected, s_evtConnHandle, and s_resolveActive.
Referenced by bleResolveStart().
|
static |
Definition at line 395 of file BluetoothMenuUi.cpp.
References s_evtDisconnected, s_resolveActive, and s_resolveConn.
Referenced by bleResolveStart().
|
static |
Definition at line 399 of file BluetoothMenuUi.cpp.
References BLE_DEV_NAME_UUID, cdc::hal::IBluetoothController::DiscoveredService::characteristics, cdc::hal::BleUuid::from16(), cdc::hal::IBluetoothController::DiscoveredService::numCharacteristics, s_evtDiscovered, s_evtNameHandle, s_resolveActive, s_resolveConn, cdc::hal::IBluetoothController::DiscoveredCharacteristic::uuid, and cdc::hal::IBluetoothController::DiscoveredCharacteristic::valueHandle.
Referenced by bleResolveStart().
|
static |
Opens hardware information/system-test screen.
Definition at line 199 of file ExpertMenuUi.cpp.
References showHardwareInfo().
|
static |
Cleans cached TROPIC metadata and reports operation result.
Definition at line 220 of file ExpertMenuUi.cpp.
References cdc::core::TropicStorage::cleanup(), cdc::ui::ViewStack::hideModal(), cdc::core::TropicStorage::instance(), cdc::ui::ViewStack::instance(), showToastError(), showToastSuccess(), showToastTask(), and tr().
|
static |
Rebuilds cached TROPIC metadata and reports operation result.
Definition at line 206 of file ExpertMenuUi.cpp.
References cdc::ui::ViewStack::hideModal(), cdc::core::TropicStorage::instance(), cdc::ui::ViewStack::instance(), cdc::core::TropicStorage::rebuild(), showToastError(), showToastSuccess(), showToastTask(), and tr().
| void cdc::ui::showBackupMenu | ( | ) |
Shows the Backup submenu (Export / Import / Delete).
Definition at line 203 of file BackupMenuUi.cpp.
References cdc::ui::ViewStack::instance(), cdc::ui::ViewStack::push(), and tr().
| void cdc::ui::showBeaconMenu | ( | ) |
Definition at line 401 of file MsgTransferUi.cpp.
References cdc::ui::ViewStack::instance(), and cdc::ui::ViewStack::push().
Referenced by onToolsSelect().
| void cdc::ui::showBluetoothMenu | ( | ) |
Shows top-level Bluetooth menu.
Definition at line 185 of file BluetoothMenuUi.cpp.
References cdc::ui::ViewStack::instance(), onBluetoothMenuSelect(), cdc::ui::ViewStack::push(), rebuildBluetoothMenu(), and s_bluetoothMenu.
Referenced by onToolsSelect().
|
static |
Shows BLE status and adapter information.
Builds and shows BLE status information view.
Definition at line 281 of file BluetoothMenuUi.cpp.
References BLE_STATUS_BUF_SIZE, cdc::hal::getBluetoothControllerInstance(), s_bleStatusBuf, showInfo(), and tr().
Referenced by onBluetoothMenuSelect().
| void cdc::ui::showConfirm | ( | const char * | message, |
| ConfirmView::ConfirmCallback | onConfirm, | ||
| ConfirmView::CancelCallback | onCancel = nullptr, | ||
| ConfirmView::Icon | icon = ConfirmView::Icon::QUESTION, | ||
| void * | userData = nullptr ) |
Shows a shared modal confirmation dialog instance.
Show a confirmation dialog (modal)
| message | Question to display |
| onConfirm | Callback when Y is pressed |
| onCancel | Callback when N is pressed (optional) |
| icon | Icon type |
| userData | User data passed to callbacks |
| message | Dialog message text. |
| onConfirm | Callback for confirmation action. |
| onCancel | Callback for cancel action. |
| icon | Icon type to display. |
| userData | User context passed to callbacks. |
Definition at line 208 of file ConfirmView.cpp.
References cdc::ui::ViewStack::instance(), cdc::ui::ViewStack::render(), s_sharedConfirm, and cdc::ui::ViewStack::showModal().
Referenced by askConfirm(), cdc::mod_2fa::ble_chalresp_tick(), cdc::mod_gpg::confirmReset(), cdc::mod_vcard::ctxReceivedDelete(), enterShipModeMenu(), cdc::mod_fido2::fido2_ui_user_presence_callback(), cdc::mod_nvsedit::getNvsEditorView(), cdc::mod_password::onMenuDelete(), onModuleSelect(), and cdc::mod_gpg::onReceivedActionSelect().
| ContextMenuView * cdc::ui::showContextMenu | ( | const char * | title, |
| const ContextMenuItem * | items, | ||
| uint8_t | count ) |
Shows the shared context menu instance as modal.
Show a context menu as modal overlay. The menu will close after selection or cancel.
| title | Menu title |
| items | Array of menu items |
| count | Number of items |
Example: static ContextMenuItem items[] = { {"Copy", []() { doCopy(); }}, {"Paste", []() { doPaste(); }}, {"Delete", []() { doDelete(); }} }; showContextMenu("Actions", items, 3);
| title | Menu title text. |
| items | Menu item array. |
| count | Number of menu items. |
Definition at line 283 of file ContextMenuView.cpp.
References cdc::ui::ViewStack::instance(), s_sharedContextMenu, and cdc::ui::ViewStack::showModal().
Referenced by cdc::ui::LockScreenView::onKey(), cdc::mod_nvsedit::onKeyMenu(), cdc::mod_password::onListMenu(), cdc::mod_nvsedit::onNamespaceMenu(), cdc::mod_vcard::onReceivedMenu(), and cdc::mod_vcard::onReceivedViewMenu().
| void cdc::ui::showDuressPinSetup | ( | ) |
Opens the duress / self-destruct PIN setup wizard.
Reuses the PIN-change wizard: step 1 re-authenticates with the badge PIN, steps 2-3 enter and confirm the new duress PIN.
Definition at line 389 of file AppUi.cpp.
References cdc::core::PinManager::BADGE_PIN_MAX, cdc::core::PinManager::BADGE_PIN_MIN, cdc::ui::ViewStack::instance(), cdc::ui::ViewStack::push(), and s_duressPinView.
|
inline |
Shorthand for error message
Definition at line 95 of file MessageBox.h.
References ERROR, and showMessage().
| void cdc::ui::showExpertMenu | ( | ) |
Shows expert menu and initial warning toast.
Definition at line 258 of file ExpertMenuUi.cpp.
References cdc::ui::ViewStack::instance(), onExpertMenuSelect(), cdc::ui::ViewStack::push(), rebuildExpertMenu(), s_expertMenu, showToastInfo(), and tr().
Referenced by onToolsSelect().
| void cdc::ui::showHardwareInfo | ( | ) |
Opens hardware info screen using shared info view.
Definition at line 186 of file HardwareInfo.cpp.
References buildHardwareInfoText(), showInfo(), and tr().
Referenced by runSystemTest().
| InfoView * cdc::ui::showInfo | ( | const char * | title, |
| const char * | text, | ||
| const char * | hint = nullptr ) |
Shows a shared info view instance and pushes it onto the view stack.
Show an info view and push it to the ViewStack. Simplest API for displaying scrollable text.
| title | View title |
| text | Text to display (multi-line with ) |
| hint | Optional custom footer hint |
Example: showInfo("Help", "Line 1\nLine 2\nLine 3...");
| title | Title text. |
| text | Body text. |
| hint | Optional custom footer hint. |
Definition at line 310 of file InfoView.cpp.
References cdc::ui::ViewStack::instance(), cdc::ui::ViewStack::push(), and s_sharedInfoView.
Referenced by showBluetoothStatus(), showHardwareInfo(), cdc::mod_gpg::showReceivedKeys(), and wifiShowDetails().
| ListView * cdc::ui::showListView | ( | const char * | title, |
| const ListItem * | items, | ||
| uint16_t | count, | ||
| ListView::SelectCallback | onSelect, | ||
| const char * | hint = nullptr ) |
Shows a shared list view instance with selection callback.
Show a list menu and push it to the ViewStack. Simplest possible API: "here's the array and callback, show it".
| title | List title |
| items | Array of items (pointer is stored) |
| count | Number of items |
| onSelect | Callback when item is selected |
| hint | Optional custom footer hint (nullptr = default) |
Example: static ListItem items[] = { {"Option 1"}, {"Option 2"} }; showListView("Title", items, 2, [](uint16_t idx, void*) { ... });
| title | List title text. |
| items | Item array pointer. |
| count | Number of items. |
| onSelect | Selection callback. |
| hint | Optional footer hint override. |
Definition at line 438 of file ListView.cpp.
References cdc::ui::ViewStack::instance(), cdc::ui::ViewStack::push(), and s_sharedListView.
| void cdc::ui::showMessage | ( | const char * | message, |
| MessageIcon | icon = MessageIcon::NONE, | ||
| uint32_t | timeoutMs = 0, | ||
| MessageBox::CloseCallback | onClose = nullptr ) |
Shows the shared modal message box.
Show a message box overlay (modal). Simplest API for user feedback.
| message | Text to display |
| icon | Icon type |
| timeoutMs | Auto-dismiss timeout (0 = manual dismiss with Y/N) |
| onClose | Optional callback when dismissed |
Examples: showMessage("Saved!"); // Simple info showMessage("Success!", MessageIcon::SUCCESS, 2000); // Auto-dismiss after 2s showMessage("Wrong PIN!", MessageIcon::ERROR, 1500); // Error with timeout
| message | Message text. |
| icon | Icon type. |
| timeoutMs | Auto-close timeout in milliseconds. |
| onClose | Optional close callback. |
Definition at line 211 of file MessageBox.cpp.
References cdc::ui::ViewStack::instance(), s_sharedMessageBox, and cdc::ui::ViewStack::showModal().
Referenced by showError(), and showSuccess().
| void cdc::ui::showModulesView | ( | ) |
Shows module management list view.
Definition at line 186 of file ExpertMenuUi.cpp.
References cdc::ui::ViewStack::instance(), onModuleSelect(), cdc::ui::ViewStack::push(), rebuildModulesView(), and s_modulesView.
| void cdc::ui::showMsgBeaconScan | ( | ) |
Definition at line 433 of file MsgTransferUi.cpp.
References cdc::hal::getBluetoothControllerInstance(), showToastError(), and tr().
|
static |
Shows the list of paired (bonded) devices.
Builds and shows the paired-device list view.
Definition at line 710 of file BluetoothMenuUi.cpp.
References cdc::hal::getBluetoothControllerInstance(), cdc::ui::ViewStack::instance(), onPairedSelect(), cdc::ui::ViewStack::push(), rebuildPairedList(), s_pairedView, showToastError(), and tr().
Referenced by onBluetoothMenuSelect().
| PinEntryView * cdc::ui::showPinEntry | ( | const char * | title, |
| PinEntryView::VerifyCallback | onVerify, | ||
| PinEntryView::SuccessCallback | onSuccess, | ||
| uint8_t | maxLength = 6, | ||
| uint8_t | minLength = 4, | ||
| uint8_t | maxAttempts = 3 ) |
Shows a shared PIN entry view instance.
Show a PIN entry view and push it to the ViewStack. Simplest possible API for PIN input.
| title | Title text |
| onVerify | Verification callback (return true if PIN correct) |
| onSuccess | Called after successful verification |
| maxLength | Maximum PIN length (default 6) |
| minLength | Minimum PIN length (default 4) |
| maxAttempts | Maximum attempts (0 = unlimited, default 3) |
Example (default PIN is "1234"): showPinEntry("Enter PIN", [](const char* pin) { return strcmp(pin, "1234") == 0; }, []() { unlockDevice(); });
| title | View title text. |
| onVerify | Verification callback. |
| onSuccess | Success callback. |
| maxLength | Maximum PIN length. |
| minLength | Minimum PIN length. |
| maxAttempts | Maximum retry attempts. |
Definition at line 325 of file PinEntryView.cpp.
References cdc::ui::ViewStack::instance(), cdc::ui::ViewStack::push(), and s_sharedPinEntry.
| QRCodeView * cdc::ui::showQRCode | ( | const char * | data, |
| const char * | title = nullptr, | ||
| const char * | subtitle = nullptr, | ||
| const char * | hint = nullptr ) |
Shows a shared QR code view instance.
Show a QR code view.
| data | Data to encode |
| title | Optional title |
| subtitle | Optional subtitle |
| hint | Optional footer hint (default: "Any key = Back") |
Example: showQRCode("https://example.com", "Website", "Scan me!");
| data | QR payload text. |
| title | Optional title text. |
| subtitle | Optional subtitle text. |
| hint | Optional custom footer hint. |
Definition at line 352 of file QRCodeView.cpp.
References cdc::ui::ViewStack::instance(), cdc::ui::ViewStack::push(), and s_sharedQRCodeView.
Referenced by cdc::mod_vcard::showVcardQr().
| SliderView * cdc::ui::showSlider | ( | const char * | title, |
| uint16_t | minVal, | ||
| uint16_t | maxVal, | ||
| uint16_t | initial, | ||
| uint16_t | step, | ||
| const char * | unit, | ||
| SliderView::SaveCallback | onSave, | ||
| SliderView::ChangeCallback | onChange = nullptr ) |
Shows a shared slider view instance.
Show a slider and push it to the ViewStack. Simplest possible API for value adjustment.
| title | Slider title |
| minVal | Minimum value |
| maxVal | Maximum value |
| initial | Initial value |
| step | Step size |
| unit | Unit string (e.g., "%") |
| onSave | Called when Y is pressed (save) |
| onChange | Called on every adjustment (real-time preview) |
Example (Brightness): showSlider("Brightness", 0, 100, 50, 10, "%", [](uint16_t v) { saveNVS(v); }, [](uint16_t v) { display->setBacklight(v * 10); });
| title | View title text. |
| minVal | Minimum slider value. |
| maxVal | Maximum slider value. |
| initial | Initial slider value. |
| step | Default step size. |
| unit | Optional value unit suffix. |
| onSave | Save callback. |
| onChange | Optional live-change callback. |
Definition at line 277 of file SliderView.cpp.
References cdc::ui::ViewStack::instance(), cdc::ui::ViewStack::push(), and s_sharedSlider.
|
inline |
Shorthand for success message
Definition at line 88 of file MessageBox.h.
References showMessage(), and SUCCESS.
| T9InputView * cdc::ui::showT9Input | ( | const char * | title, |
| const char * | initialText, | ||
| T9InputView::SaveCallback | onSave, | ||
| uint16_t | maxLen = 128 ) |
Shows a shared T9 input view instance.
Show a T9 input view and push it to the ViewStack. Simplest possible API for text input.
| title | View title |
| initialText | Initial text (nullptr for empty) |
| onSave | Called when Y is pressed (save) |
| maxLen | Maximum text length |
Example: showT9Input("Enter Name", nullptr, [](const char* text) { saveToNVS(text); });
| title | View title text. |
| initialText | Initial text value. |
| onSave | Save callback invoked on confirm. |
| maxLen | Maximum input length. |
Definition at line 391 of file T9InputView.cpp.
References cdc::ui::ViewStack::instance(), cdc::ui::ViewStack::push(), and s_sharedT9Input.
Referenced by onWifiScanSelect(), cdc::ui::settings::showBadgeTextStep(), wifiShowIpInputField(), and wifiShowPasswordInput().
| void cdc::ui::showToast | ( | const char * | message, |
| uint16_t | durationMs = 1500 ) |
Shows a plain toast message.
Show a toast message (shown as modal overlay)
| message | Text to display |
| durationMs | Duration in ms (default 1500) |
| message | Toast message text. |
| durationMs | Auto-dismiss duration in milliseconds. |
Definition at line 225 of file ToastView.cpp.
References cdc::ui::ToastView::NONE, and showToastInternal().
Referenced by cdc::mod_gpg::onReceivedActionSelect(), cdc::mod_gpg::onReceivedDeleteConfirm(), cdc::mod_gpg::onReceivedSignConfirm(), and cdc::mod_gpg::showSendKey().
| void cdc::ui::showToastAlert | ( | const char * | message, |
| uint16_t | durationMs = 1500 ) |
Shows an alert toast message.
Show an alert toast with warning icon
| message | Toast message text. |
| durationMs | Auto-dismiss duration in milliseconds. |
Definition at line 275 of file ToastView.cpp.
References cdc::ui::ToastView::ALERT, and showToastInternal().
| void cdc::ui::showToastAlertSticky | ( | const char * | message | ) |
Shows a non-dismissible alert toast.
Show a non-dismissible alert toast (panic)
| message | Toast message text. |
Definition at line 284 of file ToastView.cpp.
References cdc::ui::ToastView::ALERT, and showToastInternal().
Referenced by onModuleSelect(), and ui_init().
| void cdc::ui::showToastError | ( | const char * | message, |
| uint16_t | durationMs = 1500 ) |
Shows an error toast message.
Show an error toast with X icon
| message | Toast message text. |
| durationMs | Auto-dismiss duration in milliseconds. |
Definition at line 245 of file ToastView.cpp.
References cdc::ui::ToastView::ERROR, and showToastInternal().
Referenced by cdc::ui::T9InputView::forceDigit(), cdc::mod_gpg::GpgModule::getMenuItems(), cdc::mod_password::PasswordModule::getMenuItems(), cdc::plugin_manager::onCtxDisable(), cdc::plugin_manager::onCtxEnable(), cdc::mod_nvsedit::onDeleteKey(), cdc::mod_nvsedit::onDeleteNamespace(), cdc::mod_2fa::OathCodeView::onEnter(), cdc::mod_2fa::OathCodeView::onKey(), cdc::mod_password::onMenuDeleteConfirm(), onModuleErrorEvent(), onModuleRetryConfirm(), onModuleSelect(), cdc::mod_vcard::onMyVcardLockscreenSelect(), cdc::mod_fido2::onPinFailure(), cdc::mod_vcard::onReceivedDeleteConfirm(), cdc::mod_gpg::onResetConfirm(), onShipModeConfirm(), cdc::mod_password::onTypePassword(), onWifiGatewayEntered(), onWifiNetmaskEntered(), onWifiStaticIpEntered(), cdc::mod_gpg::onWizardCurve(), cdc::mod_password::onWizardTotp(), cdc::ui::T9InputView::processKey(), cdc::mod_fido2::promptComplete(), cdc::mod_password::rebuildList(), cdc::plugin_manager::reportStartResult(), runTropicCacheCleanup(), runTropicCacheRebuild(), cdc::mod_nvsedit::showDeleteDisabled(), cdc::mod_password::showDetails(), cdc::mod_gpg::showExport(), showMsgBeaconScan(), showPairedDevices(), startBluetoothScan(), cdc::mod_ble_serial::BleSerialModule::toggle(), toggleBluetoothEnable(), wifiConnect(), wifiNtpSync(), wifiStartScan(), cdc::mod_2fa::wizardEdit(), cdc::mod_password::wizardEdit(), cdc::mod_2fa::wizardFinish(), cdc::mod_password::wizardFinish(), and cdc::mod_vcard::wizardFinish().
| void cdc::ui::showToastInfo | ( | const char * | message, |
| uint16_t | durationMs = 1500 ) |
Shows an informational toast message.
Show an info toast with (i) icon
| message | Toast message text. |
| durationMs | Auto-dismiss duration in milliseconds. |
Definition at line 255 of file ToastView.cpp.
References cdc::ui::ToastView::INFO, and showToastInternal().
Referenced by msgTransferUiProcess(), cdc::plugin_manager::onCtxDisable(), cdc::plugin_manager::onCtxEnable(), cdc::mod_nvsedit::onDeleteKey(), cdc::mod_nvsedit::onDeleteNamespace(), cdc::mod_vcard::onMainMenuSelect(), cdc::mod_nvsedit::onNvsEditorConfirm(), cdc::plugin_manager::PluginListView::onResume(), showExpertMenu(), startBluetoothScan(), cdc::mod_ble_serial::BleSerialModule::toggle(), toggleBluetoothEnable(), wifiConnect(), wifiDisconnect(), and wifiStartScan().
|
static |
Shows the shared toast instance with custom icon and behavior.
| message | Toast message text. |
| icon | Icon type to display. |
| durationMs | Auto-dismiss duration in milliseconds. |
| dismissible | Whether key presses can dismiss the toast. |
Definition at line 212 of file ToastView.cpp.
References cdc::ui::ViewStack::instance(), cdc::ui::ViewStack::render(), s_sharedToast, and cdc::ui::ViewStack::showModal().
Referenced by showToast(), showToastAlert(), showToastAlertSticky(), showToastError(), showToastInfo(), showToastSuccess(), and showToastTask().
| void cdc::ui::showToastSuccess | ( | const char * | message, |
| uint16_t | durationMs = 1500 ) |
Shows a success toast message.
Show a success toast with checkmark icon
| message | Toast message text. |
| durationMs | Auto-dismiss duration in milliseconds. |
Definition at line 235 of file ToastView.cpp.
References showToastInternal(), and cdc::ui::ToastView::SUCCESS.
Referenced by onBluetoothMenuSelect(), onForgetConfirm(), cdc::mod_2fa::OathCodeView::onKey(), cdc::mod_password::onMenuDeleteConfirm(), onModuleRetryConfirm(), cdc::mod_vcard::onReceivedDeleteConfirm(), cdc::mod_gpg::onResetConfirm(), cdc::mod_password::onTypePassword(), cdc::mod_gpg::onWizardCurve(), cdc::mod_fido2::promptComplete(), runTropicCacheCleanup(), runTropicCacheRebuild(), cdc::mod_ble_serial::BleSerialModule::toggle(), toggleBluetoothEnable(), wifiConnect(), wifiNtpSync(), cdc::mod_2fa::wizardFinish(), cdc::mod_password::wizardFinish(), and cdc::mod_vcard::wizardFinish().
| void cdc::ui::showToastTask | ( | const char * | message, |
| uint16_t | durationMs = 0 ) |
Shows a task/progress toast message.
Show a task toast with hourglass icon (default: until dismissed)
| message | Toast message text. |
| durationMs | Auto-dismiss duration in milliseconds. |
Definition at line 265 of file ToastView.cpp.
References showToastInternal(), and cdc::ui::ToastView::TASK.
Referenced by cdc::ui::WifiHandlers::connect(), runTropicCacheCleanup(), runTropicCacheRebuild(), and wifiNtpSync().
| void cdc::ui::showWifiMainMenu | ( | ) |
Shows top-level Wi-Fi menu and reloads stored configuration.
Definition at line 239 of file WifiMenuUi.cpp.
References cdc::ui::ViewStack::instance(), cdc::ui::WifiHandlers::instance(), cdc::ui::WifiHandlers::loadConfig(), onWifiMainSelect(), cdc::ui::ViewStack::push(), rebuildWifiMainMenu(), and s_wifiMainMenu.
Referenced by onToolsSelect().
|
static |
Sorts BLE scan results by RSSI descending.
Definition at line 130 of file BluetoothMenuUi.cpp.
References s_bleScanCount, and s_bleScanResults.
Referenced by startBluetoothScan().
|
static |
Sorts scan results by RSSI descending.
Sorts scanned networks by signal strength in descending order.
Definition at line 345 of file WifiMenuUi.cpp.
References s_wifiScanCount, and s_wifiScanResults.
Referenced by wifiStartScan().
|
static |
Starts BLE scan and opens result list.
Runs BLE device scan and displays results in a list view.
Definition at line 608 of file BluetoothMenuUi.cpp.
References BLE_MAX_SCAN_RESULTS, BLE_SCAN_TIMEOUT_MS, cdc::hal::getBluetoothControllerInstance(), cdc::ui::ViewStack::hideModal(), cdc::ui::ViewStack::instance(), LOG_I, cdc::ui::ViewStack::push(), renderBleRow(), s_bleScanCount, s_bleScanItems, s_bleScanResults, s_bleScanView, showToastError(), showToastInfo(), sortBleScanResults(), TAG, and tr().
Referenced by onBluetoothMenuSelect().
|
static |
Toggles BLE controller enabled state.
Toggles BLE enable state and refreshes related menus.
Definition at line 256 of file BluetoothMenuUi.cpp.
References cdc::hal::getBluetoothControllerInstance(), rebuildBluetoothMenu(), rebuildToolsMenu(), showToastError(), showToastInfo(), showToastSuccess(), and tr().
Referenced by onBluetoothMenuSelect().
|
static |
Definition at line 479 of file AppUi.cpp.
References cdc::hal::getBluetoothControllerInstance().
|
inline |
Look up a translation by string key.
Definition at line 208 of file I18n.h.
References cdc::ui::I18n::instance(), and cdc::ui::I18n::tr().
Referenced by cdc::mod_2fa::ble_chalresp_tick(), buildHardwareInfoText(), cdc::mod_gpg::confirmReset(), cdc::ui::WifiHandlers::connect(), enterShipModeMenu(), cdc::mod_fido2::fido2_ui_get_label(), cdc::mod_fido2::fido2_ui_user_presence_callback(), cdc::ui::T9InputView::forceDigit(), cdc::mod_2fa::OathCodeView::getFooterHint(), cdc::plugin_manager::PluginListView::getFooterHint(), cdc::ui::DateInputView::getFooterHint(), cdc::ui::InfoView::getFooterHint(), cdc::ui::ListView::getFooterHint(), cdc::ui::LockScreenView::getFooterHint(), cdc::ui::PasswordT9View::getFooterHint(), cdc::ui::PinChangeView::getFooterHint(), cdc::ui::PinEntryView::getFooterHint(), cdc::ui::QRCodeView::getFooterHint(), cdc::ui::SliderView::getFooterHint(), cdc::ui::T9InputView::getFooterHint(), cdc::ui::TimeInputView::getFooterHint(), cdc::mod_sao::getInfoView(), cdc::mod_2fa::TwoFaModule::getMenuItems(), cdc::mod_ble_serial::BleSerialModule::getMenuItems(), cdc::mod_gpg::GpgModule::getMenuItems(), cdc::mod_password::PasswordModule::getMenuItems(), cdc::mod_sao::SaoModule::getMenuItems(), cdc::mod_fido2::handleDelete(), msgTransferUiProcess(), cdc::mod_vcard::mstr(), onBluetoothMenuSelect(), cdc::plugin_manager::onCtxDisable(), cdc::plugin_manager::onCtxEnable(), cdc::mod_2fa::OathCodeView::onEnter(), onForgetConfirm(), cdc::mod_2fa::OathCodeView::onKey(), cdc::ui::LockScreenView::onKey(), cdc::mod_fido2::onListMenu(), cdc::mod_password::onListMenu(), cdc::mod_password::onMenuDelete(), cdc::mod_password::onMenuDeleteConfirm(), onModuleRetryConfirm(), onModuleSelect(), onPairedSelect(), cdc::mod_fido2::onPinFailure(), cdc::mod_fido2::onPromptApprove(), cdc::mod_gpg::onReceivedActionSelect(), cdc::mod_gpg::onReceivedDeleteConfirm(), cdc::mod_vcard::onReceivedDeleteConfirm(), cdc::mod_vcard::onReceivedMenu(), cdc::mod_gpg::onReceivedSignConfirm(), cdc::mod_vcard::onReceivedViewMenu(), cdc::mod_gpg::onResetConfirm(), cdc::plugin_manager::PluginListView::onResume(), cdc::mod_gpg::onSettingsSelect(), onShipModeConfirm(), cdc::mod_password::onTypePassword(), onWifiGatewayEntered(), onWifiNetmaskEntered(), onWifiScanSelect(), onWifiStaticIpEntered(), cdc::mod_2fa::onWizardAlgo(), cdc::mod_gpg::onWizardCurve(), cdc::mod_gpg::onWizardEmail(), cdc::mod_2fa::onWizardIssuer(), cdc::mod_2fa::onWizardName(), cdc::mod_gpg::onWizardName(), cdc::mod_password::onWizardPassword(), cdc::mod_2fa::onWizardSecret(), cdc::mod_password::onWizardTitle(), cdc::mod_password::onWizardTotp(), cdc::mod_2fa::onWizardType(), cdc::mod_password::onWizardUrl(), cdc::mod_password::onWizardUsername(), cdc::ui::T9InputView::processKey(), cdc::mod_fido2::promptComplete(), cdc::mod_2fa::pushAlgoStep(), cdc::mod_2fa::pushTouchStep(), cdc::mod_2fa::pushUsbCrStep(), rebuildBluetoothMenu(), rebuildExpertMenu(), rebuildLanguageMenu(), cdc::mod_2fa::rebuildList(), cdc::mod_fido2::rebuildList(), cdc::mod_password::rebuildList(), rebuildMainMenu(), cdc::mod_gpg::rebuildMenu(), rebuildMenuLabels(), rebuildModulesView(), rebuildPairedList(), cdc::mod_gpg::rebuildReceivedList(), rebuildToolsMenu(), rebuildWifiMainMenu(), cdc::mod_2fa::OathCodeView::render(), cdc::ui::BlePairingView::render(), cdc::ui::ConfirmView::render(), cdc::ui::PinChangeView::render(), cdc::ui::PinEntryView::render(), cdc::ui::QRCodeView::render(), cdc::plugin_manager::reportStartResult(), runTropicCacheCleanup(), runTropicCacheRebuild(), showBackupMenu(), cdc::ui::settings::showBadgeTextStep(), showBluetoothStatus(), cdc::mod_fido2::showDetail(), cdc::mod_password::showDetails(), showExpertMenu(), cdc::mod_gpg::showExport(), showHardwareInfo(), showMsgBeaconScan(), showPairedDevices(), cdc::mod_gpg::showReceivedDetail(), cdc::mod_gpg::showReceivedKeys(), cdc::mod_gpg::showSettings(), cdc::mod_gpg::showStatus(), startBluetoothScan(), cdc::plugin_manager::PluginManager::startPlugin(), cdc::mod_ble_serial::BleSerialModule::toggle(), toggleBluetoothEnable(), ui_init(), wifiConnect(), wifiDisconnect(), wifiNtpSync(), wifiShowAuthMenu(), wifiShowDetails(), wifiShowIpModeMenu(), wifiShowPasswordInput(), wifiStartScan(), cdc::mod_2fa::wizardEdit(), cdc::mod_password::wizardEdit(), cdc::mod_2fa::wizardFinish(), cdc::mod_password::wizardFinish(), cdc::mod_vcard::wizardFinish(), cdc::mod_2fa::wizardStart(), cdc::mod_gpg::wizardStart(), and cdc::mod_password::wizardStart().
| void cdc::ui::ui_init | ( | const UiDeps & | deps | ) |
Initializes App UI, builds all core views, and wires callbacks.
| deps | Hardware/service dependencies used by the UI runtime. |
Definition at line 764 of file AppUi.cpp.
References cdc::core::PinManager::BADGE_PIN_MAX, cdc::core::PinManager::BADGE_PIN_MIN, cdc::core::BLE_PAIRING_REQUEST, cdc::ui::settings::brightnessStepCallback(), CHARGING, cdc::ui::ViewStack::dispatchLongPress(), cdc::core::TropicSlotMap::errorMessage(), cdc::core::EventBus::eventMask(), cdc::hal::FAST_CHARGE, cdc::hal::getBluetoothControllerInstance(), cdc::hal::getRtcInstance(), INACTIVITY_TIMEOUT_MS, cdc::core::PinManager::init(), cdc::ui::I18n::init(), cdc::ui::settings::init(), cdc::ui::SleepManager::init(), cdc::core::EventBus::instance(), cdc::core::PinManager::instance(), cdc::core::TropicSlotMap::instance(), cdc::ui::I18n::instance(), cdc::ui::SleepManager::instance(), cdc::ui::ViewStack::instance(), cdc::core::MODULE_ERROR, msgTransferUiInit(), onBleNumericComparison(), onBlePairingRequestEvent(), cdc::ui::settings::onBrightnessChange(), cdc::ui::settings::onBrightnessSave(), cdc::ui::settings::onDateConfirm(), onDuressPinSet(), onInactivityTimeout(), onMainMenuSelect(), onModuleErrorEvent(), cdc::ui::settings::onPinChangeComplete(), onPinSuccess(), onPinVerify(), onSettingsSelect(), cdc::ui::settings::onSleepIntervalSave(), cdc::ui::settings::onTimeConfirm(), cdc::ui::settings::onTimezoneSave(), onToolsSelect(), onUnlockRequested(), cdc::hal::PRE_CHARGE, cdc::ui::ViewStack::push(), rebuildLanguageMenu(), rebuildMainMenu(), rebuildToolsMenu(), registerBackupSerialCommand(), s_antiBlockLockRequested, s_blePendingMutex, s_brightnessSlider, s_dateInput, s_deps, s_duressPinView, s_languageMenu, s_lastCharging, s_lastMinute, s_lastUsbConnected, s_lockScreen, s_mainMenu, s_pinChangeView, s_pinEntry, s_settingsItems, s_settingsMenu, s_sleepSlider, s_timeInput, s_timezoneSlider, s_toolsMenu, cdc::ui::settings::saveDisplayField(), cdc::ui::ViewStack::setInactivityTimeout(), cdc::ui::I18n::setOnLanguageChanged(), cdc::serial::SerialCmd::setTextCallback(), cdc::serial::SerialCmd::setTimeCallback(), SETTINGS_IDX_AUTO_SLEEP, SETTINGS_IDX_BADGE_TEXT, SETTINGS_IDX_BRIGHTNESS, SETTINGS_IDX_CHANGE_PIN, SETTINGS_IDX_COUNT, SETTINGS_IDX_LANGUAGE, SETTINGS_IDX_SET_DATE, SETTINGS_IDX_SET_TIME, SETTINGS_IDX_TIMEZONE, showToastAlertSticky(), cdc::core::EventBus::subscribe(), tr(), ui_rebuild_menus(), updatePowerStatusIcons(), and USB.
Referenced by initUi().
| void cdc::ui::ui_on_modules_ready | ( | ) |
Refreshes module-backed menus once module startup is complete.
Definition at line 1028 of file AppUi.cpp.
References rebuildMainMenu(), and rebuildToolsMenu().
Referenced by initModules().
| void cdc::ui::ui_process | ( | uint32_t | nowMs | ) |
Main UI tick: input processing, timeouts, status updates, and rendering.
| nowMs | Current monotonic time in milliseconds. |
Definition at line 1086 of file AppUi.cpp.
References cdc::ui::ViewStack::checkInactivity(), cdc::ui::SleepManager::checkLockScreenSleep(), clearKeypadBuffer(), cdc::ui::ViewStack::dispatchKey(), cdc::ui::ViewStack::dispatchTick(), cdc::ui::SleepManager::instance(), cdc::ui::ViewStack::instance(), cdc::hal::KEY_NONE, msgTransferUiProcess(), performAntiBlockLock(), cdc::ui::settings::processPendingBadgeText(), cdc::ui::ViewStack::render(), cdc::ui::SleepManager::resetTimer(), s_antiBlockLockRequested, s_deps, s_ignoreKeyUntilRelease, s_lockScreen, updateLockScreenClock(), and updatePowerStatusIcons().
Referenced by runMainLoopIteration().
| void cdc::ui::ui_rebuild_menus | ( | ) |
Rebuilds dynamic UI menus.
Re-runs all tr() lookups for settings, main and tools menus so that label pointers reflect the currently active i18n overlay. Must be called after the overlay has been (re)loaded.
Definition at line 1040 of file AppUi.cpp.
References rebuildMenuLabels().
Referenced by onModuleRetryConfirm(), onModuleSelect(), and ui_init().
|
static |
Updates the battery percentage indicator on the lock screen.
Pushes the current percentage when a battery is present, otherwise sets the indicator to the no-battery sentinel value (-1).
Definition at line 254 of file AppUi.cpp.
References BATTERY_SAMPLE_INTERVAL_MS, NO_BATTERY, s_deps, s_lastBatteryPresent, s_lastBatterySampleMs, and s_lockScreen.
Referenced by updatePowerStatusIcons().
|
static |
Updates lock-screen clock/date once per minute while lock screen is visible.
Definition at line 321 of file AppUi.cpp.
References cdc::ui::ViewStack::instance(), s_lastMinute, and s_lockScreen.
Referenced by ui_process().
| void cdc::ui::updatePowerStatusIcons | ( | ) |
Synchronizes lock-screen status icons with current hardware state.
Forward declaration for lock-screen power status icon refresh.
Definition at line 284 of file AppUi.cpp.
References BACKGROUND, BLE, CHARGING, cdc::hal::FAST_CHARGE, cdc::hal::getBluetoothControllerInstance(), cdc::hal::getWifiControllerInstance(), cdc::plugin_manager::PluginManager::hasBackgroundPlugin(), cdc::plugin_manager::PluginManager::instance(), cdc::hal::PRE_CHARGE, s_deps, s_lastBackgroundPlugin, s_lastBleEnabled, s_lastCharging, s_lastUsbConnected, s_lastWifiConnected, s_lockScreen, updateBatteryIndicator(), updateStatusIcon(), USB, and WIFI.
Referenced by ui_init(), and ui_process().
|
static |
Updates a single boolean-driven status icon on the lock screen.
Adds the icon when transitioning to active, removes it when transitioning to inactive, and updates the cached previous state. Performs no work when the state is unchanged.
| icon | Status icon identifier to toggle. |
| active | Current desired active state. |
| last | Reference to cached previous state, updated on change. |
Definition at line 238 of file AppUi.cpp.
References s_lockScreen.
Referenced by updatePowerStatusIcons().
|
static |
Connects using saved Wi-Fi configuration.
Connects to Wi-Fi using current saved configuration.
Definition at line 296 of file WifiMenuUi.cpp.
References cdc::hal::getWifiControllerInstance(), cdc::ui::ViewStack::hideModal(), cdc::ui::ViewStack::instance(), cdc::ui::WifiHandlers::instance(), rebuildWifiMainMenu(), showToastError(), showToastInfo(), showToastSuccess(), TOAST_DURATION_LONG_MS, and tr().
Referenced by onWifiMainSelect(), and wifiFinishSetup().
|
static |
Disconnects active Wi-Fi session.
Disconnects current Wi-Fi connection and refreshes menu state.
Definition at line 328 of file WifiMenuUi.cpp.
References cdc::ui::WifiHandlers::instance(), rebuildWifiMainMenu(), cdc::ui::WifiHandlers::setUserEnabled(), showToastInfo(), and tr().
Referenced by onWifiMainSelect().
|
static |
Persists wizard config and attempts connection.
Saves completed wizard configuration and connects to Wi-Fi.
Definition at line 619 of file WifiMenuUi.cpp.
References cdc::ui::ViewStack::instance(), cdc::ui::WifiHandlers::instance(), cdc::ui::ViewStack::pop(), s_wifiMainMenu, cdc::ui::WifiHandlers::saveConfig(), and wifiConnect().
Referenced by onWifiIpModeSelect(), and onWifiNetmaskEntered().
|
static |
Runs NTP synchronization via Wi-Fi.
Triggers NTP synchronization, connecting Wi-Fi first if required.
Definition at line 685 of file WifiMenuUi.cpp.
References cdc::ui::ViewStack::hideModal(), cdc::ui::ViewStack::instance(), cdc::ui::WifiHandlers::instance(), showToastError(), showToastSuccess(), showToastTask(), and tr().
Referenced by onWifiMainSelect().
|
static |
Starts Wi-Fi setup wizard flow.
Resets setup wizard state and begins network scan.
Definition at line 337 of file WifiMenuUi.cpp.
References cdc::ui::WifiHandlers::instance(), cdc::ui::WifiWizard::reset(), wifiStartScan(), and cdc::ui::WifiHandlers::wizard().
Referenced by onWifiMainSelect().
|
static |
Opens security/authentication selection menu.
Shows Wi-Fi authentication mode menu.
Definition at line 467 of file WifiMenuUi.cpp.
References cdc::ui::ViewStack::instance(), onWifiAuthSelect(), cdc::ui::ViewStack::push(), s_wifiAuthItems, s_wifiAuthLabels, s_wifiAuthMenu, tr(), and WIFI_AUTH_COUNT.
Referenced by onWifiScanSelect().
|
static |
Shows Wi-Fi details/info screen.
Builds and shows Wi-Fi status/details information view.
Definition at line 633 of file WifiMenuUi.cpp.
References cdc::hal::getWifiControllerInstance(), cdc::ui::WifiHandlers::instance(), s_wifiDetailsBuf, showInfo(), tr(), and WIFI_DETAILS_BUF_SIZE.
Referenced by onWifiMainSelect().
|
static |
Opens generic IP-related text input step.
Opens generic text input for one static-IP field.
| title | Input prompt title. |
| target | Initial field value. |
| targetSize | Size of target in bytes. |
| onComplete | Callback invoked with entered text. |
Definition at line 565 of file WifiMenuUi.cpp.
References showT9Input().
Referenced by onWifiGatewayEntered(), onWifiIpModeSelect(), onWifiNetmaskEntered(), and onWifiStaticIpEntered().
|
static |
Opens IP mode selection menu (DHCP/static).
Shows DHCP/static IP selection menu.
Definition at line 527 of file WifiMenuUi.cpp.
References cdc::ui::ViewStack::instance(), onWifiIpModeSelect(), cdc::ui::ViewStack::push(), s_wifiIpItems, s_wifiIpMenu, tr(), WIFI_IP_COUNT, WIFI_IP_DHCP, and WIFI_IP_STATIC.
Referenced by onWifiAuthSelect(), onWifiPasswordEntered(), and onWifiScanSelect().
|
static |
Opens password input for selected network.
Opens password input view for non-open Wi-Fi networks.
Definition at line 510 of file WifiMenuUi.cpp.
References onWifiPasswordEntered(), showT9Input(), and tr().
Referenced by onWifiAuthSelect(), and onWifiScanSelect().
|
static |
Starts network scan and opens scan result list.
Performs active Wi-Fi scan and opens scan result list view.
Definition at line 361 of file WifiMenuUi.cpp.
References cdc::hal::getWifiControllerInstance(), cdc::ui::ViewStack::hideModal(), cdc::ui::ViewStack::instance(), onWifiScanSelect(), cdc::ui::ViewStack::push(), renderWifiRow(), cdc::hal::WifiScanResult::rssi, s_wifiManualLabel, s_wifiScanCount, s_wifiScanItems, s_wifiScanResults, s_wifiScanView, cdc::hal::WifiScanResult::security, showToastError(), showToastInfo(), sortWifiScanResults(), cdc::hal::STA, tr(), WIFI_MAX_NETWORKS, and WIFI_SCAN_TIMEOUT_MS.
Referenced by wifiSetup().
| int cdc::ui::actualSize |
Definition at line 38 of file QRCodeView.cpp.
|
staticconstexpr |
Definition at line 149 of file AppUi.cpp.
Referenced by updateBatteryIndicator().
|
staticconstexpr |
Definition at line 334 of file BluetoothMenuUi.cpp.
Referenced by rOnServiceDiscovered().
|
staticconstexpr |
Definition at line 333 of file BluetoothMenuUi.cpp.
Referenced by bleResolveTick().
|
staticconstexpr |
Definition at line 39 of file BluetoothMenuUi.cpp.
Referenced by rebuildPairedList().
|
staticconstexpr |
Definition at line 38 of file BluetoothMenuUi.cpp.
Referenced by startBluetoothScan().
|
staticconstexpr |
Definition at line 335 of file BluetoothMenuUi.cpp.
Referenced by bleResolveTick().
|
staticconstexpr |
Definition at line 336 of file BluetoothMenuUi.cpp.
Referenced by bleResolveTick().
|
staticconstexpr |
Definition at line 40 of file BluetoothMenuUi.cpp.
Referenced by startBluetoothScan().
|
staticconstexpr |
PSRAM-backed text buffer used for BLE status details.
Definition at line 64 of file BluetoothMenuUi.cpp.
Referenced by showBluetoothStatus().
|
staticconstexpr |
Definition at line 36 of file BluetoothMenuUi.cpp.
Referenced by rebuildBluetoothMenu().
|
staticconstexpr |
Definition at line 15 of file LockScreenView.h.
| Gdey029T94* cdc::ui::display |
Definition at line 40 of file QRCodeView.cpp.
Referenced by buildHardwareInfoText(), cdc::ui::CanvasView::getBodySize(), cdc::ui::settings::init(), cdc::ui::LockScreenView::onEnter(), cdc::ui::LockScreenView::onResume(), cdc::ui::BlePairingPromptView::render(), cdc::ui::BlePairingView::render(), cdc::ui::CanvasView::render(), cdc::ui::ColorPickerView::render(), cdc::ui::ConfirmView::render(), cdc::ui::ContextMenuView::render(), cdc::ui::DateInputView::render(), cdc::ui::InfoView::render(), cdc::ui::ListView::render(), cdc::ui::LockScreenView::render(), cdc::ui::MessageBox::render(), cdc::ui::PasswordT9View::render(), cdc::ui::PinChangeView::render(), cdc::ui::PinEntryView::render(), cdc::ui::QRCodeView::render(), cdc::ui::SliderView::render(), cdc::ui::T9InputView::render(), cdc::ui::TimeInputView::render(), cdc::ui::ToastView::render(), cdc::ui::ViewStack::render(), and cdc::ui::LockScreenView::toggleBacklight().
|
staticconstexpr |
Definition at line 54 of file ExpertMenuUi.cpp.
Referenced by onExpertMenuSelect(), and rebuildExpertMenu().
|
staticconstexpr |
Definition at line 55 of file ExpertMenuUi.cpp.
Referenced by rebuildExpertMenu().
|
staticconstexpr |
Expert menu sizing constants.
Definition at line 26 of file ExpertMenuUi.cpp.
Referenced by rebuildExpertMenu().
|
staticconstexpr |
Definition at line 53 of file ExpertMenuUi.cpp.
Referenced by onExpertMenuSelect(), and rebuildExpertMenu().
|
staticconstexpr |
|
static |
Definition at line 47 of file ExpertMenuUi.cpp.
Referenced by onExpertMenuSelect(), and rebuildExpertMenu().
|
static |
Definition at line 41 of file ExpertMenuUi.cpp.
Referenced by onExpertMenuSelect(), and rebuildExpertMenu().
|
staticconstexpr |
Move selection down (numeric '8').
Definition at line 35 of file KeyCodes.h.
Referenced by cdc::ui::ContextMenuView::onKey(), cdc::ui::InfoView::onKey(), cdc::ui::ListView::onKey(), cdc::ui::InfoView::onLongPress(), and cdc::ui::ListView::onLongPress().
|
staticconstexpr |
Open context menu / digit '3'.
Definition at line 47 of file KeyCodes.h.
Referenced by cdc::ui::InfoView::onKey(), cdc::ui::ListView::onKey(), and cdc::ui::LockScreenView::onKey().
|
staticconstexpr |
Cancel / Back / Backspace.
Definition at line 44 of file KeyCodes.h.
Referenced by cdc::ui::BlePairingPromptView::onKey(), cdc::ui::BlePairingView::onKey(), cdc::ui::CanvasView::onKey(), cdc::ui::ColorPickerView::onKey(), cdc::ui::ConfirmView::onKey(), cdc::ui::ContextMenuView::onKey(), cdc::ui::DateInputView::onKey(), cdc::ui::InfoView::onKey(), cdc::ui::ListView::onKey(), cdc::ui::MessageBox::onKey(), cdc::ui::PinChangeView::onKey(), cdc::ui::PinEntryView::onKey(), cdc::ui::SliderView::onKey(), cdc::ui::T9InputView::onKey(), cdc::ui::TimeInputView::onKey(), cdc::ui::ToastView::onKey(), and cdc::ui::T9InputView::onLongPress().
|
staticconstexpr |
Center select / digit '5'.
Definition at line 38 of file KeyCodes.h.
|
staticconstexpr |
Move selection up (numeric '2').
Definition at line 32 of file KeyCodes.h.
Referenced by cdc::ui::ContextMenuView::onKey(), cdc::ui::InfoView::onKey(), cdc::ui::ListView::onKey(), cdc::ui::InfoView::onLongPress(), and cdc::ui::ListView::onLongPress().
|
staticconstexpr |
Confirm / OK / Save.
Definition at line 41 of file KeyCodes.h.
Referenced by cdc::ui::BlePairingPromptView::onKey(), cdc::ui::ColorPickerView::onKey(), cdc::ui::ConfirmView::onKey(), cdc::ui::ContextMenuView::onKey(), cdc::ui::DateInputView::onKey(), cdc::ui::InfoView::onKey(), cdc::ui::ListView::onKey(), cdc::ui::MessageBox::onKey(), cdc::ui::PinChangeView::onKey(), cdc::ui::PinEntryView::onKey(), cdc::ui::SliderView::onKey(), cdc::ui::T9InputView::onKey(), cdc::ui::TimeInputView::onKey(), cdc::ui::ToastView::onKey(), and cdc::ui::PasswordT9View::onLongPress().
|
constexpr |
Number of entries in the canonical font table.
Definition at line 24 of file Fonts.h.
Referenced by getGfxFont().
|
staticconstexpr |
Definition at line 358 of file BluetoothMenuUi.cpp.
Referenced by bleResolveStop().
|
static |
Definition at line 484 of file AppUi.cpp.
Referenced by rebuildToolsMenu().
|
staticconstexpr |
Definition at line 17 of file SleepManager.h.
Referenced by cdc::ui::SleepManager::checkLockScreenSleep().
|
staticconstexpr |
Menu sizing and inactivity timeout constants.
Definition at line 59 of file AppUi.cpp.
Referenced by rebuildMainMenu().
|
staticconstexpr |
Storage for dynamic context-menu items contributed by modules.
Definition at line 267 of file LockScreenView.cpp.
Referenced by cdc::ui::LockScreenView::onKey().
|
staticconstexpr |
Upper bound on languages shown in the picker (English + overlay files).
Definition at line 82 of file AppUi.cpp.
Referenced by rebuildLanguageMenu().
|
staticconstexpr |
Definition at line 273 of file LockScreenView.cpp.
Referenced by cdc::ui::LockScreenView::onKey().
|
staticconstexpr |
Definition at line 268 of file LockScreenView.cpp.
Referenced by cdc::ui::LockScreenView::onKey().
|
staticconstexpr |
Definition at line 20 of file SleepManager.h.
Referenced by cdc::ui::SleepManager::addSleepInhibitor().
|
staticconstexpr |
Definition at line 27 of file ExpertMenuUi.cpp.
Referenced by rebuildModulesView().
|
staticconstexpr |
Definition at line 13 of file WifiHandlers.h.
Referenced by cdc::ui::WifiHandlers::syncNtp().
| int cdc::ui::offsetX |
Definition at line 35 of file QRCodeView.cpp.
| int cdc::ui::offsetY |
Definition at line 36 of file QRCodeView.cpp.
|
static |
Definition at line 157 of file AppUi.cpp.
Referenced by ui_init(), and ui_process().
|
static |
Definition at line 110 of file AppUi.cpp.
Referenced by onBleNumericComparison(), onBlePairingRequestEvent(), and ui_init().
|
static |
Definition at line 53 of file BluetoothMenuUi.cpp.
Referenced by bleResolveBeginNext(), bleResolveStart(), sortBleScanResults(), and startBluetoothScan().
|
static |
Definition at line 51 of file BluetoothMenuUi.cpp.
Referenced by startBluetoothScan().
|
static |
Definition at line 52 of file BluetoothMenuUi.cpp.
Referenced by bleDeviceNeedsName(), bleResolveBeginNext(), bleResolveTick(), sortBleScanResults(), and startBluetoothScan().
|
static |
BLE scan result list state.
Definition at line 50 of file BluetoothMenuUi.cpp.
Referenced by bleResolveTick(), and startBluetoothScan().
|
static |
Definition at line 65 of file BluetoothMenuUi.cpp.
Referenced by showBluetoothStatus().
|
static |
Definition at line 45 of file BluetoothMenuUi.cpp.
Referenced by rebuildBluetoothMenu().
|
static |
Bluetooth menu and scan state.
Definition at line 44 of file BluetoothMenuUi.cpp.
Referenced by rebuildBluetoothMenu(), and showBluetoothMenu().
|
static |
Definition at line 47 of file BluetoothMenuUi.cpp.
Referenced by onBluetoothMenuSelect(), and rebuildBluetoothMenu().
|
static |
Definition at line 46 of file BluetoothMenuUi.cpp.
Referenced by onBluetoothMenuSelect(), and rebuildBluetoothMenu().
|
static |
Definition at line 90 of file AppUi.cpp.
Referenced by onSettingsSelect(), and ui_init().
|
static |
Definition at line 274 of file LockScreenView.cpp.
Referenced by cdc::ui::LockScreenView::onKey().
|
static |
Definition at line 94 of file AppUi.cpp.
Referenced by onSettingsSelect(), and ui_init().
|
static |
Runtime dependencies provided during ui_init.
Definition at line 113 of file AppUi.cpp.
Referenced by clearKeypadBuffer(), onPinSuccess(), prepareForBootloaderReset(), ui_init(), ui_process(), updateBatteryIndicator(), and updatePowerStatusIcons().
|
static |
Definition at line 97 of file AppUi.cpp.
Referenced by showDuressPinSetup(), and ui_init().
|
static |
Definition at line 349 of file BluetoothMenuUi.cpp.
Referenced by bleResolveClearEvents(), bleResolveTick(), and rOnConnect().
|
static |
Definition at line 353 of file BluetoothMenuUi.cpp.
Referenced by bleResolveClearEvents(), bleResolveTick(), and rOnConnect().
|
static |
Definition at line 352 of file BluetoothMenuUi.cpp.
Referenced by bleResolveCleanupToSettle(), bleResolveClearEvents(), bleResolveTick(), and rOnDisconnect().
|
static |
Definition at line 350 of file BluetoothMenuUi.cpp.
Referenced by bleResolveClearEvents(), bleResolveTick(), and rOnServiceDiscovered().
|
static |
Definition at line 351 of file BluetoothMenuUi.cpp.
Referenced by bleResolveClearEvents(), bleResolveTick(), and rOnCharRead().
|
static |
Definition at line 354 of file BluetoothMenuUi.cpp.
Referenced by bleResolveClearEvents(), bleResolveTick(), and rOnServiceDiscovered().
|
static |
Definition at line 60 of file ExpertMenuUi.cpp.
Referenced by rebuildExpertMenu().
|
static |
Static view pointers and menu item storage for expert/module views.
Definition at line 59 of file ExpertMenuUi.cpp.
Referenced by rebuildExpertMenu(), and showExpertMenu().
|
static |
Definition at line 62 of file ExpertMenuUi.cpp.
Referenced by onExpertMenuSelect(), and rebuildExpertMenu().
|
static |
Definition at line 61 of file ExpertMenuUi.cpp.
Referenced by onExpertMenuSelect(), and rebuildExpertMenu().
|
static |
Definition at line 61 of file BluetoothMenuUi.cpp.
Referenced by onForgetConfirm(), and onPairedSelect().
|
static |
Prevents stale key events directly after unlock transition.
Definition at line 153 of file AppUi.cpp.
Referenced by onInactivityTimeout(), onUnlockRequested(), performAntiBlockLock(), and ui_process().
|
static |
Definition at line 130 of file AppUi.cpp.
Referenced by onLanguageSelect(), and rebuildLanguageMenu().
|
static |
Definition at line 131 of file AppUi.cpp.
Referenced by onLanguageSelect(), and rebuildLanguageMenu().
|
static |
Language menu backing storage (filled dynamically from overlay files).
Definition at line 129 of file AppUi.cpp.
Referenced by rebuildLanguageMenu().
|
static |
Definition at line 93 of file AppUi.cpp.
Referenced by onSettingsSelect(), rebuildLanguageMenu(), and ui_init().
|
static |
Definition at line 141 of file AppUi.cpp.
Referenced by updatePowerStatusIcons().
|
static |
Definition at line 142 of file AppUi.cpp.
Referenced by updateBatteryIndicator().
|
static |
Definition at line 150 of file AppUi.cpp.
Referenced by updateBatteryIndicator().
|
static |
Definition at line 140 of file AppUi.cpp.
Referenced by updatePowerStatusIcons().
|
static |
Definition at line 138 of file AppUi.cpp.
Referenced by ui_init(), and updatePowerStatusIcons().
|
static |
Last rendered minute for lock-screen clock throttling.
Definition at line 134 of file AppUi.cpp.
Referenced by ui_init(), and updateLockScreenClock().
|
static |
Last known status-icon inputs to avoid redundant updates.
Definition at line 137 of file AppUi.cpp.
Referenced by ui_init(), and updatePowerStatusIcons().
|
static |
Definition at line 139 of file AppUi.cpp.
Referenced by updatePowerStatusIcons().
|
static |
Static UI state and lazily constructed view pointers.
Definition at line 85 of file AppUi.cpp.
Referenced by isBadgeLocked(), performAntiBlockLock(), prepareForBootloaderReset(), ui_init(), ui_process(), updateBatteryIndicator(), updateLockScreenClock(), updatePowerStatusIcons(), and updateStatusIcon().
|
static |
Static lock-screen instance pointer for C-style callbacks.
Definition at line 190 of file LockScreenView.cpp.
Referenced by cdc::ui::LockScreenView::onEnter(), and onLightMenuCallback().
|
static |
Definition at line 87 of file AppUi.cpp.
Referenced by onPinSuccess(), rebuildMainMenu(), and ui_init().
|
static |
Main-menu backing storage for module and fixed menu entries.
Definition at line 116 of file AppUi.cpp.
Referenced by rebuildMainMenu().
|
static |
Definition at line 117 of file AppUi.cpp.
Referenced by onMainMenuSelect(), and rebuildMainMenu().
|
static |
Definition at line 118 of file AppUi.cpp.
Referenced by getMainMenuCount(), getPluginsIndex(), getSettingsIndex(), getToolsIndex(), onMainMenuSelect(), and rebuildMainMenu().
|
static |
Definition at line 317 of file LockScreenView.cpp.
Referenced by cdc::ui::LockScreenView::onKey().
|
static |
Definition at line 276 of file LockScreenView.cpp.
Referenced by cdc::ui::LockScreenView::onKey().
|
static |
Definition at line 275 of file LockScreenView.cpp.
Referenced by moduleContextCallback0(), moduleContextCallback1(), moduleContextCallback2(), moduleContextCallback3(), moduleContextCallback4(), moduleContextCallback5(), moduleContextCallback6(), and cdc::ui::LockScreenView::onKey().
|
static |
Definition at line 66 of file ExpertMenuUi.cpp.
Referenced by rebuildModulesView().
|
static |
Definition at line 65 of file ExpertMenuUi.cpp.
Referenced by rebuildModulesView().
|
static |
Definition at line 64 of file ExpertMenuUi.cpp.
Referenced by rebuildModulesView(), and showModulesView().
|
static |
Definition at line 58 of file BluetoothMenuUi.cpp.
Referenced by onPairedSelect(), and rebuildPairedList().
|
static |
Definition at line 60 of file BluetoothMenuUi.cpp.
Referenced by onPairedSelect(), and rebuildPairedList().
|
static |
Definition at line 57 of file BluetoothMenuUi.cpp.
Referenced by rebuildPairedList().
|
static |
Definition at line 59 of file BluetoothMenuUi.cpp.
Referenced by rebuildPairedList().
|
static |
Paired (bonded) device list state.
Definition at line 56 of file BluetoothMenuUi.cpp.
Referenced by rebuildPairedList(), and showPairedDevices().
|
static |
Definition at line 98 of file AppUi.cpp.
Referenced by onBlePairingRequestEvent().
|
static |
Definition at line 109 of file AppUi.cpp.
Referenced by onBleNumericComparison(), and onBlePairingRequestEvent().
|
static |
Definition at line 96 of file AppUi.cpp.
Referenced by onSettingsSelect(), and ui_init().
|
static |
Definition at line 86 of file AppUi.cpp.
Referenced by onUnlockRequested(), and ui_init().
|
static |
Definition at line 341 of file LockScreenView.cpp.
Referenced by cdc::ui::LockScreenView::onKey().
|
static |
Definition at line 279 of file LockScreenView.cpp.
Referenced by cdc::ui::LockScreenView::onKey().
|
static |
Definition at line 278 of file LockScreenView.cpp.
Referenced by cdc::ui::LockScreenView::onKey(), pluginContextCallback0(), pluginContextCallback1(), pluginContextCallback2(), and pluginContextCallback3().
|
static |
Definition at line 99 of file AppUi.cpp.
Referenced by onMainMenuSelect().
| struct { ... } cdc::ui::s_qrCtx |
QR rendering context used by callback-driven rendering.
Referenced by qrDisplayCallback().
|
static |
Definition at line 341 of file BluetoothMenuUi.cpp.
Referenced by bleResolveStart(), bleResolveStop(), bleResolveTick(), rOnCharRead(), rOnConnect(), rOnDisconnect(), and rOnServiceDiscovered().
|
static |
Definition at line 343 of file BluetoothMenuUi.cpp.
Referenced by bleResolveBeginNext(), bleResolveCleanupToSettle(), bleResolveStart(), bleResolveStop(), bleResolveTick(), rOnCharRead(), rOnDisconnect(), and rOnServiceDiscovered().
|
static |
Definition at line 345 of file BluetoothMenuUi.cpp.
Referenced by bleResolveBeginNext(), and bleResolveTick().
|
static |
Definition at line 342 of file BluetoothMenuUi.cpp.
Referenced by bleResolveBeginNext(), bleResolveStart(), and bleResolveTick().
|
static |
Definition at line 355 of file BluetoothMenuUi.cpp.
Referenced by bleResolveTick(), and rOnCharRead().
|
static |
Definition at line 344 of file BluetoothMenuUi.cpp.
Referenced by bleResolveBeginNext(), bleResolveStart(), bleResolveStop(), and bleResolveTick().
|
static |
Definition at line 340 of file BluetoothMenuUi.cpp.
Referenced by bleResolveBeginNext(), bleResolveCleanupToSettle(), bleResolveStart(), bleResolveStop(), and bleResolveTick().
|
static |
Definition at line 346 of file BluetoothMenuUi.cpp.
Referenced by bleResolveCleanupToSettle(), and bleResolveTick().
|
static |
Settings menu backing storage.
Definition at line 126 of file AppUi.cpp.
Referenced by rebuildMenuLabels(), and ui_init().
|
static |
Definition at line 89 of file AppUi.cpp.
Referenced by onMainMenuSelect(), rebuildMenuLabels(), and ui_init().
|
static |
Convenience helper functions.
Definition at line 197 of file ConfirmView.cpp.
Referenced by showConfirm().
|
static |
Convenience helper functions.
Definition at line 274 of file ContextMenuView.cpp.
Referenced by showContextMenu().
|
static |
Convenience factory/helper function.
Definition at line 301 of file InfoView.cpp.
Referenced by showInfo().
|
static |
Convenience factory/helper function.
Definition at line 427 of file ListView.cpp.
Referenced by showListView().
|
static |
Convenience helper functions.
Definition at line 201 of file MessageBox.cpp.
Referenced by showMessage().
|
static |
Convenience factory/helper function.
Definition at line 313 of file PinEntryView.cpp.
Referenced by showPinEntry().
|
static |
Convenience factory/helper function.
Definition at line 342 of file QRCodeView.cpp.
Referenced by showQRCode().
|
static |
Convenience factory/helper function.
Definition at line 263 of file SliderView.cpp.
Referenced by showSlider().
|
static |
Convenience factory/helper function.
Definition at line 381 of file T9InputView.cpp.
Referenced by showT9Input().
|
static |
Convenience helper functions.
Definition at line 202 of file ToastView.cpp.
Referenced by showToastInternal().
|
static |
Definition at line 91 of file AppUi.cpp.
Referenced by onSettingsSelect(), and ui_init().
|
static |
Definition at line 95 of file AppUi.cpp.
Referenced by onSettingsSelect(), and ui_init().
|
static |
Definition at line 92 of file AppUi.cpp.
Referenced by onSettingsSelect(), and ui_init().
|
static |
Definition at line 359 of file BluetoothMenuUi.cpp.
Referenced by bleResolveStart(), and bleResolveStop().
|
static |
Definition at line 360 of file BluetoothMenuUi.cpp.
Referenced by bleResolveStart(), and bleResolveStop().
|
static |
Definition at line 362 of file BluetoothMenuUi.cpp.
Referenced by bleResolveStart(), and bleResolveStop().
|
static |
Definition at line 361 of file BluetoothMenuUi.cpp.
Referenced by bleResolveStart(), and bleResolveStop().
|
static |
Tools-menu backing storage for fixed and module entries.
Definition at line 121 of file AppUi.cpp.
Referenced by rebuildToolsMenu().
|
static |
Definition at line 88 of file AppUi.cpp.
Referenced by onMainMenuSelect(), rebuildToolsMenu(), and ui_init().
|
static |
Definition at line 123 of file AppUi.cpp.
Referenced by onToolsSelect(), and rebuildToolsMenu().
|
static |
Definition at line 122 of file AppUi.cpp.
Referenced by onToolsSelect(), and rebuildToolsMenu().
|
static |
Definition at line 73 of file WifiMenuUi.cpp.
Referenced by wifiShowAuthMenu().
|
static |
Definition at line 79 of file WifiMenuUi.cpp.
Referenced by wifiShowAuthMenu().
|
static |
Definition at line 67 of file WifiMenuUi.cpp.
Referenced by wifiShowAuthMenu().
|
static |
Definition at line 85 of file WifiMenuUi.cpp.
Referenced by wifiShowDetails().
|
static |
Definition at line 74 of file WifiMenuUi.cpp.
Referenced by wifiShowIpModeMenu().
|
static |
Definition at line 68 of file WifiMenuUi.cpp.
Referenced by wifiShowIpModeMenu().
|
static |
Definition at line 70 of file WifiMenuUi.cpp.
Referenced by rebuildWifiMainMenu().
|
static |
Definition at line 65 of file WifiMenuUi.cpp.
Referenced by rebuildWifiMainMenu(), showWifiMainMenu(), and wifiFinishSetup().
|
static |
Definition at line 76 of file WifiMenuUi.cpp.
Referenced by wifiStartScan().
|
static |
Definition at line 72 of file WifiMenuUi.cpp.
Referenced by onWifiMainSelect(), and rebuildWifiMainMenu().
|
static |
Definition at line 71 of file WifiMenuUi.cpp.
Referenced by onWifiMainSelect(), and rebuildWifiMainMenu().
|
static |
Definition at line 78 of file WifiMenuUi.cpp.
Referenced by sortWifiScanResults(), and wifiStartScan().
|
static |
Definition at line 75 of file WifiMenuUi.cpp.
Referenced by wifiStartScan().
|
static |
Definition at line 77 of file WifiMenuUi.cpp.
Referenced by sortWifiScanResults(), and wifiStartScan().
|
static |
Definition at line 66 of file WifiMenuUi.cpp.
Referenced by wifiStartScan().
| int cdc::ui::scale |
Definition at line 37 of file QRCodeView.cpp.
Referenced by qrDisplayCallback().
| bool cdc::ui::sizingPass |
Definition at line 39 of file QRCodeView.cpp.
|
static |
Definition at line 21 of file BluetoothMenuUi.cpp.
Referenced by cdc::ui::ViewStack::acquireExclusive(), cdc::ui::SleepManager::addSleepInhibitor(), bleResolveBeginNext(), bleResolveStart(), bleResolveTick(), cdc::ui::ViewStack::checkInactivity(), cdc::ui::T9InputView::forceDigit(), cdc::ui::ContextMenuView::init(), cdc::ui::I18n::init(), cdc::ui::InfoView::init(), cdc::ui::ListView::init(), cdc::ui::MessageBox::init(), cdc::ui::QRCodeView::init(), cdc::ui::T9InputView::init(), cdc::ui::I18n::loadOverlay(), cdc::ui::DateInputView::onKey(), cdc::ui::MessageBox::onKey(), cdc::ui::TimeInputView::onKey(), cdc::ui::BlePairingPromptView::onTick(), cdc::ui::MessageBox::onTick(), qrDisplayCallback(), cdc::ui::ViewStack::releaseExclusive(), cdc::ui::SleepManager::removeSleepInhibitor(), cdc::ui::PinEntryView::render(), cdc::ui::ViewStack::replace(), cdc::ui::ViewStack::setInactivityTimeout(), cdc::ui::I18n::setLanguageCode(), cdc::ui::ViewStack::showModal(), and startBluetoothScan().
|
staticconstexpr |
Definition at line 14 of file PasswordT9View.cpp.
Referenced by cdc::ui::InfoView::render(), cdc::ui::PasswordT9View::render(), and cdc::ui::T9InputView::render().
|
staticconstexpr |
Definition at line 13 of file PasswordT9View.cpp.
Referenced by cdc::ui::ColorPickerView::render(), cdc::ui::PasswordT9View::render(), and cdc::ui::T9InputView::render().
|
staticconstexpr |
Layout constants mirror the ones used by T9InputView.
Definition at line 12 of file PasswordT9View.cpp.
Referenced by cdc::ui::CanvasView::render(), cdc::ui::DateInputView::render(), cdc::ui::InfoView::render(), cdc::ui::ListView::render(), cdc::ui::PasswordT9View::render(), cdc::ui::PinChangeView::render(), cdc::ui::PinEntryView::render(), cdc::ui::SliderView::render(), cdc::ui::T9InputView::render(), and cdc::ui::TimeInputView::render().
|
staticconstexpr |
Definition at line 30 of file AppUiInternal.h.
Referenced by onModuleErrorEvent(), and wifiConnect().
|
staticconstexpr |
Definition at line 29 of file AppUiInternal.h.
Referenced by onModuleRetryConfirm(), onModuleSelect(), onShipModeConfirm(), onWifiGatewayEntered(), onWifiNetmaskEntered(), and onWifiStaticIpEntered().
|
staticconstexpr |
Definition at line 28 of file AppUiInternal.h.
Referenced by onModuleRetryConfirm().
|
staticconstexpr |
Definition at line 490 of file AppUi.cpp.
Referenced by onToolsSelect(), and rebuildToolsMenu().
|
staticconstexpr |
Definition at line 63 of file AppUi.cpp.
Referenced by rebuildToolsMenu().
|
staticconstexpr |
Definition at line 9 of file WifiHandlers.h.
Referenced by cdc::ui::WifiHandlers::getConnectTimeoutMs().
|
staticconstexpr |
Definition at line 11 of file WifiHandlers.h.
Referenced by cdc::serial::cmdWifiTimeout(), cdc::ui::WifiHandlers::getConnectTimeoutMs(), and cdc::ui::WifiHandlers::setConnectTimeoutMs().
|
staticconstexpr |
Definition at line 10 of file WifiHandlers.h.
Referenced by cdc::serial::cmdWifiTimeout(), and cdc::ui::WifiHandlers::getConnectTimeoutMs().
|
staticconstexpr |
PSRAM-backed text buffer used for Wi-Fi details view.
Definition at line 84 of file WifiMenuUi.cpp.
Referenced by wifiShowDetails().
|
staticconstexpr |
Wi-Fi menu size limits.
Definition at line 26 of file WifiMenuUi.cpp.
Referenced by wifiStartScan().
|
staticconstexpr |
Static view pointers and wizard/scan state.
Definition at line 64 of file WifiMenuUi.cpp.
Referenced by onWifiMainSelect(), and rebuildWifiMainMenu().
|
staticconstexpr |
Definition at line 27 of file WifiMenuUi.cpp.
Referenced by rebuildWifiMainMenu().
|
staticconstexpr |
Definition at line 12 of file WifiHandlers.h.
Referenced by cdc::serial::cmdWifiScan(), and wifiStartScan().