CDC Badge OS
Firmware for the CDC Badge v1.0 hardware security key
Loading...
Searching...
No Matches
AppUi.h
Go to the documentation of this file.
1#pragma once
2
3#include <cstdint>
4
5namespace cdc {
6namespace hal {
7class IDisplay;
8class IKeypad;
9class IPowerManager;
11class ISecureElement;
12} // namespace hal
13} // namespace cdc
14
15namespace cdc::ui {
16
24
25// Initialize UI system (views, menus, callbacks)
26void ui_init(const UiDeps& deps);
27
28// Call after modules are initialized to rebuild menus with module items
30
31// Rebuild all menus (call after module state changes)
32void ui_rebuild_menus();
33
34// Per-loop UI processing (input, timers, rendering)
35void ui_process(uint32_t nowMs);
36
46
47} // namespace cdc::ui
Centralized key-code constants for cdc_views.
Definition IModule.h:8
void ui_rebuild_menus()
Rebuilds dynamic UI menus.
Definition AppUi.cpp:1040
void rebootIntoBootloader()
Reboots the device into USB download (bootloader) mode.
void ui_process(uint32_t nowMs)
Main UI tick: input processing, timeouts, status updates, and rendering.
Definition AppUi.cpp:1086
void ui_init(const UiDeps &deps)
Initializes App UI, builds all core views, and wires callbacks.
Definition AppUi.cpp:764
void ui_on_modules_ready()
Refreshes module-backed menus once module startup is complete.
Definition AppUi.cpp:1028
hal::ISleepController * sleep
Definition AppUi.h:21
hal::IDisplay * display
Definition AppUi.h:18
hal::IKeypad * keypad
Definition AppUi.h:19
hal::ISecureElement * secureElement
Definition AppUi.h:22
hal::IPowerManager * power
Definition AppUi.h:20