|
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 | anim |
| namespace | layout |
| Centralized layout constants for cdc_views. | |
| namespace | mdfont |
| Font ids used by the styled-line model. | |
| namespace | qr |
| 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 | ImageView |
| Full-screen viewer for a decoded PNG/JPEG, dithered to the e-paper. More... | |
| class | InfoView |
| struct | ListItem |
| class | ListView |
| struct | StyledLine |
| One rendered logical line produced by the Markdown parser. More... | |
| struct | StyledLineSink |
| Sink the parser emits styled lines to (decouples model from storage). More... | |
| struct | MarkdownParseResult |
| Outcome of a parse run. More... | |
| class | MarkdownView |
| Scrollable viewer that renders a Markdown source. More... | |
| class | MessageBox |
| class | MonoSurface |
| 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(). | |
| using | HtmlViewerFn = void (*)(const char* title, const char* html, size_t len) |
Render an HTML document. html / title are UTF-8. | |
| using | UrlOpenerFn = void (*)(const char* url) |
Open a URL in the browser (enters the browser and loads it). url is UTF-8. | |
| using | ImageOpenerFn = void (*)(const char* path) |
Open a local image file by path (relative to the file explorer's current directory). path is UTF-8. | |
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 | showFirmwareCheck () |
| Opens the Firmware Check screen and pushes it onto the view stack. | |
| bool | firmwareCheckLastResult (char *out, size_t cap) |
Formats the last persisted upstream check into out. | |
| 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 void | onBlePairingLockedAccept (void *userData) |
| Lock-screen accept of a BLE pairing: drives PIN unlock, then pairs. | |
| 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. | |
| void | requestUnlockForTransfer (void(*onUnlocked)(void *), void *userData) |
| Wake the screen and start the PIN-unlock flow for a transfer accepted on the lock screen. | |
| 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. | |
| static void | onBlePairingUnlocked (void *) |
| Lock-screen accept of a numeric-comparison pairing. | |
| 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 hal::RefreshMode | strongerRefresh (hal::RefreshMode a, hal::RefreshMode b) |
| Returns the stronger of two refresh modes. | |
| static void | resetTextState (hal::IDisplay *display) |
| Reset the shared GFX text state to the defaults before a view renders. | |
| 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. | |
| void | setHtmlViewer (HtmlViewerFn fn) |
| Register the HTML viewer (called by the provider module at init). | |
| HtmlViewerFn | htmlViewer () |
| Current HTML viewer, or nullptr when none is registered. | |
| void | setUrlOpener (UrlOpenerFn fn) |
| Register the URL opener (called by the browser module at init). | |
| UrlOpenerFn | urlOpener () |
| Current URL opener, or nullptr when none is registered. | |
| void | setImageOpener (ImageOpenerFn fn) |
| Register the local-image opener (called by the file explorer at init). | |
| ImageOpenerFn | imageOpener () |
| Current image opener, or nullptr when none is registered. | |
| ImageView * | showImage (const char *title, const uint8_t *data, size_t len) |
| Decodes and shows an image on the view stack. | |
| 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. | |
| MarkdownParseResult | parseMarkdown (const char *src, size_t len, StyledLineSink &sink, size_t maxBytes) |
| Parses Markdown source into styled logical lines via a sink. | |
| MarkdownView * | showMarkdown (const char *title, const char *src, size_t len) |
| Parses and shows a Markdown source on the view stack. | |
| MarkdownView * | showPlainText (const char *title, const char *src, size_t len) |
| Shows a source as plain, unrendered text on the view stack. | |
| 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 void(* | s_transferUnlockCb )(void *) = nullptr |
| static void * | s_transferUnlockUd = nullptr |
| static uint16_t | s_blePairingPendingHandle = 0xFFFF |
| Connection handle of a numeric-comparison pairing accepted on the lock screen. | |
| 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 ImageView | s_sharedImageView |
| static InfoView | s_sharedInfoView |
| Convenience factory/helper function. | |
| static ListView | s_sharedListView |
| Convenience factory/helper function. | |
| static MarkdownView | s_sharedMarkdownView |
| 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 343 of file BluetoothMenuUi.cpp.
| using cdc::ui::HtmlViewerFn = void (*)(const char* title, const char* html, size_t len) |
Render an HTML document. html / title are UTF-8.
Definition at line 18 of file HtmlViewerHook.h.
| using cdc::ui::ImageOpenerFn = void (*)(const char* path) |
Open a local image file by path (relative to the file explorer's current directory). path is UTF-8.
Definition at line 37 of file HtmlViewerHook.h.
| using cdc::ui::UrlOpenerFn = void (*)(const char* url) |
Open a URL in the browser (enters the browser and loads it). url is UTF-8.
Definition at line 27 of file HtmlViewerHook.h.
|
strong |
| Enumerator | |
|---|---|
| Idle | |
| Begin | |
| Connecting | |
| Discovering | |
| Reading | |
| Settle | |
Definition at line 324 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_FORGET_BONDS | |
| BT_IDX_FIXED_COUNT | |
Definition at line 24 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 |
Block role of a styled line, used by the view to apply layout/markers.
| Enumerator | |
|---|---|
| Paragraph | |
| Heading | |
| Bullet | |
| Ordered | |
| Code | |
| Quote | |
| Rule | |
| Blank | |
Definition at line 25 of file MarkdownModel.h.
|
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 360 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 425 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 413 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 366 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 354 of file BluetoothMenuUi.cpp.
References cdc::hal::BleScanResult::mac.
Referenced by bleDeviceNeedsName().
|
static |
Definition at line 452 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 480 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 497 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 319 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 325 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 211 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 247 of file ExpertMenuUi.cpp.
References onShipModeConfirm(), showConfirm(), tr(), and cdc::ui::ConfirmView::WARNING.
| bool cdc::ui::firmwareCheckLastResult | ( | char * | out, |
| size_t | cap ) |
Formats the last persisted upstream check into out.
Reads the latest upstream release tag and the check date stored in NVS by the Firmware Check screen and renders them as e.g. "v0.7.3 (checked: 24.06.26)".
| out | Destination buffer. |
| cap | Size of out. |
Definition at line 327 of file FirmwareCheck.cpp.
References cdc::core::NvsScope::status().
Referenced by cdc::serial::cmdVersion().
| 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(), cdc::ui::CanvasView::marquee(), cdc::ui::LockScreenView::render(), and cdc::ui::MarkdownView::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 175 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 169 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 173 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 171 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 291 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::plugin_manager::onCtxUninstall(), 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().
| HtmlViewerFn cdc::ui::htmlViewer | ( | ) |
Current HTML viewer, or nullptr when none is registered.
Definition at line 12 of file HtmlViewerHook.cpp.
| ImageOpenerFn cdc::ui::imageOpener | ( | ) |
Current image opener, or nullptr when none is registered.
Definition at line 20 of file HtmlViewerHook.cpp.
Referenced by cdc::ui::MarkdownView::activateSelected().
|
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 728 of file AppUi.cpp.
References cdc::ui::ViewStack::current(), cdc::ui::ViewStack::depth(), cdc::ui::ViewStack::instance(), and s_lockScreen.
Referenced by onBlePairingRequestEvent().
|
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 428 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 437 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 742 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 |
Lock-screen accept of a BLE pairing: drives PIN unlock, then pairs.
Definition at line 816 of file AppUi.cpp.
References onBlePairingUnlocked(), and requestUnlockForTransfer().
Referenced by onBlePairingRequestEvent().
|
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 777 of file AppUi.cpp.
References cdc::ui::PendingPairing::connHandle, cdc::ui::ViewStack::instance(), isBadgeLocked(), onBlePairingLockedAccept(), cdc::ui::PendingPairing::passkey, s_blePairingPendingHandle, s_blePendingMutex, s_deps, s_pairingPrompt, s_pendingPairing, cdc::ui::ViewStack::showModal(), and cdc::ui::PendingPairing::valid.
Referenced by ui_init().
|
static |
Lock-screen accept of a numeric-comparison pairing.
The pairing code was already confirmed on the prompt; now require the badge PIN. On success onPinSuccess() unlocks and answers the pairing, after which the transfer's consent prompt surfaces on the unlocked badge.
Answers the lock-screen-accepted pairing once the unlock PIN succeeds.
Definition at line 811 of file AppUi.cpp.
References cdc::hal::getBluetoothControllerInstance(), and s_blePairingPendingHandle.
Referenced by onBlePairingLockedAccept().
|
static |
Handles Bluetooth menu selection.
Handles Bluetooth menu selection and dispatches actions.
| index | Selected menu index. |
| userData | Optional callback user data. |
Definition at line 192 of file BluetoothMenuUi.cpp.
References askConfirm(), 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 392 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 347 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 672 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 446 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 715 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 585 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 377 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 77 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 97 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 686 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 412 of file AppUi.cpp.
References cdc::core::ModuleRegistry::dispatchUnlock(), cdc::core::ModuleRegistry::instance(), cdc::ui::ViewStack::instance(), cdc::ui::ViewStack::replace(), s_deps, s_mainMenu, s_transferUnlockCb, and s_transferUnlockUd.
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 369 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 638 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 237 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 613 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 352 of file AppUi.cpp.
References clearKeypadBuffer(), cdc::ui::ViewStack::instance(), cdc::ui::ViewStack::push(), s_ignoreKeyUntilRelease, s_pinEntry, s_transferUnlockCb, and s_transferUnlockUd.
Referenced by requestUnlockForTransfer(), and 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.
| MarkdownParseResult cdc::ui::parseMarkdown | ( | const char * | src, |
| size_t | len, | ||
| StyledLineSink & | sink, | ||
| size_t | maxBytes ) |
Parses Markdown source into styled logical lines via a sink.
Emits one StyledLine per logical line (headings, list items, code, quote, rule, paragraph); pixel wrapping is left to the view. Heading font sizes are assigned dynamically: the least-prominent heading level present gets the smallest heading font, stepping up one size per higher-prominence level, so the number of distinct fonts used equals the number of distinct heading levels (a document using only # does not get the largest font). Unsupported constructs degrade to paragraph text.
| src | Markdown source (UTF-8/CP437). Must outlive the emitted spans. |
| len | Source length in bytes. |
| sink | Receives the styled lines in document order. |
| maxBytes | Truncation cap; bytes beyond are ignored and truncated set. |
Definition at line 91 of file MarkdownParser.cpp.
References Blank, cdc::ui::mdfont::Bold12pt, cdc::ui::mdfont::Bold18pt, cdc::ui::mdfont::Bold9pt, cdc::ui::mdfont::Builtin, Bullet, Code, cdc::ui::StyledLineSink::emit(), cdc::ui::StyledLine::font, Heading, cdc::ui::StyledLine::indent, cdc::ui::StyledLine::inverted, cdc::ui::StyledLine::kind, cdc::ui::StyledLine::len, cdc::ui::MarkdownParseResult::lineCount, Ordered, Paragraph, Quote, Rule, cdc::ui::StyledLine::text, and cdc::ui::MarkdownParseResult::truncated.
Referenced by cdc::ui::MarkdownView::init().
|
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 471 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 1129 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 335 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 143 of file BluetoothMenuUi.cpp.
References cdc::core::BLUETOOTH_MENU, 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 276 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 680 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 488 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 561 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 160 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 648 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 535 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 89 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().
| void cdc::ui::requestUnlockForTransfer | ( | void(* | onUnlocked )(void *), |
| void * | userData ) |
Wake the screen and start the PIN-unlock flow for a transfer accepted on the lock screen.
Wake the screen and run the PIN-unlock flow for a transfer accepted on the lock screen, then invoke onUnlocked(userData) on success.
On a successful unlock onUnlocked(userData) runs (so the caller answers the pending request and the transfer continues on the unlocked badge); on cancel or lockout the badge stays locked and the callback never fires.
Lets a feature surface its own request prompt over the lock screen and, once the user accepts, gate the action behind the badge PIN (mirrors FIDO2). The callback runs only after a successful unlock; cancel/lockout keeps the badge locked and never calls it.
Definition at line 436 of file AppUi.cpp.
References onUnlockRequested(), s_deps, s_transferUnlockCb, and s_transferUnlockUd.
Referenced by onBlePairingLockedAccept().
|
static |
Reset the shared GFX text state to the defaults before a view renders.
All views draw onto the same display singleton, so a view that leaves a large font or an inverted color set (e.g. a plugin canvas replaying its display list at 24 pt) would otherwise leak that state into the next view rendered on top (the T9 editor, a menu, a toast). Resetting here once means individual views no longer need their own defensive reset.
Definition at line 42 of file ViewStack.cpp.
References display.
Referenced by cdc::ui::ViewStack::render().
|
static |
Definition at line 399 of file BluetoothMenuUi.cpp.
References s_evtGotName, s_resolveActive, s_resolveConn, and s_resolveNameBuf.
Referenced by bleResolveStart().
|
static |
Definition at line 376 of file BluetoothMenuUi.cpp.
References s_evtConnected, s_evtConnHandle, and s_resolveActive.
Referenced by bleResolveStart().
|
static |
Definition at line 381 of file BluetoothMenuUi.cpp.
References s_evtDisconnected, s_resolveActive, and s_resolveConn.
Referenced by bleResolveStart().
|
static |
Definition at line 385 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 201 of file ExpertMenuUi.cpp.
References showHardwareInfo().
|
static |
Cleans cached TROPIC metadata and reports operation result.
Definition at line 222 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 208 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::setHtmlViewer | ( | HtmlViewerFn | fn | ) |
Register the HTML viewer (called by the provider module at init).
Definition at line 10 of file HtmlViewerHook.cpp.
| void cdc::ui::setImageOpener | ( | ImageOpenerFn | fn | ) |
Register the local-image opener (called by the file explorer at init).
Definition at line 18 of file HtmlViewerHook.cpp.
| void cdc::ui::setUrlOpener | ( | UrlOpenerFn | fn | ) |
Register the URL opener (called by the browser module at init).
Definition at line 14 of file HtmlViewerHook.cpp.
| 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 419 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 177 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 267 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::plugin_manager::onCtxUninstall(), cdc::mod_password::onMenuDelete(), onModuleSelect(), cdc::mod_gpg::onMyCertListSelect(), 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 281 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 403 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 260 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::showFirmwareCheck | ( | ) |
Opens the Firmware Check screen and pushes it onto the view stack.
Shows the running firmware version and the plugin host API level. When WiFi is already connected it asynchronously queries the upstream GitHub release and reports whether a newer version is available. Pressing the confirm key re-checks; if WiFi is not connected, the confirm key first brings it up using the saved network, then checks.
Definition at line 316 of file FirmwareCheck.cpp.
References cdc::ui::ViewStack::instance(), cdc::ui::WifiHandlers::instance(), cdc::ui::WifiHandlers::isConnected(), and cdc::ui::ViewStack::push().
| 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().
| ImageView * cdc::ui::showImage | ( | const char * | title, |
| const uint8_t * | data, | ||
| size_t | len ) |
Decodes and shows an image on the view stack.
| title | File name / title. |
| data | Encoded image bytes. |
| len | Byte length. |
Definition at line 199 of file ImageView.cpp.
References cdc::ui::ViewStack::instance(), cdc::ui::ViewStack::push(), and s_sharedImageView.
Referenced by host_fs_view_image(), and host_ui_view_image().
| 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::showMyCertifications(), 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 435 of file ListView.cpp.
References cdc::ui::ViewStack::instance(), cdc::ui::ViewStack::push(), and s_sharedListView.
| MarkdownView * cdc::ui::showMarkdown | ( | const char * | title, |
| const char * | src, | ||
| size_t | len ) |
Parses and shows a Markdown source on the view stack.
| title | Header title. |
| src | Markdown source. |
| len | Source length in bytes. |
Definition at line 612 of file MarkdownView.cpp.
References cdc::ui::ViewStack::instance(), cdc::ui::ViewStack::push(), and s_sharedMarkdownView.
Referenced by host_fs_view_markdown(), and host_ui_view_markdown().
| 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 host_ext_feature_use(), showError(), and showSuccess().
| void cdc::ui::showModulesView | ( | ) |
Shows module management list view.
Definition at line 188 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 451 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 696 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.
| MarkdownView * cdc::ui::showPlainText | ( | const char * | title, |
| const char * | src, | ||
| size_t | len ) |
Shows a source as plain, unrendered text on the view stack.
| title | Header title. |
| src | Text (CP437). |
| len | Source length in bytes. |
Definition at line 618 of file MarkdownView.cpp.
References cdc::ui::ViewStack::instance(), cdc::ui::ViewStack::push(), and s_sharedMarkdownView.
| 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 229 of file ToastView.cpp.
References cdc::ui::ToastView::NONE, and showToastInternal().
Referenced by cdc::mod_gpg::onMyCertDeleteConfirm(), cdc::mod_gpg::onReceivedActionSelect(), cdc::mod_gpg::onReceivedDeleteConfirm(), and cdc::mod_gpg::onReceivedSignConfirm().
| 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 279 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 288 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 249 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_gpg::onReceivedActionSelect(), 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 259 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(), cdc::plugin_manager::onUninstallConfirmed(), showExpertMenu(), cdc::mod_gpg::showSendKey(), 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 216 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 239 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 269 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 128 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 594 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 |
Returns the stronger of two refresh modes.
RefreshMode is declared strongest-first (FULL=0 ... PARTIAL_LIGHT=3), so the smaller underlying value wins.
Definition at line 29 of file ViewStack.cpp.
Referenced by cdc::ui::ViewStack::render().
|
static |
Toggles BLE controller enabled state.
Toggles BLE enable state and refreshes related menus.
Definition at line 242 of file BluetoothMenuUi.cpp.
References cdc::hal::getBluetoothControllerInstance(), rebuildBluetoothMenu(), rebuildToolsMenu(), showToastError(), showToastInfo(), showToastSuccess(), and tr().
Referenced by onBluetoothMenuSelect().
|
static |
Definition at line 518 of file AppUi.cpp.
References cdc::hal::getBluetoothControllerInstance().
|
inline |
Look up a translation by string key.
Definition at line 209 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(), cdc::mod_vcard::ctxReceivedDelete(), cdc::mod_vcard::ctxReceivedQr(), enterShipModeMenu(), cdc::mod_fido2::fido2_ui_get_label(), cdc::mod_fido2::fido2_ui_user_presence_callback(), cdc::ui::T9InputView::forceDigit(), cdc::mod_gpg::formatPinLabel(), cdc::mod_2fa::OathCodeView::getFooterHint(), cdc::plugin_manager::PluginListView::getFooterHint(), cdc::ui::DateInputView::getFooterHint(), cdc::ui::ImageView::getFooterHint(), cdc::ui::InfoView::getFooterHint(), cdc::ui::ListView::getFooterHint(), cdc::ui::LockScreenView::getFooterHint(), cdc::ui::MarkdownView::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_vcard::VcardModule::getMenuItems(), cdc::mod_vcard::getMyVcardLockscreenLabel(), cdc::mod_fido2::handleDelete(), host_ext_feature_use(), msgTransferUiProcess(), onBluetoothMenuSelect(), cdc::plugin_manager::onCtxDisable(), cdc::plugin_manager::onCtxEnable(), cdc::plugin_manager::onCtxUninstall(), 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_vcard::onMainMenuSelect(), cdc::mod_password::onMenuDelete(), cdc::mod_password::onMenuDeleteConfirm(), onModuleRetryConfirm(), onModuleSelect(), cdc::mod_gpg::onMyCertDeleteConfirm(), cdc::mod_gpg::onMyCertListSelect(), cdc::mod_vcard::onMyVcardLockscreenSelect(), 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_vcard::onReceivedSelect(), 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(), cdc::plugin_manager::onUninstallConfirmed(), 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(), cdc::mod_vcard::rebuildMainMenu(), rebuildMainMenu(), cdc::mod_gpg::rebuildMenu(), rebuildMenuLabels(), rebuildModulesView(), cdc::mod_gpg::rebuildMyCertList(), rebuildPairedList(), cdc::mod_gpg::rebuildReceivedList(), cdc::mod_vcard::rebuildReceivedList(), rebuildToolsMenu(), rebuildWifiMainMenu(), cdc::mod_2fa::OathCodeView::render(), cdc::ui::BlePairingView::render(), cdc::ui::ConfirmView::render(), cdc::ui::ImageView::render(), cdc::ui::MarkdownView::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(), cdc::mod_gpg::showMyCertifications(), showPairedDevices(), cdc::mod_gpg::showReceivedDetail(), cdc::mod_gpg::showReceivedKeys(), cdc::mod_gpg::showSendKey(), cdc::mod_gpg::showSettings(), cdc::mod_gpg::showStatus(), cdc::mod_vcard::showVcardDetails(), startBluetoothScan(), cdc::plugin_manager::PluginManager::startPlugin(), cdc::mod_vcard::stepTitle(), 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 824 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::ui::ViewStack::forceFullRefresh(), cdc::hal::getBluetoothControllerInstance(), cdc::hal::getRtcInstance(), IGNORED, 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 1105 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 1163 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 1117 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 266 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 333 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 296 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 250 of file AppUi.cpp.
References s_lockScreen.
Referenced by updatePowerStatusIcons().
| UrlOpenerFn cdc::ui::urlOpener | ( | ) |
Current URL opener, or nullptr when none is registered.
Definition at line 16 of file HtmlViewerHook.cpp.
Referenced by cdc::ui::MarkdownView::activateSelected(), and host_browser_open().
|
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 158 of file AppUi.cpp.
Referenced by updateBatteryIndicator().
|
staticconstexpr |
Definition at line 320 of file BluetoothMenuUi.cpp.
Referenced by rOnServiceDiscovered().
|
staticconstexpr |
Definition at line 319 of file BluetoothMenuUi.cpp.
Referenced by bleResolveTick().
|
staticconstexpr |
Definition at line 37 of file BluetoothMenuUi.cpp.
Referenced by rebuildPairedList().
|
staticconstexpr |
Definition at line 36 of file BluetoothMenuUi.cpp.
Referenced by startBluetoothScan().
|
staticconstexpr |
Definition at line 321 of file BluetoothMenuUi.cpp.
Referenced by bleResolveTick().
|
staticconstexpr |
Definition at line 322 of file BluetoothMenuUi.cpp.
Referenced by bleResolveTick().
|
staticconstexpr |
Definition at line 38 of file BluetoothMenuUi.cpp.
Referenced by startBluetoothScan().
|
staticconstexpr |
PSRAM-backed text buffer used for BLE status details.
Definition at line 62 of file BluetoothMenuUi.cpp.
Referenced by showBluetoothStatus().
|
staticconstexpr |
Definition at line 34 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::ImageView::init(), cdc::ui::MarkdownView::init(), cdc::ui::settings::init(), cdc::ui::MarkdownView::initPlain(), 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::ImageView::render(), cdc::ui::InfoView::render(), cdc::ui::ListView::render(), cdc::ui::LockScreenView::render(), cdc::ui::MarkdownView::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(), resetTextState(), and cdc::ui::LockScreenView::toggleBacklight().
|
staticconstexpr |
Definition at line 56 of file ExpertMenuUi.cpp.
Referenced by onExpertMenuSelect(), and rebuildExpertMenu().
|
staticconstexpr |
Definition at line 57 of file ExpertMenuUi.cpp.
Referenced by rebuildExpertMenu().
|
staticconstexpr |
Expert menu sizing constants.
Definition at line 27 of file ExpertMenuUi.cpp.
Referenced by rebuildExpertMenu().
|
staticconstexpr |
Definition at line 55 of file ExpertMenuUi.cpp.
Referenced by onExpertMenuSelect(), and rebuildExpertMenu().
|
staticconstexpr |
|
static |
Definition at line 49 of file ExpertMenuUi.cpp.
Referenced by onExpertMenuSelect(), and rebuildExpertMenu().
|
static |
Definition at line 42 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::ImageView::onKey(), cdc::ui::InfoView::onKey(), cdc::ui::ListView::onKey(), cdc::ui::MarkdownView::onKey(), cdc::ui::InfoView::onLongPress(), cdc::ui::ListView::onLongPress(), and cdc::ui::MarkdownView::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::ImageView::onKey(), cdc::ui::InfoView::onKey(), cdc::ui::ListView::onKey(), cdc::ui::MarkdownView::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.
Referenced by cdc::ui::ImageView::onKey().
|
staticconstexpr |
Move selection up (numeric '2').
Definition at line 32 of file KeyCodes.h.
Referenced by cdc::ui::ContextMenuView::onKey(), cdc::ui::ImageView::onKey(), cdc::ui::InfoView::onKey(), cdc::ui::ListView::onKey(), cdc::ui::MarkdownView::onKey(), cdc::ui::InfoView::onLongPress(), cdc::ui::ListView::onLongPress(), and cdc::ui::MarkdownView::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::MarkdownView::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(), and host_surface_set_font().
|
staticconstexpr |
Definition at line 344 of file BluetoothMenuUi.cpp.
Referenced by bleResolveStop().
|
static |
Definition at line 523 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 60 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 83 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 28 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 166 of file AppUi.cpp.
Referenced by ui_init(), and ui_process().
|
static |
Connection handle of a numeric-comparison pairing accepted on the lock screen.
Definition at line 119 of file AppUi.cpp.
Referenced by onBlePairingRequestEvent(), and onBlePairingUnlocked().
|
static |
Definition at line 111 of file AppUi.cpp.
Referenced by onBleNumericComparison(), onBlePairingRequestEvent(), and ui_init().
|
static |
Definition at line 51 of file BluetoothMenuUi.cpp.
Referenced by bleResolveBeginNext(), bleResolveStart(), sortBleScanResults(), and startBluetoothScan().
|
static |
Definition at line 49 of file BluetoothMenuUi.cpp.
Referenced by startBluetoothScan().
|
static |
Definition at line 50 of file BluetoothMenuUi.cpp.
Referenced by bleDeviceNeedsName(), bleResolveBeginNext(), bleResolveTick(), sortBleScanResults(), and startBluetoothScan().
|
static |
BLE scan result list state.
Definition at line 48 of file BluetoothMenuUi.cpp.
Referenced by bleResolveTick(), and startBluetoothScan().
|
static |
Definition at line 63 of file BluetoothMenuUi.cpp.
Referenced by showBluetoothStatus().
|
static |
Definition at line 43 of file BluetoothMenuUi.cpp.
Referenced by rebuildBluetoothMenu().
|
static |
Bluetooth menu and scan state.
Definition at line 42 of file BluetoothMenuUi.cpp.
Referenced by rebuildBluetoothMenu(), and showBluetoothMenu().
|
static |
Definition at line 45 of file BluetoothMenuUi.cpp.
Referenced by onBluetoothMenuSelect(), and rebuildBluetoothMenu().
|
static |
Definition at line 44 of file BluetoothMenuUi.cpp.
Referenced by onBluetoothMenuSelect(), and rebuildBluetoothMenu().
|
static |
Definition at line 91 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 95 of file AppUi.cpp.
Referenced by onSettingsSelect(), and ui_init().
|
static |
Runtime dependencies provided during ui_init.
Definition at line 122 of file AppUi.cpp.
Referenced by clearKeypadBuffer(), onBlePairingRequestEvent(), onPinSuccess(), prepareForBootloaderReset(), requestUnlockForTransfer(), ui_init(), ui_process(), updateBatteryIndicator(), and updatePowerStatusIcons().
|
static |
Definition at line 98 of file AppUi.cpp.
Referenced by showDuressPinSetup(), and ui_init().
|
static |
Definition at line 335 of file BluetoothMenuUi.cpp.
Referenced by bleResolveClearEvents(), bleResolveTick(), and rOnConnect().
|
static |
Definition at line 339 of file BluetoothMenuUi.cpp.
Referenced by bleResolveClearEvents(), bleResolveTick(), and rOnConnect().
|
static |
Definition at line 338 of file BluetoothMenuUi.cpp.
Referenced by bleResolveCleanupToSettle(), bleResolveClearEvents(), bleResolveTick(), and rOnDisconnect().
|
static |
Definition at line 336 of file BluetoothMenuUi.cpp.
Referenced by bleResolveClearEvents(), bleResolveTick(), and rOnServiceDiscovered().
|
static |
Definition at line 337 of file BluetoothMenuUi.cpp.
Referenced by bleResolveClearEvents(), bleResolveTick(), and rOnCharRead().
|
static |
Definition at line 340 of file BluetoothMenuUi.cpp.
Referenced by bleResolveClearEvents(), bleResolveTick(), and rOnServiceDiscovered().
|
static |
Definition at line 62 of file ExpertMenuUi.cpp.
Referenced by rebuildExpertMenu().
|
static |
Static view pointers and menu item storage for expert/module views.
Definition at line 61 of file ExpertMenuUi.cpp.
Referenced by rebuildExpertMenu(), and showExpertMenu().
|
static |
Definition at line 64 of file ExpertMenuUi.cpp.
Referenced by onExpertMenuSelect(), and rebuildExpertMenu().
|
static |
Definition at line 63 of file ExpertMenuUi.cpp.
Referenced by onExpertMenuSelect(), and rebuildExpertMenu().
|
static |
Definition at line 59 of file BluetoothMenuUi.cpp.
Referenced by onForgetConfirm(), and onPairedSelect().
|
static |
Prevents stale key events directly after unlock transition.
Definition at line 162 of file AppUi.cpp.
Referenced by onInactivityTimeout(), onUnlockRequested(), performAntiBlockLock(), and ui_process().
|
static |
Definition at line 139 of file AppUi.cpp.
Referenced by onLanguageSelect(), and rebuildLanguageMenu().
|
static |
Definition at line 140 of file AppUi.cpp.
Referenced by onLanguageSelect(), and rebuildLanguageMenu().
|
static |
Language menu backing storage (filled dynamically from overlay files).
Definition at line 138 of file AppUi.cpp.
Referenced by rebuildLanguageMenu().
|
static |
Definition at line 94 of file AppUi.cpp.
Referenced by onSettingsSelect(), rebuildLanguageMenu(), and ui_init().
|
static |
Definition at line 150 of file AppUi.cpp.
Referenced by updatePowerStatusIcons().
|
static |
Definition at line 151 of file AppUi.cpp.
Referenced by updateBatteryIndicator().
|
static |
Definition at line 159 of file AppUi.cpp.
Referenced by updateBatteryIndicator().
|
static |
Definition at line 149 of file AppUi.cpp.
Referenced by updatePowerStatusIcons().
|
static |
Definition at line 147 of file AppUi.cpp.
Referenced by ui_init(), and updatePowerStatusIcons().
|
static |
Last rendered minute for lock-screen clock throttling.
Definition at line 143 of file AppUi.cpp.
Referenced by ui_init(), and updateLockScreenClock().
|
static |
Last known status-icon inputs to avoid redundant updates.
Definition at line 146 of file AppUi.cpp.
Referenced by ui_init(), and updatePowerStatusIcons().
|
static |
Definition at line 148 of file AppUi.cpp.
Referenced by updatePowerStatusIcons().
|
static |
Static UI state and lazily constructed view pointers.
Definition at line 86 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 88 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 125 of file AppUi.cpp.
Referenced by rebuildMainMenu().
|
static |
Definition at line 126 of file AppUi.cpp.
Referenced by onMainMenuSelect(), and rebuildMainMenu().
|
static |
Definition at line 127 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 68 of file ExpertMenuUi.cpp.
Referenced by rebuildModulesView().
|
static |
Definition at line 67 of file ExpertMenuUi.cpp.
Referenced by rebuildModulesView().
|
static |
Definition at line 66 of file ExpertMenuUi.cpp.
Referenced by rebuildModulesView(), and showModulesView().
|
static |
Definition at line 56 of file BluetoothMenuUi.cpp.
Referenced by onPairedSelect(), and rebuildPairedList().
|
static |
Definition at line 58 of file BluetoothMenuUi.cpp.
Referenced by onPairedSelect(), and rebuildPairedList().
|
static |
Definition at line 55 of file BluetoothMenuUi.cpp.
Referenced by rebuildPairedList().
|
static |
Definition at line 57 of file BluetoothMenuUi.cpp.
Referenced by rebuildPairedList().
|
static |
Paired (bonded) device list state.
Definition at line 54 of file BluetoothMenuUi.cpp.
Referenced by rebuildPairedList(), and showPairedDevices().
|
static |
Definition at line 99 of file AppUi.cpp.
Referenced by onBlePairingRequestEvent().
|
static |
Definition at line 110 of file AppUi.cpp.
Referenced by onBleNumericComparison(), and onBlePairingRequestEvent().
|
static |
Definition at line 97 of file AppUi.cpp.
Referenced by onSettingsSelect(), and ui_init().
|
static |
Definition at line 87 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 100 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 327 of file BluetoothMenuUi.cpp.
Referenced by bleResolveStart(), bleResolveStop(), bleResolveTick(), rOnCharRead(), rOnConnect(), rOnDisconnect(), and rOnServiceDiscovered().
|
static |
Definition at line 329 of file BluetoothMenuUi.cpp.
Referenced by bleResolveBeginNext(), bleResolveCleanupToSettle(), bleResolveStart(), bleResolveStop(), bleResolveTick(), rOnCharRead(), rOnDisconnect(), and rOnServiceDiscovered().
|
static |
Definition at line 331 of file BluetoothMenuUi.cpp.
Referenced by bleResolveBeginNext(), and bleResolveTick().
|
static |
Definition at line 328 of file BluetoothMenuUi.cpp.
Referenced by bleResolveBeginNext(), bleResolveStart(), and bleResolveTick().
|
static |
Definition at line 341 of file BluetoothMenuUi.cpp.
Referenced by bleResolveTick(), and rOnCharRead().
|
static |
Definition at line 330 of file BluetoothMenuUi.cpp.
Referenced by bleResolveBeginNext(), bleResolveStart(), bleResolveStop(), and bleResolveTick().
|
static |
Definition at line 326 of file BluetoothMenuUi.cpp.
Referenced by bleResolveBeginNext(), bleResolveCleanupToSettle(), bleResolveStart(), bleResolveStop(), and bleResolveTick().
|
static |
Definition at line 332 of file BluetoothMenuUi.cpp.
Referenced by bleResolveCleanupToSettle(), and bleResolveTick().
|
static |
Settings menu backing storage.
Definition at line 135 of file AppUi.cpp.
Referenced by rebuildMenuLabels(), and ui_init().
|
static |
Definition at line 90 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 272 of file ContextMenuView.cpp.
Referenced by showContextMenu().
|
static |
Definition at line 197 of file ImageView.cpp.
Referenced by showImage().
|
static |
Convenience factory/helper function.
Definition at line 301 of file InfoView.cpp.
Referenced by showInfo().
|
static |
Convenience factory/helper function.
Definition at line 424 of file ListView.cpp.
Referenced by showListView().
|
static |
Definition at line 610 of file MarkdownView.cpp.
Referenced by showMarkdown(), and showPlainText().
|
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 206 of file ToastView.cpp.
Referenced by showToastInternal().
|
static |
Definition at line 92 of file AppUi.cpp.
Referenced by onSettingsSelect(), and ui_init().
|
static |
Definition at line 96 of file AppUi.cpp.
Referenced by onSettingsSelect(), and ui_init().
|
static |
Definition at line 93 of file AppUi.cpp.
Referenced by onSettingsSelect(), and ui_init().
|
static |
Definition at line 345 of file BluetoothMenuUi.cpp.
Referenced by bleResolveStart(), and bleResolveStop().
|
static |
Definition at line 346 of file BluetoothMenuUi.cpp.
Referenced by bleResolveStart(), and bleResolveStop().
|
static |
Definition at line 348 of file BluetoothMenuUi.cpp.
Referenced by bleResolveStart(), and bleResolveStop().
|
static |
Definition at line 347 of file BluetoothMenuUi.cpp.
Referenced by bleResolveStart(), and bleResolveStop().
|
static |
Tools-menu backing storage for fixed and module entries.
Definition at line 130 of file AppUi.cpp.
Referenced by rebuildToolsMenu().
|
static |
Definition at line 89 of file AppUi.cpp.
Referenced by onMainMenuSelect(), rebuildToolsMenu(), and ui_init().
|
static |
Definition at line 132 of file AppUi.cpp.
Referenced by onToolsSelect(), and rebuildToolsMenu().
|
static |
Definition at line 131 of file AppUi.cpp.
Referenced by onToolsSelect(), and rebuildToolsMenu().
|
static |
Callback invoked once after a successful PIN unlock that was started for a pending BLE transfer (numeric-comparison pairing or transfer consent accepted on the lock screen). Cleared by a plain unlock so it never fires unexpectedly.
Definition at line 116 of file AppUi.cpp.
Referenced by onPinSuccess(), onUnlockRequested(), and requestUnlockForTransfer().
|
static |
Definition at line 117 of file AppUi.cpp.
Referenced by onPinSuccess(), onUnlockRequested(), and requestUnlockForTransfer().
|
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 cdc::ui::render::drawBitmapMasked(), cdc::ui::qr::packModule(), qrDisplayCallback(), cdc::ui::qr::render(), cdc::ui::anim::SpriteStore::setScale(), and cdc::ui::CanvasView::spriteSetScale().
| bool cdc::ui::sizingPass |
Definition at line 39 of file QRCodeView.cpp.
|
static |
Definition at line 20 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::ImageView::init(), cdc::ui::InfoView::init(), cdc::ui::ListView::init(), cdc::ui::MarkdownView::init(), cdc::ui::MessageBox::init(), cdc::ui::QRCodeView::init(), cdc::ui::T9InputView::init(), cdc::ui::MarkdownView::initPlain(), 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::MarkdownView::init(), cdc::ui::MarkdownView::initPlain(), cdc::ui::InfoView::render(), cdc::ui::MarkdownView::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::MarkdownView::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 529 of file AppUi.cpp.
Referenced by onToolsSelect(), and rebuildToolsMenu().
|
staticconstexpr |
Definition at line 64 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().