CDC Badge OS
Firmware for the CDC Badge v1.0 hardware security key
Loading...
Searching...
No Matches
AppUiInternal.h File Reference
#include "cdc_ui/ViewStack.h"
#include "cdc_ui/I18n.h"
#include "cdc_views/ListView.h"
#include "cdc_views/ToastView.h"
#include "cdc_views/InfoView.h"
#include "cdc_views/ConfirmView.h"
#include "cdc_views/T9InputView.h"
#include "cdc_core/ModuleRegistry.h"
#include "cdc_core/EventBus.h"
#include <cstdint>
#include <goodisplay/gdey029T94.h>
#include <Fonts/FreeMonoBold9pt7b.h>

Go to the source code of this file.

Namespaces

namespace  cdc
namespace  cdc::ui
 Centralized key-code constants for cdc_views.

Functions

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.
void cdc::ui::rebuildMainMenu ()
 Rebuilds main menu entries including dynamically provided modules.
void cdc::ui::rebuildToolsMenu ()
 Rebuilds tools menu entries including dynamic module tools.
bool cdc::ui::isBadgeLocked ()
 Returns whether the badge is currently locked (showing lock screen with no menu above).
void cdc::ui::showWifiMainMenu ()
 Shows top-level Wi-Fi menu and reloads stored configuration.
void cdc::ui::rebuildWifiMainMenu ()
 Rebuilds top-level Wi-Fi menu items and dynamic module extensions.
void cdc::ui::showBluetoothMenu ()
 Shows top-level Bluetooth menu.
void cdc::ui::rebuildBluetoothMenu ()
 Rebuilds Bluetooth menu entries and dynamic module items.
void cdc::ui::msgTransferUiInit ()
void cdc::ui::msgTransferUiProcess (uint32_t nowMs)
void cdc::ui::showBeaconMenu ()
void cdc::ui::showMsgBeaconScan ()
void cdc::ui::showExpertMenu ()
 Shows expert menu and initial warning toast.
void cdc::ui::showModulesView ()
 Shows module management list view.
void cdc::ui::onModuleErrorEvent (const core::Event &evt)
 Displays toast notification for module error events.
void cdc::ui::showBackupMenu ()
 Shows the Backup submenu (Export / Import / Delete).
void cdc::ui::registerBackupSerialCommand ()
 Registers the AUTH-gated BACKUP serial command.
void cdc::ui::showDuressPinSetup ()
 Opens the duress / self-destruct PIN setup wizard.
void cdc::ui::prepareForBootloaderReset ()
 Puts the badge into a quiet pre-reset state.

Variables

static constexpr uint32_t cdc::ui::TOAST_DURATION_SHORT_MS = 1000
static constexpr uint32_t cdc::ui::TOAST_DURATION_MEDIUM_MS = 1500
static constexpr uint32_t cdc::ui::TOAST_DURATION_LONG_MS = 2500