|
CDC Badge OS
Firmware for the CDC Badge v1.0 hardware security key
|
Real implementations for the UI subset that plugins use most. More...
#include "plugin_manager/host_api.h"#include "plugin_manager/PluginManager.h"#include "cdc_hal/IDisplay.h"#include "cdc_views/ToastView.h"#include "cdc_views/InfoView.h"#include "cdc_ui/ViewStack.h"#include "host_str_conv.h"#include <string>Go to the source code of this file.
Functions | |
| int | host_ui_push_toast (const char *text, uint8_t icon, uint16_t duration_ms) |
| Show a transient toast overlay. | |
| int | host_ui_push_message (const char *text, uint8_t icon, uint32_t duration_ms) |
| Show a blocking message view that auto-dismisses after duration_ms. | |
| int | host_ui_push_info (const char *title, const char *body) |
| Show a scrollable info screen with title and body. | |
| int | host_ui_pop (void) |
| Pop the topmost view. | |
| int | host_ui_pop_to_plugin (void) |
| Pop back to the plugin's first view. | |
| int | host_ui_repaint (void) |
| Force a repaint of the current view. | |
| int | host_ui_wink (uint8_t count, uint16_t period_ms) |
| Blink the backlight as a visual identification signal. | |
Real implementations for the UI subset that plugins use most.
Pushes pre-built cdc_views onto the ViewStack. The remaining UI host API (T9, PIN, slider, date/time, list with action callbacks) lands in later Phase-3 steps once the Plugin object can route action-id callbacks back into the WASM module.
Definition in file host_api_ui.cpp.