|
CDC Badge OS
Firmware for the CDC Badge v1.0 hardware security key
|
Namespaces | |
| namespace | gpio_policy |
Classes | |
| struct | CapabilityCheckResult |
| class | CapabilityChecker |
| struct | LockscreenRegistration |
| struct | WasmModuleDeleter |
| struct | WasmInstanceDeleter |
| struct | WasmExecEnvDeleter |
| class | Plugin |
| class | PluginInfoView |
| class | PluginListView |
| class | PluginManager |
| struct | PrerequisiteSpec |
| struct | PluginCapabilities |
| struct | LocalizedString |
| struct | PluginManifest |
| class | PluginStorage |
| class | PluginUiState |
| class | Prerequisites |
| struct | SlotTable |
| struct | CapsFreeDeleter |
| Deleter for buffers allocated via heap_caps_malloc. More... | |
| struct | CStdFreeDeleter |
| Deleter for buffers allocated via malloc/realloc. More... | |
Typedefs | |
| using | WasmModulePtr = std::unique_ptr<WASMModuleCommon, WasmModuleDeleter> |
| using | WasmInstancePtr = std::unique_ptr<WASMModuleInstanceCommon, WasmInstanceDeleter> |
| using | WasmExecEnvPtr = std::unique_ptr<WASMExecEnv, WasmExecEnvDeleter> |
| template<typename T> | |
| using | PsramUniquePtr = ::cdc::core::PsramUniquePtr<T> |
| template<typename T> | |
| using | CStdUniquePtr = ::cdc::core::CStdUniquePtr<T> |
Enumerations | |
| enum class | CapabilityResult { Ok , ApiLevelMismatch , LinearMemoryOutOfRange , RmemNameInvalid , EccNameInvalid , GpioPinNotAllowed , GpioPinAlreadyHeld , BleServiceUuidConflict , BleServiceUuidInvalid , NvsNamespaceConflict , NvsNamespaceInvalid , MissingNvsNamespace , FeatureNameInvalid } |
| enum class | StartResult { Ok , PluginAlreadyRunning , ManifestMissing , ManifestInvalid , CapabilityRejected , WamrLoadFailed , WamrInstantiateFailed , PluginInitFailed , PrerequisiteFailed , PluginOnEnterFailed , Busy , PluginDisabled } |
| enum class | PrereqResult { Ok , SoftFailed , HardFailed } |
Functions | |
| bool | isValidExtFeatureName (const char *name) |
| True if name is a well-formed external-feature name. | |
| void | registerGpioSerialCommands () |
| uint8_t | collectLockscreenItems (LockscreenRegistration *out, uint8_t max) |
| void | clearLockscreenRegistrationFor (void *plugin) |
| void | registerPluginSerialCommands () |
| bool | beginFileReceive (const char *abs_path, size_t size, uint32_t crc) |
| Receive a file over USB-CDC into the plugins partition. | |
| template<typename T> | |
| PsramUniquePtr< T > | psramAlloc (std::size_t count) noexcept |
| bool | register_host_imports () |
| Register the "cdc" import namespace with WAMR. | |
| void | unregister_host_imports () |
| Unregister the imports (called from PluginManager::deinit()). | |
| int | hex_val (char c) |
| Convert a single hex digit to its numeric value. | |
| std::string | toDisplay (const char *utf8) |
| Decode a UTF-8 (with optional HTML entities) string into CP437 bytes. | |
| int | copyUtf8 (const char *cp437, char *out, size_t out_size) |
| Encode a CP437 string into a caller buffer as UTF-8. | |
| static std::string | default_lang_value (const std::map< std::string, std::string > &by_lang, const std::string &dflt_lang) |
| static void | onCtxStop () |
| Context-menu Stop callback: force-unloads the selected plugin. | |
| static void | onCtxDisable () |
| Context-menu Disable callback: persistently disables and unloads. | |
| static void | onCtxEnable () |
| Context-menu Enable callback: removes the persistent disabled marker. | |
| static void | reportStartResult (StartResult result) |
| Show a toast describing a non-Ok plugin start result. | |
| static void | onCtxStart () |
| Context-menu Start callback: starts the selected (stopped) plugin. | |
| static void | onUninstallConfirmed (void *) |
| Confirm callback for uninstall: deletes the plugin and refreshes. | |
| static void | onCtxUninstall () |
| Context-menu Uninstall callback: asks for confirmation, then deletes. | |
| static std::string | str_or (const cJSON *node, const char *key, const char *dflt="") |
| static bool | parse_api_level (const std::string &s, uint16_t &major, uint16_t &minor) |
| static void | parse_localized (const cJSON *root, std::map< std::string, LocalizedString > &out) |
| static void | parse_capabilities (const cJSON *root, PluginCapabilities &cap) |
| static void | parse_prereqs (const cJSON *root, std::vector< PrerequisiteSpec > &out) |
| static int | vfat_drive () |
| static void | ensure_volume_label () |
| static bool | ends_with (const char *s, size_t s_len, const char *suffix, size_t suf_len) |
| static bool | wbuf_ok (wasm_exec_env_t env, const void *ptr, size_t len) |
| static void | w_host_log (wasm_exec_env_t, uint32_t level, const char *tag, const char *msg) |
| static uint64_t | w_host_uptime_ms (wasm_exec_env_t) |
| static int64_t | w_host_unix_time (wasm_exec_env_t) |
| static int32_t | w_host_is_time_set (wasm_exec_env_t) |
| static int32_t | w_host_timezone_offset (wasm_exec_env_t) |
| static uint32_t | w_host_battery_mv (wasm_exec_env_t) |
| static uint32_t | w_host_battery_pct (wasm_exec_env_t) |
| static int32_t | w_host_is_usb_connected (wasm_exec_env_t) |
| static uint32_t | w_host_power_source (wasm_exec_env_t) |
| static uint32_t | w_host_charge_status (wasm_exec_env_t) |
| static int32_t | w_host_is_battery_low (wasm_exec_env_t) |
| static int32_t | w_host_is_battery_critical (wasm_exec_env_t) |
| static void | w_host_set_sleep_inhibit (wasm_exec_env_t, uint32_t on) |
| static int32_t | w_host_ui_push_toast (wasm_exec_env_t, const char *t, uint32_t icon, uint32_t ms) |
| static int32_t | w_host_ui_push_message (wasm_exec_env_t, const char *t, uint32_t icon, uint32_t ms) |
| static int32_t | w_host_ui_push_info (wasm_exec_env_t, const char *title, const char *body) |
| static int32_t | w_host_ui_push_confirm (wasm_exec_env_t, const char *text, uint32_t icon, uint32_t action_id) |
| static int32_t | w_host_browser_open (wasm_exec_env_t, const char *url) |
| static int32_t | w_host_ui_push_list (wasm_exec_env_t exec_env, const char *title, const ui_item_t *items, uint32_t count, uint32_t sel, uint32_t menu) |
| static int32_t | w_host_ui_replace_list (wasm_exec_env_t exec_env, const char *title, const ui_item_t *items, uint32_t count, uint32_t sel, uint32_t menu) |
| static int32_t | w_host_ui_set_view_footer (wasm_exec_env_t, const char *hint) |
| static int32_t | w_host_ui_set_view_empty (wasm_exec_env_t, const char *text) |
| static int32_t | w_host_ui_set_view_lifecycle (wasm_exec_env_t, uint32_t hide_action_id, uint32_t show_action_id) |
| static int32_t | w_host_ui_update_list_item (wasm_exec_env_t exec_env, uint32_t index, const ui_item_t *item) |
| static int32_t | w_host_ui_insert_list_item (wasm_exec_env_t exec_env, uint32_t index, const ui_item_t *item) |
| static int32_t | w_host_ui_remove_list_item (wasm_exec_env_t, uint32_t index) |
| static int32_t | w_host_ui_push_context_menu (wasm_exec_env_t exec_env, const char *title, const ui_item_t *items, uint32_t count, uint32_t sel) |
| static int32_t | w_host_ui_pop (wasm_exec_env_t) |
| static int32_t | w_host_ui_pop_to_plugin (wasm_exec_env_t) |
| static int32_t | w_host_ui_repaint (wasm_exec_env_t) |
| static int32_t | w_host_ui_wink (wasm_exec_env_t, uint32_t count, uint32_t period_ms) |
| static int32_t | w_host_ui_push_t9_input (wasm_exec_env_t, const char *title, const char *initial, uint32_t max_len, uint32_t action_id) |
| static int32_t | w_host_ui_push_password (wasm_exec_env_t, const char *title, const char *initial, uint32_t max_len, uint32_t action_id) |
| static int32_t | w_host_ui_push_pin_entry (wasm_exec_env_t, const char *title, uint32_t max_len, uint32_t max_attempts, uint32_t action_id) |
| static int32_t | w_host_ui_push_slider (wasm_exec_env_t, const char *title, int32_t min, int32_t max, int32_t init, int32_t step, const char *unit, uint32_t action_id) |
| static int32_t | w_host_ui_push_color_picker (wasm_exec_env_t, uint32_t r, uint32_t g, uint32_t b, uint32_t action_id) |
| static int32_t | w_host_ui_consume_input_text (wasm_exec_env_t, char *out, uint32_t out_size) |
| static int32_t | w_host_ui_consume_input_int (wasm_exec_env_t exec_env, int32_t *out) |
| static int32_t | w_host_view_canvas_push (wasm_exec_env_t, const char *title, uint32_t key_action_id, uint32_t widget_action_id) |
| static int32_t | w_host_view_canvas_get_body_size (wasm_exec_env_t exec_env, uint16_t *w, uint16_t *h) |
| static int32_t | w_host_view_canvas_set_footer (wasm_exec_env_t, const char *hint) |
| static int32_t | w_host_view_canvas_clear (wasm_exec_env_t) |
| static int32_t | w_host_view_canvas_clear_ex (wasm_exec_env_t, uint32_t flags) |
| static int32_t | w_host_view_canvas_set_text_size (wasm_exec_env_t, uint32_t size) |
| static int32_t | w_host_view_canvas_set_text_color (wasm_exec_env_t, uint32_t inverted) |
| static int32_t | w_host_view_canvas_set_font (wasm_exec_env_t, uint32_t font_id) |
| static int32_t | w_host_text_pick_font_that_fits (wasm_exec_env_t, const char *text, int32_t max_width_px, const uint8_t *candidates, uint32_t count, uint8_t *out_font_id) |
| static int32_t | w_host_view_canvas_draw_text (wasm_exec_env_t, int32_t x, int32_t y, const char *text) |
| static int32_t | w_host_view_canvas_draw_text_aligned (wasm_exec_env_t, int32_t x, int32_t y, int32_t w, const char *text, uint32_t align) |
| static int32_t | w_host_view_canvas_draw_rect (wasm_exec_env_t, int32_t x, int32_t y, int32_t w, int32_t h, uint32_t filled) |
| static int32_t | w_host_view_canvas_draw_pixel (wasm_exec_env_t, int32_t x, int32_t y) |
| static int32_t | w_host_view_canvas_draw_line (wasm_exec_env_t, int32_t x0, int32_t y0, int32_t x1, int32_t y1) |
| static int32_t | w_host_view_canvas_draw_circle (wasm_exec_env_t, int32_t x, int32_t y, int32_t r, uint32_t filled) |
| static int32_t | w_host_view_canvas_draw_triangle (wasm_exec_env_t, int32_t x0, int32_t y0, int32_t x1, int32_t y1, int32_t x2, int32_t y2, uint32_t filled) |
| static int32_t | w_host_view_canvas_draw_round_rect (wasm_exec_env_t, int32_t x, int32_t y, int32_t w, int32_t h, int32_t r, uint32_t filled) |
| static int32_t | w_host_view_canvas_draw_bitmap (wasm_exec_env_t env, int32_t x, int32_t y, int32_t w, int32_t h, const uint8_t *data, uint32_t len) |
| static int32_t | w_host_view_canvas_set_shade (wasm_exec_env_t, uint32_t shade) |
| static int32_t | w_host_view_canvas_hline (wasm_exec_env_t, int32_t x, int32_t y, int32_t w) |
| static int32_t | w_host_view_canvas_vline (wasm_exec_env_t, int32_t x, int32_t y, int32_t h) |
| static int32_t | w_host_view_canvas_commit (wasm_exec_env_t, uint32_t full_refresh) |
| static int32_t | w_host_view_canvas_elem_begin (wasm_exec_env_t, uint32_t elem_id) |
| static int32_t | w_host_view_canvas_elem_end (wasm_exec_env_t) |
| static int32_t | w_host_view_canvas_elem_set_offset (wasm_exec_env_t, uint32_t elem_id, int32_t ox, int32_t oy) |
| static int32_t | w_host_view_canvas_elem_move (wasm_exec_env_t, uint32_t elem_id, int32_t dx, int32_t dy) |
| static int32_t | w_host_view_canvas_elem_show (wasm_exec_env_t, uint32_t elem_id, uint32_t visible) |
| static int32_t | w_host_view_canvas_elem_remove (wasm_exec_env_t, uint32_t elem_id) |
| static int32_t | w_host_view_canvas_elem_clear (wasm_exec_env_t, uint32_t elem_id) |
| static int32_t | w_host_view_canvas_elem_set_z (wasm_exec_env_t, uint32_t elem_id, int32_t z) |
| static int32_t | w_host_view_canvas_elem_get_offset (wasm_exec_env_t exec_env, uint32_t elem_id, int16_t *ox, int16_t *oy) |
| static int32_t | w_host_view_canvas_elem_get_bounds (wasm_exec_env_t exec_env, uint32_t elem_id, int16_t *x, int16_t *y, uint16_t *w, uint16_t *h) |
| static int32_t | w_host_view_canvas_set_anim_policy (wasm_exec_env_t, uint32_t policy, uint32_t max_fps) |
| static int32_t | w_host_view_canvas_draw_sprite (wasm_exec_env_t, int32_t x, int32_t y, uint32_t sprite) |
| static int32_t | w_host_sprite_create (wasm_exec_env_t, uint32_t w, uint32_t h, uint32_t frames, const uint8_t *data, uint32_t len) |
| static int32_t | w_host_sprite_create_from_surface (wasm_exec_env_t, uint32_t surface, uint32_t w, uint32_t h, uint32_t frames) |
| static int32_t | w_host_sprite_set_mask (wasm_exec_env_t, uint32_t sprite, const uint8_t *mask, uint32_t len) |
| static int32_t | w_host_sprite_set_flags (wasm_exec_env_t, uint32_t sprite, uint32_t flags) |
| static int32_t | w_host_sprite_set_scale (wasm_exec_env_t, uint32_t sprite, uint32_t scale) |
| static int32_t | w_host_sprite_create_from_image (wasm_exec_env_t, const uint8_t *data, uint32_t len, uint32_t target_w, uint32_t frame_h) |
| static int32_t | w_host_view_canvas_set_ink (wasm_exec_env_t, uint32_t white) |
| static int32_t | w_host_view_canvas_marquee (wasm_exec_env_t, int32_t x, int32_t y, int32_t window_w, const char *text, uint32_t step_px, uint32_t frame_ms) |
| static int32_t | w_host_sprite_set_frame (wasm_exec_env_t, uint32_t sprite, uint32_t frame) |
| static int32_t | w_host_sprite_get_frame (wasm_exec_env_t exec_env, uint32_t sprite, uint16_t *out) |
| static int32_t | w_host_sprite_set_frame_durations (wasm_exec_env_t exec_env, uint32_t sprite, const uint16_t *ms, uint32_t count) |
| static int32_t | w_host_sprite_play (wasm_exec_env_t, uint32_t sprite, uint32_t mode, uint32_t frame_ms, uint32_t repeat, uint32_t done_aid) |
| static int32_t | w_host_sprite_stop (wasm_exec_env_t, uint32_t sprite) |
| static int32_t | w_host_sprite_destroy (wasm_exec_env_t, uint32_t sprite) |
| static int32_t | w_host_anim_start (wasm_exec_env_t exec_env, const host_anim_t *cfg) |
| static int32_t | w_host_anim_cancel (wasm_exec_env_t, uint32_t handle) |
| static int32_t | w_host_anim_pause (wasm_exec_env_t, uint32_t handle, uint32_t paused) |
| static int32_t | w_host_anim_state (wasm_exec_env_t, uint32_t handle) |
| static int32_t | w_host_anim_active_count (wasm_exec_env_t) |
| static int32_t | w_host_anim_blink (wasm_exec_env_t, uint32_t elem_id, uint32_t period_ms, uint32_t count, uint32_t done_aid) |
| static int32_t | w_host_view_canvas_add_slider (wasm_exec_env_t, uint32_t widget_id, int32_t min, int32_t max, int32_t initial, int32_t step) |
| static int32_t | w_host_view_canvas_add_text (wasm_exec_env_t, uint32_t widget_id, uint32_t max_len, const char *initial) |
| static int32_t | w_host_view_canvas_add_button (wasm_exec_env_t, uint32_t widget_id) |
| static int32_t | w_host_view_canvas_remove_widget (wasm_exec_env_t, uint32_t widget_id) |
| static int32_t | w_host_view_canvas_set_value (wasm_exec_env_t, uint32_t widget_id, int32_t value) |
| static int32_t | w_host_view_canvas_get_value (wasm_exec_env_t exec_env, uint32_t widget_id, int32_t *out) |
| static int32_t | w_host_view_canvas_set_text (wasm_exec_env_t, uint32_t widget_id, const char *text) |
| static int32_t | w_host_view_canvas_get_text (wasm_exec_env_t, uint32_t widget_id, char *out, uint32_t cap) |
| static int32_t | w_host_view_canvas_set_focus (wasm_exec_env_t, uint32_t widget_id) |
| static int32_t | w_host_view_canvas_get_focus (wasm_exec_env_t exec_env, uint32_t *out) |
| static int32_t | w_host_view_canvas_set_key_repeat (wasm_exec_env_t, uint32_t initial_ms, uint32_t repeat_ms) |
| static int32_t | w_host_view_canvas_set_long_press_action (wasm_exec_env_t, uint32_t action_id) |
| static int32_t | w_host_i18n_tr_key (wasm_exec_env_t, const char *k, char *o, uint32_t c) |
| static int32_t | w_host_i18n_tr_meta (wasm_exec_env_t, const char *f, char *o, uint32_t c) |
| static int32_t | w_host_i18n_tr_core (wasm_exec_env_t, const char *k, char *o, uint32_t c) |
| static uint32_t | w_host_i18n_current_language (wasm_exec_env_t) |
| static int32_t | w_host_nvs_get_blob (wasm_exec_env_t, const char *key, uint8_t *buf, uint32_t buf_size) |
| static int32_t | w_host_nvs_set_blob (wasm_exec_env_t, const char *key, const uint8_t *buf, uint32_t len) |
| static int32_t | w_host_nvs_get_u32 (wasm_exec_env_t exec_env, const char *key, uint32_t *out) |
| static int32_t | w_host_nvs_set_u32 (wasm_exec_env_t, const char *key, uint32_t value) |
| static int32_t | w_host_nvs_get_str (wasm_exec_env_t, const char *key, char *buf, uint32_t buf_size) |
| static int32_t | w_host_nvs_set_str (wasm_exec_env_t, const char *key, const char *value) |
| static int32_t | w_host_nvs_erase (wasm_exec_env_t, const char *key) |
| static int32_t | w_host_fs_write (wasm_exec_env_t, const char *name, const uint8_t *data, uint32_t len) |
| static int32_t | w_host_fs_read (wasm_exec_env_t, const char *name, uint8_t *buf, uint32_t buf_size) |
| static int32_t | w_host_fs_remove (wasm_exec_env_t, const char *name) |
| static int32_t | w_host_fs_size (wasm_exec_env_t, const char *name) |
| static int32_t | w_host_fs_list (wasm_exec_env_t, char *out, uint32_t out_size) |
| static int32_t | w_host_fs_view (wasm_exec_env_t, const char *name) |
| static int32_t | w_host_fs_view_image (wasm_exec_env_t, const char *name) |
| static int32_t | w_host_fs_view_markdown (wasm_exec_env_t, const char *name) |
| static int32_t | w_host_ui_view_image (wasm_exec_env_t env, const uint8_t *data, uint32_t len) |
| static int32_t | w_host_ui_view_markdown (wasm_exec_env_t env, const uint8_t *data, uint32_t len) |
| static int32_t | w_host_random (wasm_exec_env_t, uint8_t *buf, uint32_t len) |
| static int32_t | w_host_sha256 (wasm_exec_env_t exec_env, const uint8_t *data, uint32_t len, uint8_t *out) |
| static int32_t | w_host_hmac_sha256 (wasm_exec_env_t exec_env, const uint8_t *key, uint32_t klen, const uint8_t *data, uint32_t dlen, uint8_t *out) |
| static int32_t | w_host_base32_encode (wasm_exec_env_t, const uint8_t *in, uint32_t in_len, char *out, uint32_t out_size) |
| static int32_t | w_host_base32_decode (wasm_exec_env_t, const char *in, uint32_t in_len, uint8_t *out, uint32_t out_size) |
| static int32_t | w_host_hex_encode (wasm_exec_env_t, const uint8_t *in, uint32_t in_len, char *out, uint32_t out_size) |
| static int32_t | w_host_http_open (wasm_exec_env_t, uint32_t method, const char *url, uint32_t timeout) |
| static int32_t | w_host_http_set_header (wasm_exec_env_t, int32_t h, const char *k, const char *v) |
| static int32_t | w_host_http_set_body (wasm_exec_env_t, int32_t h, const uint8_t *body, uint32_t len) |
| static int32_t | w_host_http_perform (wasm_exec_env_t, int32_t h) |
| static int32_t | w_host_http_status (wasm_exec_env_t, int32_t h) |
| static int32_t | w_host_http_close (wasm_exec_env_t, int32_t h) |
| static int32_t | w_host_http_read_chunk (wasm_exec_env_t, int32_t h, uint8_t *buf, uint32_t buf_size) |
| static int32_t | w_host_socket_open (wasm_exec_env_t, uint32_t proto, const char *host, uint32_t port, uint32_t timeout) |
| static int32_t | w_host_socket_write (wasm_exec_env_t, int32_t h, const uint8_t *data, uint32_t len, uint32_t timeout) |
| static int32_t | w_host_socket_read (wasm_exec_env_t, int32_t h, uint8_t *out, uint32_t cap, uint32_t timeout) |
| static int32_t | w_host_socket_close (wasm_exec_env_t, int32_t h) |
| static int32_t | w_host_net_listen (wasm_exec_env_t, uint32_t port, uint32_t action_id) |
| static int32_t | w_host_net_accept (wasm_exec_env_t) |
| static int32_t | w_host_net_close (wasm_exec_env_t, uint32_t port) |
| static int32_t | w_host_set_resident (wasm_exec_env_t, int32_t resident) |
| static int32_t | w_host_wifi_request (wasm_exec_env_t, uint32_t t) |
| static int32_t | w_host_wifi_release (wasm_exec_env_t) |
| static int32_t | w_host_wifi_is_connected (wasm_exec_env_t) |
| static int32_t | w_host_wifi_ssid (wasm_exec_env_t, char *out, uint32_t sz) |
| static int32_t | w_host_wifi_ip (wasm_exec_env_t, char *out, uint32_t sz) |
| static int32_t | w_host_rmem_read_named (wasm_exec_env_t, const char *name, uint8_t *buf, uint32_t buf_size) |
| static int32_t | w_host_rmem_write_named (wasm_exec_env_t, const char *name, const uint8_t *buf, uint32_t len) |
| static int32_t | w_host_rmem_erase_named (wasm_exec_env_t, const char *name) |
| static int32_t | w_host_rmem_name_used (wasm_exec_env_t, const char *name) |
| static uint32_t | w_host_rmem_slot_size (wasm_exec_env_t) |
| static int32_t | w_host_ecc_generate (wasm_exec_env_t, const char *name, uint32_t curve) |
| static int32_t | w_host_ecc_import (wasm_exec_env_t exec_env, const char *name, const uint8_t *priv, uint32_t curve) |
| static int32_t | w_host_ecc_pubkey (wasm_exec_env_t exec_env, const char *name, uint8_t *pub, uint32_t curve) |
| static int32_t | w_host_ecc_delete (wasm_exec_env_t, const char *name) |
| static int32_t | w_host_ecc_exists (wasm_exec_env_t, const char *name) |
| static int32_t | w_host_ecdsa_sign (wasm_exec_env_t exec_env, const char *name, const uint8_t *msg, uint32_t len, uint8_t *sig) |
| static int32_t | w_host_eddsa_sign (wasm_exec_env_t exec_env, const char *name, const uint8_t *msg, uint32_t len, uint8_t *sig) |
| static int32_t | w_host_event_subscribe (wasm_exec_env_t, uint32_t mask, uint32_t action_id) |
| static int32_t | w_host_event_unsubscribe (wasm_exec_env_t, uint32_t sub) |
| static int32_t | w_host_gpio_set_direction (wasm_exec_env_t, uint32_t pin, uint32_t dir) |
| static int32_t | w_host_gpio_set_pull (wasm_exec_env_t, uint32_t pin, uint32_t pull) |
| static int32_t | w_host_gpio_write (wasm_exec_env_t, uint32_t pin, int32_t level) |
| static int32_t | w_host_gpio_read (wasm_exec_env_t exec_env, uint32_t pin, int32_t *out) |
| static int32_t | w_host_gpio_release (wasm_exec_env_t, uint32_t pin) |
| static int32_t | w_host_gpio_pwm_start (wasm_exec_env_t, uint32_t pin, uint32_t freq, uint32_t duty) |
| static int32_t | w_host_gpio_pwm_stop (wasm_exec_env_t, uint32_t pin) |
| static int32_t | w_host_ui_push_date (wasm_exec_env_t, const char *title, uint32_t d, uint32_t m, uint32_t y, uint32_t action_id) |
| static int32_t | w_host_ui_push_time (wasm_exec_env_t, const char *title, uint32_t h, uint32_t m, uint32_t action_id) |
| static int32_t | w_host_get_firmware_version (wasm_exec_env_t, char *out, uint32_t out_size) |
| static int32_t | w_host_str_to_display (wasm_exec_env_t, const char *in, char *out, uint32_t out_size, uint32_t target) |
| static int32_t | w_host_str_to_utf8 (wasm_exec_env_t, const char *in, char *out, uint32_t out_size) |
| static int32_t | w_host_get_build_profile (wasm_exec_env_t, char *out, uint32_t out_size) |
| static int32_t | w_host_feature_enabled (wasm_exec_env_t, uint32_t feature_id) |
| static uint32_t | w_host_cpu_load (wasm_exec_env_t) |
| static int32_t | w_host_cmd_consume (wasm_exec_env_t, char *out, uint32_t out_size) |
| static int32_t | w_host_msg_register_handler (wasm_exec_env_t, const char *mime, uint32_t aid) |
| static int32_t | w_host_msg_unregister_handler (wasm_exec_env_t, const char *mime) |
| static int32_t | w_host_msg_consume (wasm_exec_env_t, uint8_t *buf, uint32_t buf_size, char *mime_out, uint32_t mime_size) |
| static int32_t | w_host_msg_send_interactive (wasm_exec_env_t, const char *mime, const uint8_t *data, uint32_t len, uint32_t flags) |
| static int32_t | w_host_msg_send (wasm_exec_env_t exec_env, const uint8_t *addr, uint32_t addr_type, const char *mime, const uint8_t *data, uint32_t len, uint32_t flags) |
| static int32_t | w_host_vcard_get_own (wasm_exec_env_t, char *out, uint32_t out_size) |
| static int32_t | w_host_vcard_received_count (wasm_exec_env_t) |
| static int32_t | w_host_vcard_received_get (wasm_exec_env_t, uint32_t index, char *out, uint32_t out_size) |
| static int32_t | w_host_vcard_received_display (wasm_exec_env_t, uint32_t index, char *out, uint32_t out_size) |
| static int32_t | w_host_vcard_set_own (wasm_exec_env_t, const char *vcard, uint32_t len) |
| static int32_t | w_host_vcard_received_add (wasm_exec_env_t, const char *vcard, uint32_t len) |
| static int32_t | w_host_vcard_received_update (wasm_exec_env_t, uint32_t index, const char *vcard, uint32_t len) |
| static int32_t | w_host_vcard_received_delete (wasm_exec_env_t, uint32_t index) |
| static int32_t | w_host_qr_measure (wasm_exec_env_t exec_env, const char *data, uint32_t max_version, uint32_t ecc, uint16_t *out_modules) |
| static int32_t | w_host_qr_render_bitmap (wasm_exec_env_t exec_env, const char *data, uint32_t max_version, uint32_t ecc, uint32_t scale, uint32_t quiet, uint8_t *out, uint32_t out_size, uint16_t *stride_out, uint16_t *height_out) |
| static int32_t | w_host_image_info (wasm_exec_env_t exec_env, const uint8_t *data, uint32_t len, uint16_t *out_w, uint16_t *out_h) |
| static int32_t | w_host_image_render (wasm_exec_env_t exec_env, const uint8_t *data, uint32_t len, uint32_t target_w, uint8_t *out, uint32_t out_size, uint16_t *stride_out, uint16_t *height_out) |
| static int32_t | w_host_surface_create (wasm_exec_env_t, uint32_t w, uint32_t h) |
| static int32_t | w_host_surface_destroy (wasm_exec_env_t, uint32_t s) |
| static int32_t | w_host_surface_clear (wasm_exec_env_t, uint32_t s) |
| static int32_t | w_host_surface_set_font (wasm_exec_env_t, uint32_t s, uint32_t font_id) |
| static int32_t | w_host_surface_set_text_size (wasm_exec_env_t, uint32_t s, uint32_t size) |
| static int32_t | w_host_surface_set_text_color (wasm_exec_env_t, uint32_t s, uint32_t inverted) |
| static int32_t | w_host_surface_set_shade (wasm_exec_env_t, uint32_t s, uint32_t shade) |
| static int32_t | w_host_surface_draw_text (wasm_exec_env_t, uint32_t s, int32_t x, int32_t y, const char *text) |
| static int32_t | w_host_surface_draw_text_aligned (wasm_exec_env_t, uint32_t s, int32_t x, int32_t y, int32_t w, const char *text, uint32_t align) |
| static int32_t | w_host_surface_measure_text (wasm_exec_env_t exec_env, uint32_t s, const char *text, uint16_t *out_w, uint16_t *out_h) |
| static int32_t | w_host_surface_draw_pixel (wasm_exec_env_t, uint32_t s, int32_t x, int32_t y) |
| static int32_t | w_host_surface_draw_line (wasm_exec_env_t, uint32_t s, int32_t x0, int32_t y0, int32_t x1, int32_t y1) |
| static int32_t | w_host_surface_draw_rect (wasm_exec_env_t, uint32_t s, int32_t x, int32_t y, int32_t w, int32_t h, uint32_t filled) |
| static int32_t | w_host_surface_draw_circle (wasm_exec_env_t, uint32_t s, int32_t x, int32_t y, int32_t r, uint32_t filled) |
| static int32_t | w_host_surface_draw_triangle (wasm_exec_env_t, uint32_t s, int32_t x0, int32_t y0, int32_t x1, int32_t y1, int32_t x2, int32_t y2, uint32_t filled) |
| static int32_t | w_host_surface_draw_round_rect (wasm_exec_env_t, uint32_t s, int32_t x, int32_t y, int32_t w, int32_t h, int32_t r, uint32_t filled) |
| static int32_t | w_host_surface_hline (wasm_exec_env_t, uint32_t s, int32_t x, int32_t y, int32_t w) |
| static int32_t | w_host_surface_vline (wasm_exec_env_t, uint32_t s, int32_t x, int32_t y, int32_t h) |
| static int32_t | w_host_surface_draw_bitmap (wasm_exec_env_t, uint32_t s, int32_t x, int32_t y, int32_t w, int32_t h, const uint8_t *data, uint32_t len) |
| static int32_t | w_host_surface_export (wasm_exec_env_t exec_env, uint32_t s, uint8_t *out, uint32_t out_size, uint16_t *stride_out) |
| static int32_t | w_host_surface_export_jpg (wasm_exec_env_t exec_env, uint32_t s, uint32_t quality, uint8_t *out, uint32_t out_size, uint32_t *len_out) |
| static int32_t | w_host_surface_draw_sprite (wasm_exec_env_t, uint32_t s, int32_t x, int32_t y, uint32_t sprite) |
| static int32_t | w_host_ext_feature_available (wasm_exec_env_t, const char *feature) |
| static int32_t | w_host_ext_feature_use (wasm_exec_env_t, const char *feature, const uint8_t *data, uint32_t len, uint32_t status_aid) |
| static int32_t | w_host_ext_feature_register_handler (wasm_exec_env_t, const char *feature, uint32_t aid) |
| static int32_t | w_host_ext_feature_consume (wasm_exec_env_t, uint8_t *buf, uint32_t buf_size, char *feature_out, uint32_t feature_size) |
| static int32_t | w_host_ext_feature_result (wasm_exec_env_t, int32_t status_code) |
| static int32_t | w_host_ui_acquire_exclusive (wasm_exec_env_t) |
| static int32_t | w_host_ui_release_exclusive (wasm_exec_env_t) |
| static int32_t | w_host_ui_set_inactivity (wasm_exec_env_t, uint32_t timeout_ms, uint32_t action_id) |
| static int32_t | w_host_pixel_strip_init (wasm_exec_env_t, uint32_t gpio, uint32_t num, uint32_t format) |
| static int32_t | w_host_pixel_strip_deinit (wasm_exec_env_t) |
| static int32_t | w_host_pixel_strip_set (wasm_exec_env_t, uint32_t idx, uint32_t r, uint32_t g, uint32_t b) |
| static int32_t | w_host_pixel_strip_fill (wasm_exec_env_t, uint32_t r, uint32_t g, uint32_t b) |
| static int32_t | w_host_pixel_strip_clear (wasm_exec_env_t) |
| static int32_t | w_host_pixel_strip_refresh (wasm_exec_env_t) |
| static uint32_t | w_host_pixel_strip_length (wasm_exec_env_t) |
| static int32_t | w_host_pixel_strip_ready (wasm_exec_env_t) |
| static int32_t | w_host_lockscreen_register_action (wasm_exec_env_t, const char *label_key, uint32_t action_id) |
| static int32_t | w_host_lockscreen_unregister_action (wasm_exec_env_t) |
| static int32_t | w_host_lockscreen_alert (wasm_exec_env_t, const char *text, uint32_t icon, uint32_t action_id) |
| static int32_t | w_host_random_strict (wasm_exec_env_t, uint8_t *buf, uint32_t len) |
| static int32_t | w_host_base64_encode (wasm_exec_env_t, const uint8_t *in, uint32_t in_len, char *out, uint32_t out_size) |
| static int32_t | w_host_base64_decode (wasm_exec_env_t, const char *in, uint32_t in_len, uint8_t *out, uint32_t out_size) |
| static int32_t | w_host_hex_decode (wasm_exec_env_t, const char *in, uint32_t in_len, uint8_t *out, uint32_t out_size) |
| static int32_t | w_host_aes_gcm_encrypt (wasm_exec_env_t exec_env, const uint8_t *key, const uint8_t *iv, const uint8_t *aad, uint32_t aad_len, const uint8_t *pt, uint32_t pt_len, uint8_t *ct, uint8_t *tag) |
| static int32_t | w_host_aes_gcm_decrypt (wasm_exec_env_t exec_env, const uint8_t *key, const uint8_t *iv, const uint8_t *aad, uint32_t aad_len, const uint8_t *ct, uint32_t ct_len, const uint8_t *tag, uint8_t *pt) |
| static int32_t | w_host_local_time (wasm_exec_env_t exec_env, void *out) |
| static void | w_host_log_hex (wasm_exec_env_t, const char *tag, const char *label, const uint8_t *data, uint32_t len) |
| static int32_t | w_host_nvs_erase_all (wasm_exec_env_t) |
| static int32_t | w_host_nvs_list_keys (wasm_exec_env_t exec_env, char *out, uint32_t *out_len) |
| static int32_t | w_host_wifi_mac (wasm_exec_env_t exec_env, uint8_t *out) |
| static int32_t | w_host_wifi_rssi (wasm_exec_env_t) |
| static int32_t | w_host_wifi_start_scan (wasm_exec_env_t) |
| static int32_t | w_host_wifi_scan_done (wasm_exec_env_t) |
| static int32_t | w_host_wifi_scan_results (wasm_exec_env_t exec_env, void *out, uint32_t *count) |
| static int32_t | w_host_gpio_pwm_set_duty (wasm_exec_env_t, uint32_t pin, uint32_t duty) |
| static int32_t | w_host_adc_read (wasm_exec_env_t exec_env, uint32_t pin, uint16_t *raw, uint16_t *mv) |
| static int32_t | w_host_i2c_write (wasm_exec_env_t, uint32_t bus, uint32_t addr, const uint8_t *data, uint32_t len) |
| static int32_t | w_host_i2c_read (wasm_exec_env_t, uint32_t bus, uint32_t addr, uint8_t *data, uint32_t len) |
| static int32_t | w_host_i2c_write_read (wasm_exec_env_t, uint32_t bus, uint32_t addr, const uint8_t *wr, uint32_t wr_len, uint8_t *rd, uint32_t rd_len) |
| static int32_t | w_host_i2c_scan (wasm_exec_env_t exec_env, uint32_t bus, uint8_t *found, uint32_t *count) |
| static int32_t | w_host_sao_eeprom_read (wasm_exec_env_t, uint32_t off, uint8_t *buf, uint32_t len) |
| static int32_t | w_host_sao_eeprom_write (wasm_exec_env_t, uint32_t off, const uint8_t *buf, uint32_t len) |
| static uint32_t | w_host_http_content_length (wasm_exec_env_t, int32_t h) |
| static int32_t | w_host_event_publish (wasm_exec_env_t, uint32_t subtype, uint32_t value) |
| static int32_t | w_host_se_chip_id (wasm_exec_env_t exec_env, uint8_t *serial, uint32_t *len) |
| static int32_t | w_host_se_fw_version (wasm_exec_env_t exec_env, uint8_t *riscv, uint8_t *spect) |
| static uint32_t | w_host_display_width (wasm_exec_env_t) |
| static uint32_t | w_host_display_height (wasm_exec_env_t) |
| static int32_t | w_host_display_clear (wasm_exec_env_t) |
| static int32_t | w_host_display_draw_pixel (wasm_exec_env_t, int32_t x, int32_t y, uint32_t color) |
| static int32_t | w_host_display_draw_line (wasm_exec_env_t, int32_t x0, int32_t y0, int32_t x1, int32_t y1, uint32_t color) |
| static int32_t | w_host_display_draw_rect (wasm_exec_env_t, int32_t x, int32_t y, int32_t w, int32_t h, uint32_t color) |
| static int32_t | w_host_display_fill_rect (wasm_exec_env_t, int32_t x, int32_t y, int32_t w, int32_t h, uint32_t color) |
| static int32_t | w_host_display_draw_text (wasm_exec_env_t, int32_t x, int32_t y, const char *text, uint32_t size, uint32_t color) |
| static int32_t | w_host_display_flush (wasm_exec_env_t, uint32_t mode) |
| static int32_t | w_host_display_is_busy (wasm_exec_env_t) |
| static int32_t | w_host_display_set_backlight (wasm_exec_env_t, uint32_t level) |
| static uint32_t | w_host_display_get_backlight (wasm_exec_env_t) |
| static int32_t | w_host_key_pressed (wasm_exec_env_t, uint32_t key) |
| static int32_t | w_host_key_consume_next (wasm_exec_env_t, uint8_t *out) |
| static int32_t | w_host_usb_cdc_write (wasm_exec_env_t, const uint8_t *data, uint32_t len) |
| static int32_t | w_host_ble_is_enabled (wasm_exec_env_t) |
| static int32_t | w_host_ble_mac (wasm_exec_env_t exec_env, uint8_t *out) |
| static int32_t | w_host_ble_device_name (wasm_exec_env_t, char *out, uint32_t size) |
| static int32_t | w_host_ble_rssi (wasm_exec_env_t) |
| static int32_t | w_host_ble_register_service (wasm_exec_env_t exec_env, void *def, void *chars, uint32_t num) |
| static int32_t | w_host_ble_unregister_service (wasm_exec_env_t, uint32_t h) |
| static int32_t | w_host_ble_send_notification (wasm_exec_env_t, uint32_t ch, const uint8_t *data, uint32_t len) |
| static int32_t | w_host_ble_send_indication (wasm_exec_env_t, uint32_t ch, const uint8_t *data, uint32_t len) |
| static int32_t | w_host_ble_consume_write (wasm_exec_env_t, uint32_t ch, uint8_t *buf, uint32_t size) |
| static int32_t | w_host_ble_scan_start (wasm_exec_env_t, uint32_t dur) |
| static int32_t | w_host_ble_scan_done (wasm_exec_env_t) |
| static int32_t | w_host_ble_scan_results (wasm_exec_env_t exec_env, void *out, uint32_t *count) |
| static int32_t | w_host_ble_connect (wasm_exec_env_t, const uint8_t *addr, uint32_t type) |
| static uint32_t | w_host_ble_conn_handle (wasm_exec_env_t) |
| static int32_t | w_host_ble_disconnect (wasm_exec_env_t, uint32_t conn) |
| static int32_t | w_host_ble_discover (wasm_exec_env_t, uint32_t conn, const uint8_t *uuid, uint32_t aid) |
| static int32_t | w_host_ble_consume_discovery (wasm_exec_env_t exec_env, void *out, uint32_t *count) |
| static int32_t | w_host_ble_read_char (wasm_exec_env_t, uint32_t conn, uint32_t vh, uint32_t aid) |
| static int32_t | w_host_ble_consume_read (wasm_exec_env_t, uint8_t *buf, uint32_t size) |
| static int32_t | w_host_ble_write_char (wasm_exec_env_t, uint32_t conn, uint32_t vh, const uint8_t *data, uint32_t len, uint32_t wr) |
| static int32_t | w_host_ble_subscribe (wasm_exec_env_t, uint32_t conn, uint32_t cccd, uint32_t aid) |
| static int32_t | w_host_ble_subscribe_char (wasm_exec_env_t, uint32_t conn, uint32_t vh, uint32_t aid) |
| static int32_t | w_host_ble_consume_notification (wasm_exec_env_t exec_env, uint16_t *vh_out, uint8_t *buf, uint32_t size) |
| static uint32_t | w_host_ble_get_mtu (wasm_exec_env_t, uint32_t conn) |
| static int32_t | w_host_ble_on_write_complete (wasm_exec_env_t, uint32_t aid) |
Variables | |
| constexpr size_t | EXT_FEATURE_NAME_MAX = 33 |
| Maximum external-feature name length including the trailing NUL. | |
| constexpr size_t | EXT_FEATURE_MAX_PER_PLUGIN = 4 |
| Maximum number of provides entries a single plugin manifest may declare. | |
| static const char * | TAG = "GPIO_CMD" |
| static const char * | CMD_MODULE = "gpio" |
| static const char * | TAG = "PLG_UI" |
| static PluginListView * | s_active = nullptr |
| static std::string | s_ctxPluginId |
| static cdc::ui::ContextMenuItem | s_ctxItems [3] |
| static const char * | TAG = "PLG_MGR" |
| static const char * | TAG = "PLG_MAN" |
| static const char * | TAG = "PLG_CMD" |
| static const char * | CMD_MODULE = "plugin_manager" |
| static const char * | TAG = "PLG_STO" |
| static const char * | PARTITION_LABEL = "vfat" |
| static const char * | MOUNT_POINT = "/vfat" |
| static const char * | SYSTEM_DIR = "/vfat/system" |
| static wl_handle_t | s_wl_handle = WL_INVALID_HANDLE |
| static bool | s_mounted = false |
| static bool | s_host_active = false |
| static bool | s_remount_pending = false |
| static const char * | VOLUME_LABEL = "CDCBADGE" |
| static const char * | TAG = "PLG_PRE" |
| static const NativeSymbol | s_symbols [] |
| static cdc::core::PsramUniquePtr< NativeSymbol > | s_symbols_ram |
| using cdc::plugin_manager::CStdUniquePtr = ::cdc::core::CStdUniquePtr<T> |
| using cdc::plugin_manager::PsramUniquePtr = ::cdc::core::PsramUniquePtr<T> |
| using cdc::plugin_manager::WasmExecEnvPtr = std::unique_ptr<WASMExecEnv, WasmExecEnvDeleter> |
| using cdc::plugin_manager::WasmInstancePtr = std::unique_ptr<WASMModuleInstanceCommon, WasmInstanceDeleter> |
| using cdc::plugin_manager::WasmModulePtr = std::unique_ptr<WASMModuleCommon, WasmModuleDeleter> |
|
strong |
Definition at line 24 of file CapabilityChecker.h.
|
strong |
| Enumerator | |
|---|---|
| Ok | |
| SoftFailed | |
| HardFailed | |
Definition at line 18 of file Prerequisites.h.
|
strong |
| Enumerator | |
|---|---|
| Ok | |
| PluginAlreadyRunning | |
| ManifestMissing | |
| ManifestInvalid | |
| CapabilityRejected | |
| WamrLoadFailed | |
| WamrInstantiateFailed | |
| PluginInitFailed | |
| PrerequisiteFailed | |
| PluginOnEnterFailed | |
| Busy | |
| PluginDisabled | |
Definition at line 30 of file PluginManager.h.
| bool cdc::plugin_manager::beginFileReceive | ( | const char * | abs_path, |
| size_t | size, | ||
| uint32_t | crc ) |
Receive a file over USB-CDC into the plugins partition.
Arms the same binary byte-stream receiver as the PLUGIN UPLOAD commands: replies "READY", then expects exactly size raw bytes whose CRC32 must equal crc, writes them to abs_path and replies "OK <size>". No post-finalize action is taken (pure file write); callers that need a reload issue it separately (e.g. LANG RELOAD). The caller resolves and validates abs_path (absolute, inside the partition); the VFAT serial shell resolves it against its working directory.
| abs_path | Absolute destination path, e.g. "/vfat/data/notes.txt". |
| size | Total payload size in bytes (must be > 0). |
| crc | Expected CRC32 of the whole payload. |
Definition at line 603 of file PluginSerialCommands.cpp.
| void cdc::plugin_manager::clearLockscreenRegistrationFor | ( | void * | plugin | ) |
Definition at line 83 of file host_api_lockscreen.cpp.
Referenced by host_lockscreen_unregister_action().
| uint8_t cdc::plugin_manager::collectLockscreenItems | ( | LockscreenRegistration * | out, |
| uint8_t | max ) |
Definition at line 72 of file host_api_lockscreen.cpp.
Referenced by cdc::plugin_manager::PluginManager::getLockscreenItems().
| int cdc::plugin_manager::copyUtf8 | ( | const char * | cp437, |
| char * | out, | ||
| size_t | out_size ) |
Encode a CP437 string into a caller buffer as UTF-8.
Truncates on a UTF-8 codepoint boundary so the result never ends mid-sequence, and always null-terminates.
| cp437 | Source CP437 string (may be nullptr). |
| out | Destination buffer. |
| out_size | Capacity of out including the terminator. |
Definition at line 27 of file host_str_conv.cpp.
References HOST_ERR_INVALID_ARG, and cdc::core::cp437::toUtf8().
Referenced by cdc::plugin_manager::PluginUiState::consumeInputText(), host_str_to_utf8(), and host_view_canvas_get_text().
|
static |
Definition at line 11 of file PluginInfoView.cpp.
Referenced by cdc::plugin_manager::PluginInfoView::loadForPluginId().
|
static |
Definition at line 114 of file PluginStorage.cpp.
Referenced by cdc::plugin_manager::PluginStorage::listPluginIds().
|
static |
Definition at line 52 of file PluginStorage.cpp.
References LOG_I, LOG_W, s_host_active, s_mounted, TAG, vfat_drive(), and VOLUME_LABEL.
Referenced by cdc::plugin_manager::PluginStorage::mount().
|
inline |
Convert a single hex digit to its numeric value.
| c | Hex character ('0'-'9', 'a'-'f', 'A'-'F'). |
Definition at line 15 of file HexUtil.h.
Referenced by host_hex_decode().
|
inline |
True if name is a well-formed external-feature name.
Rules: 1..EXT_FEATURE_NAME_MAX-1 chars, first char [a-z], rest [a-z0-9_].
Definition at line 27 of file ExtFeatureName.h.
References EXT_FEATURE_NAME_MAX, and name.
Referenced by host_ext_feature_available(), host_ext_feature_register_handler(), host_ext_feature_use(), and cdc::plugin_manager::CapabilityChecker::validate().
|
static |
Context-menu Disable callback: persistently disables and unloads.
Definition at line 39 of file PluginListView.cpp.
References cdc::ui::hideContextMenu(), cdc::plugin_manager::PluginManager::instance(), s_active, s_ctxPluginId, cdc::ui::showToastError(), cdc::ui::showToastInfo(), and cdc::ui::tr().
|
static |
Context-menu Enable callback: removes the persistent disabled marker.
Definition at line 57 of file PluginListView.cpp.
References cdc::ui::hideContextMenu(), cdc::plugin_manager::PluginManager::instance(), s_active, s_ctxPluginId, cdc::ui::showToastError(), cdc::ui::showToastInfo(), and cdc::ui::tr().
|
static |
Context-menu Start callback: starts the selected (stopped) plugin.
Definition at line 97 of file PluginListView.cpp.
References cdc::ui::hideContextMenu(), cdc::plugin_manager::PluginManager::instance(), reportStartResult(), s_active, and s_ctxPluginId.
|
static |
Context-menu Stop callback: force-unloads the selected plugin.
Definition at line 25 of file PluginListView.cpp.
References cdc::ui::hideContextMenu(), cdc::plugin_manager::PluginManager::instance(), s_active, s_ctxPluginId, and cdc::plugin_manager::PluginManager::unloadFromRam().
|
static |
Context-menu Uninstall callback: asks for confirmation, then deletes.
Definition at line 127 of file PluginListView.cpp.
References cdc::ui::hideContextMenu(), onUninstallConfirmed(), s_ctxPluginId, cdc::ui::showConfirm(), cdc::ui::tr(), and cdc::ui::ConfirmView::WARNING.
|
static |
Confirm callback for uninstall: deletes the plugin and refreshes.
ConfirmView hides its modal before invoking this, so it only acts.
Definition at line 113 of file PluginListView.cpp.
References cdc::plugin_manager::PluginManager::instance(), s_active, s_ctxPluginId, cdc::ui::showToastInfo(), cdc::ui::tr(), and cdc::plugin_manager::PluginManager::uninstallPlugin().
Referenced by onCtxUninstall().
|
static |
Definition at line 22 of file PluginManifest.cpp.
Referenced by cdc::plugin_manager::PluginManifest::parse().
|
static |
Definition at line 47 of file PluginManifest.cpp.
References cdc::plugin_manager::PluginCapabilities::adc_pins, cdc::plugin_manager::PluginCapabilities::autoload, cdc::plugin_manager::PluginCapabilities::background, cdc::plugin_manager::PluginCapabilities::ble, cdc::plugin_manager::PluginCapabilities::ble_service_uuids, cdc::plugin_manager::PluginCapabilities::display_lowlevel, cdc::plugin_manager::PluginCapabilities::ecc, cdc::plugin_manager::PluginCapabilities::gpio_pins, cdc::plugin_manager::PluginCapabilities::grove, cdc::plugin_manager::PluginCapabilities::http, cdc::plugin_manager::PluginCapabilities::i2c_bus, cdc::plugin_manager::PluginCapabilities::message_types, cdc::plugin_manager::PluginCapabilities::net_listen, cdc::plugin_manager::PluginCapabilities::nvs_namespace, cdc::plugin_manager::PluginCapabilities::pixel_strip, cdc::plugin_manager::PluginCapabilities::prevent_sleep, cdc::plugin_manager::PluginCapabilities::provides, cdc::plugin_manager::PluginCapabilities::pwm_pins, cdc::plugin_manager::PluginCapabilities::rmem, cdc::plugin_manager::PluginCapabilities::sao, cdc::plugin_manager::PluginCapabilities::socket, str_or(), cdc::plugin_manager::PluginCapabilities::ui_exclusive, cdc::plugin_manager::PluginCapabilities::usb_cdc, cdc::plugin_manager::PluginCapabilities::vcard, cdc::plugin_manager::PluginCapabilities::vfat, and cdc::plugin_manager::PluginCapabilities::wifi.
Referenced by cdc::plugin_manager::PluginManifest::parse().
|
static |
Definition at line 32 of file PluginManifest.cpp.
References cdc::plugin_manager::LocalizedString::by_lang.
Referenced by cdc::plugin_manager::PluginManifest::parse().
|
static |
Definition at line 106 of file PluginManifest.cpp.
References cdc::plugin_manager::PrerequisiteSpec::name, cdc::plugin_manager::PrerequisiteSpec::on_fail, and cdc::plugin_manager::PrerequisiteSpec::params.
Referenced by cdc::plugin_manager::PluginManifest::parse().
|
inlinenoexcept |
Definition at line 27 of file Raii.h.
Referenced by cdc::plugin_manager::PluginUiState::insertListItem(), cdc::plugin_manager::PluginUiState::pushCanvas(), cdc::plugin_manager::PluginUiState::pushContextMenu(), cdc::plugin_manager::PluginUiState::pushList(), cdc::plugin_manager::PluginUiState::pushSlider(), cdc::plugin_manager::PluginUiState::pushT9(), cdc::plugin_manager::PluginUiState::setViewEmpty(), cdc::plugin_manager::PluginUiState::setViewFooter(), and cdc::plugin_manager::PluginUiState::updateListItem().
| bool cdc::plugin_manager::register_host_imports | ( | ) |
Register the "cdc" import namespace with WAMR.
Definition at line 1613 of file WamrImports.cpp.
References plg_log_error(), plg_log_info(), cdc::core::psramAlloc(), s_symbols, and s_symbols_ram.
Referenced by cdc::plugin_manager::PluginManager::init().
| void cdc::plugin_manager::registerGpioSerialCommands | ( | ) |
Definition at line 302 of file GpioSerialCommands.cpp.
References CMD_MODULE, cdc::serial::getCommandRegistry(), LOG_I, and TAG.
Referenced by initPluginSystem().
| void cdc::plugin_manager::registerPluginSerialCommands | ( | ) |
Definition at line 616 of file PluginSerialCommands.cpp.
References CMD_MODULE, cdc::serial::getCommandRegistry(), LOG_I, and TAG.
Referenced by initPluginSystem().
|
static |
Show a toast describing a non-Ok plugin start result.
Definition at line 73 of file PluginListView.cpp.
References Busy, CapabilityRejected, ManifestInvalid, Ok, PluginAlreadyRunning, PluginDisabled, PluginInitFailed, PluginOnEnterFailed, PrerequisiteFailed, cdc::ui::showToastError(), cdc::ui::tr(), and WamrLoadFailed.
Referenced by onCtxStart().
|
static |
Definition at line 13 of file PluginManifest.cpp.
Referenced by cdc::plugin_manager::PluginManifest::parse(), and parse_capabilities().
| std::string cdc::plugin_manager::toDisplay | ( | const char * | utf8 | ) |
Decode a UTF-8 (with optional HTML entities) string into CP437 bytes.
Wraps cdc::ui::render::decodeWebText with DisplayTarget::Cp437. The CP437 output is always <= the UTF-8 input length, so a strlen-sized scratch buffer suffices.
| utf8 | Source UTF-8 string (may be nullptr). |
Definition at line 16 of file host_str_conv.cpp.
References cdc::ui::render::Cp437, and cdc::ui::render::decodeWebText().
Referenced by host_display_draw_text(), host_fs_view_image(), host_fs_view_markdown(), host_lockscreen_alert(), host_surface_draw_text(), host_surface_draw_text_aligned(), host_surface_measure_text(), host_text_pick_font_that_fits(), host_ui_push_info(), host_ui_push_toast(), host_ui_view_markdown(), host_view_canvas_add_text(), host_view_canvas_draw_text(), host_view_canvas_draw_text_aligned(), host_view_canvas_marquee(), host_view_canvas_set_text(), cdc::plugin_manager::PluginUiState::insertListItem(), cdc::plugin_manager::PluginUiState::pushCanvas(), cdc::plugin_manager::PluginUiState::pushConfirm(), cdc::plugin_manager::PluginUiState::pushContextMenu(), cdc::plugin_manager::PluginUiState::pushDate(), cdc::plugin_manager::PluginUiState::pushList(), cdc::plugin_manager::PluginUiState::pushPin(), cdc::plugin_manager::PluginUiState::pushSlider(), cdc::plugin_manager::PluginUiState::pushT9(), cdc::plugin_manager::PluginUiState::pushTime(), cdc::plugin_manager::PluginUiState::setViewEmpty(), cdc::plugin_manager::PluginUiState::setViewFooter(), and cdc::plugin_manager::PluginUiState::updateListItem().
| void cdc::plugin_manager::unregister_host_imports | ( | ) |
Unregister the imports (called from PluginManager::deinit()).
Definition at line 1634 of file WamrImports.cpp.
References s_symbols_ram.
Referenced by cdc::plugin_manager::PluginManager::deinit().
|
static |
Definition at line 39 of file PluginStorage.cpp.
Referenced by ensure_volume_label(), and cdc::plugin_manager::PluginStorage::protectSystemDir().
|
static |
Definition at line 1110 of file WamrImports.cpp.
References host_adc_read(), HOST_ERR_INVALID_ARG, and wbuf_ok().
|
static |
Definition at line 1055 of file WamrImports.cpp.
References host_aes_gcm_decrypt(), HOST_ERR_INVALID_ARG, and wbuf_ok().
|
static |
Definition at line 1046 of file WamrImports.cpp.
References host_aes_gcm_encrypt(), HOST_ERR_INVALID_ARG, and wbuf_ok().
|
static |
Definition at line 487 of file WamrImports.cpp.
References host_anim_active_count().
|
static |
Definition at line 490 of file WamrImports.cpp.
References host_anim_blink().
|
static |
Definition at line 478 of file WamrImports.cpp.
References host_anim_cancel().
|
static |
Definition at line 481 of file WamrImports.cpp.
References host_anim_pause().
|
static |
Definition at line 472 of file WamrImports.cpp.
References host_anim_start(), HOST_ERR_INVALID_ARG, and wbuf_ok().
|
static |
Definition at line 484 of file WamrImports.cpp.
References host_anim_state().
|
static |
Definition at line 635 of file WamrImports.cpp.
References host_base32_decode().
|
static |
Definition at line 632 of file WamrImports.cpp.
References host_base32_encode().
|
static |
Definition at line 1042 of file WamrImports.cpp.
References host_base64_decode().
|
static |
Definition at line 1040 of file WamrImports.cpp.
References host_base64_encode().
|
static |
Definition at line 62 of file WamrImports.cpp.
References host_battery_mv().
|
static |
Definition at line 63 of file WamrImports.cpp.
References host_battery_pct().
|
static |
Definition at line 1233 of file WamrImports.cpp.
References host_ble_conn_handle().
|
static |
Definition at line 1231 of file WamrImports.cpp.
References host_ble_connect().
|
static |
Definition at line 1237 of file WamrImports.cpp.
References host_ble_consume_discovery(), HOST_ERR_INVALID_ARG, and wbuf_ok().
|
static |
Definition at line 1258 of file WamrImports.cpp.
References host_ble_consume_notification(), HOST_ERR_INVALID_ARG, and wbuf_ok().
|
static |
Definition at line 1249 of file WamrImports.cpp.
References host_ble_consume_read().
|
static |
Definition at line 1216 of file WamrImports.cpp.
References host_ble_consume_write().
|
static |
Definition at line 1199 of file WamrImports.cpp.
References host_ble_device_name().
|
static |
Definition at line 1234 of file WamrImports.cpp.
References host_ble_disconnect().
|
static |
Definition at line 1235 of file WamrImports.cpp.
References host_ble_discover().
|
static |
Definition at line 1263 of file WamrImports.cpp.
References host_ble_get_mtu().
|
static |
Definition at line 1196 of file WamrImports.cpp.
References host_ble_is_enabled().
|
static |
Definition at line 1197 of file WamrImports.cpp.
References host_ble_mac(), HOST_ERR_INVALID_ARG, and wbuf_ok().
|
static |
Definition at line 1265 of file WamrImports.cpp.
References host_ble_on_write_complete().
|
static |
Definition at line 1247 of file WamrImports.cpp.
References host_ble_read_char().
|
static |
Definition at line 1202 of file WamrImports.cpp.
References host_ble_register_service(), HOST_ERR_INVALID_ARG, and wbuf_ok().
|
static |
Definition at line 1200 of file WamrImports.cpp.
References host_ble_rssi().
|
static |
Definition at line 1220 of file WamrImports.cpp.
References host_ble_scan_done().
|
static |
Definition at line 1221 of file WamrImports.cpp.
References host_ble_scan_results(), HOST_ERR_INVALID_ARG, and wbuf_ok().
|
static |
Definition at line 1219 of file WamrImports.cpp.
References host_ble_scan_start().
|
static |
Definition at line 1214 of file WamrImports.cpp.
References host_ble_send_indication().
|
static |
Definition at line 1212 of file WamrImports.cpp.
References host_ble_send_notification().
|
static |
Definition at line 1254 of file WamrImports.cpp.
References host_ble_subscribe().
|
static |
Definition at line 1256 of file WamrImports.cpp.
References host_ble_subscribe_char().
|
static |
Definition at line 1211 of file WamrImports.cpp.
References host_ble_unregister_service().
|
static |
Definition at line 1251 of file WamrImports.cpp.
References host_ble_write_char().
|
static |
Definition at line 85 of file WamrImports.cpp.
References host_browser_open().
|
static |
Definition at line 66 of file WamrImports.cpp.
References host_charge_status().
|
static |
Definition at line 808 of file WamrImports.cpp.
References host_cmd_consume().
|
static |
Definition at line 806 of file WamrImports.cpp.
References host_cpu_load().
|
static |
Definition at line 1167 of file WamrImports.cpp.
References host_display_clear().
|
static |
Definition at line 1170 of file WamrImports.cpp.
References host_display_draw_line().
|
static |
Definition at line 1168 of file WamrImports.cpp.
References host_display_draw_pixel().
|
static |
Definition at line 1173 of file WamrImports.cpp.
References host_display_draw_rect().
|
static |
Definition at line 1179 of file WamrImports.cpp.
References host_display_draw_text().
|
static |
Definition at line 1176 of file WamrImports.cpp.
References host_display_fill_rect().
|
static |
Definition at line 1182 of file WamrImports.cpp.
References host_display_flush().
|
static |
Definition at line 1186 of file WamrImports.cpp.
References host_display_get_backlight().
|
static |
Definition at line 1166 of file WamrImports.cpp.
References host_display_height().
|
static |
Definition at line 1183 of file WamrImports.cpp.
References host_display_is_busy().
|
static |
Definition at line 1184 of file WamrImports.cpp.
References host_display_set_backlight().
|
static |
Definition at line 1165 of file WamrImports.cpp.
References host_display_width().
|
static |
Definition at line 735 of file WamrImports.cpp.
References host_ecc_delete(), and name.
|
static |
Definition at line 737 of file WamrImports.cpp.
References host_ecc_exists(), and name.
|
static |
Definition at line 723 of file WamrImports.cpp.
References curve, host_ecc_generate(), and name.
|
static |
Definition at line 725 of file WamrImports.cpp.
References curve, host_ecc_import(), HOST_ERR_INVALID_ARG, name, and wbuf_ok().
|
static |
Definition at line 730 of file WamrImports.cpp.
References curve, host_ecc_pubkey(), HOST_ERR_INVALID_ARG, name, and wbuf_ok().
|
static |
Definition at line 739 of file WamrImports.cpp.
References host_ecdsa_sign(), HOST_ERR_INVALID_ARG, name, and wbuf_ok().
|
static |
Definition at line 744 of file WamrImports.cpp.
References host_eddsa_sign(), HOST_ERR_INVALID_ARG, name, and wbuf_ok().
|
static |
Definition at line 1144 of file WamrImports.cpp.
References host_event_publish().
|
static |
Definition at line 752 of file WamrImports.cpp.
References host_event_subscribe().
|
static |
Definition at line 754 of file WamrImports.cpp.
References host_event_unsubscribe().
|
static |
Definition at line 981 of file WamrImports.cpp.
References host_ext_feature_available().
|
static |
Definition at line 989 of file WamrImports.cpp.
References host_ext_feature_consume().
|
static |
Definition at line 986 of file WamrImports.cpp.
References host_ext_feature_register_handler().
|
static |
Definition at line 992 of file WamrImports.cpp.
References host_ext_feature_result().
|
static |
Definition at line 983 of file WamrImports.cpp.
References host_ext_feature_use().
|
static |
Definition at line 803 of file WamrImports.cpp.
References host_feature_enabled().
|
static |
Definition at line 598 of file WamrImports.cpp.
References host_fs_list(), and HOST_OK.
|
static |
Definition at line 582 of file WamrImports.cpp.
References host_fs_read(), HOST_OK, and name.
|
static |
Definition at line 589 of file WamrImports.cpp.
References host_fs_remove(), and name.
|
static |
Definition at line 591 of file WamrImports.cpp.
References host_fs_size(), HOST_OK, and name.
|
static |
Definition at line 605 of file WamrImports.cpp.
References host_fs_view(), and name.
|
static |
Definition at line 606 of file WamrImports.cpp.
References host_fs_view_image(), and name.
|
static |
Definition at line 607 of file WamrImports.cpp.
References host_fs_view_markdown(), and name.
|
static |
Definition at line 579 of file WamrImports.cpp.
References host_fs_write(), and name.
|
static |
Definition at line 800 of file WamrImports.cpp.
References host_get_build_profile().
|
static |
Definition at line 790 of file WamrImports.cpp.
References host_get_firmware_version().
|
static |
Definition at line 1108 of file WamrImports.cpp.
References host_gpio_pwm_set_duty().
|
static |
Definition at line 774 of file WamrImports.cpp.
References host_gpio_pwm_start().
|
static |
Definition at line 776 of file WamrImports.cpp.
References host_gpio_pwm_stop().
|
static |
Definition at line 764 of file WamrImports.cpp.
References HOST_ERR_INVALID_ARG, host_gpio_read(), HOST_OK, and wbuf_ok().
|
static |
Definition at line 772 of file WamrImports.cpp.
References host_gpio_release().
|
static |
Definition at line 758 of file WamrImports.cpp.
References host_gpio_set_direction().
|
static |
Definition at line 760 of file WamrImports.cpp.
References host_gpio_set_pull().
|
static |
Definition at line 762 of file WamrImports.cpp.
References host_gpio_write().
|
static |
Definition at line 1044 of file WamrImports.cpp.
References host_hex_decode().
|
static |
Definition at line 638 of file WamrImports.cpp.
References host_hex_encode().
|
static |
Definition at line 625 of file WamrImports.cpp.
References HOST_ERR_INVALID_ARG, host_hmac_sha256(), and wbuf_ok().
|
static |
Definition at line 654 of file WamrImports.cpp.
References host_http_close().
|
static |
Definition at line 1141 of file WamrImports.cpp.
References host_http_content_length().
|
static |
Definition at line 643 of file WamrImports.cpp.
References host_http_open().
|
static |
Definition at line 652 of file WamrImports.cpp.
References host_http_perform().
|
static |
Definition at line 656 of file WamrImports.cpp.
References host_http_read_chunk(), and HOST_OK.
|
static |
Definition at line 649 of file WamrImports.cpp.
References host_http_set_body().
|
static |
Definition at line 646 of file WamrImports.cpp.
References host_http_set_header().
|
static |
Definition at line 653 of file WamrImports.cpp.
References host_http_status().
|
static |
Definition at line 546 of file WamrImports.cpp.
References host_i18n_current_language().
|
static |
Definition at line 545 of file WamrImports.cpp.
References host_i18n_tr_core().
|
static |
Definition at line 543 of file WamrImports.cpp.
References host_i18n_tr_key().
|
static |
Definition at line 544 of file WamrImports.cpp.
References host_i18n_tr_meta().
|
static |
Definition at line 1119 of file WamrImports.cpp.
References host_i2c_read().
|
static |
Definition at line 1124 of file WamrImports.cpp.
References HOST_ERR_INVALID_ARG, host_i2c_scan(), and wbuf_ok().
|
static |
Definition at line 1117 of file WamrImports.cpp.
References host_i2c_write().
|
static |
Definition at line 1121 of file WamrImports.cpp.
References host_i2c_write_read().
|
static |
Definition at line 873 of file WamrImports.cpp.
References HOST_ERR_INVALID_ARG, host_image_info(), and wbuf_ok().
|
static |
Definition at line 882 of file WamrImports.cpp.
References HOST_ERR_INVALID_ARG, host_image_render(), and wbuf_ok().
|
static |
Definition at line 68 of file WamrImports.cpp.
References host_is_battery_critical().
|
static |
Definition at line 67 of file WamrImports.cpp.
References host_is_battery_low().
|
static |
Definition at line 59 of file WamrImports.cpp.
References host_is_time_set().
|
static |
Definition at line 64 of file WamrImports.cpp.
References host_is_usb_connected().
|
static |
Definition at line 1191 of file WamrImports.cpp.
References host_key_consume_next().
|
static |
Definition at line 1190 of file WamrImports.cpp.
References host_key_pressed().
|
static |
Definition at line 1067 of file WamrImports.cpp.
References HOST_ERR_INVALID_ARG, host_local_time(), and wbuf_ok().
|
static |
Definition at line 1032 of file WamrImports.cpp.
References host_lockscreen_alert().
|
static |
Definition at line 1024 of file WamrImports.cpp.
References host_lockscreen_register_action().
|
static |
Definition at line 1029 of file WamrImports.cpp.
References host_lockscreen_unregister_action().
|
static |
Definition at line 52 of file WamrImports.cpp.
References host_log().
|
static |
Definition at line 1073 of file WamrImports.cpp.
References host_log_hex().
|
static |
Definition at line 816 of file WamrImports.cpp.
References host_msg_consume().
|
static |
Definition at line 812 of file WamrImports.cpp.
References host_msg_register_handler().
|
static |
Definition at line 822 of file WamrImports.cpp.
References flags, HOST_ERR_INVALID_ARG, host_msg_send(), and wbuf_ok().
|
static |
Definition at line 819 of file WamrImports.cpp.
References flags, and host_msg_send_interactive().
|
static |
Definition at line 814 of file WamrImports.cpp.
References host_msg_unregister_handler().
|
static |
Definition at line 683 of file WamrImports.cpp.
References host_net_accept().
|
static |
Definition at line 684 of file WamrImports.cpp.
References host_net_close().
|
static |
Definition at line 681 of file WamrImports.cpp.
References host_net_listen().
|
static |
Definition at line 575 of file WamrImports.cpp.
References host_nvs_erase().
|
static |
Definition at line 1077 of file WamrImports.cpp.
References host_nvs_erase_all().
|
static |
Definition at line 550 of file WamrImports.cpp.
References host_nvs_get_blob(), and HOST_OK.
|
static |
Definition at line 569 of file WamrImports.cpp.
References host_nvs_get_str().
|
static |
Definition at line 560 of file WamrImports.cpp.
References HOST_ERR_INVALID_ARG, host_nvs_get_u32(), and wbuf_ok().
|
static |
Definition at line 1078 of file WamrImports.cpp.
References HOST_ERR_INVALID_ARG, host_nvs_list_keys(), and wbuf_ok().
|
static |
Definition at line 557 of file WamrImports.cpp.
References host_nvs_set_blob().
|
static |
Definition at line 572 of file WamrImports.cpp.
References host_nvs_set_str().
|
static |
Definition at line 566 of file WamrImports.cpp.
References host_nvs_set_u32().
|
static |
Definition at line 1017 of file WamrImports.cpp.
References host_pixel_strip_clear().
|
static |
Definition at line 1006 of file WamrImports.cpp.
References host_pixel_strip_deinit().
|
static |
Definition at line 1013 of file WamrImports.cpp.
References host_pixel_strip_fill().
|
static |
Definition at line 1002 of file WamrImports.cpp.
References host_pixel_strip_init().
|
static |
Definition at line 1019 of file WamrImports.cpp.
References host_pixel_strip_length().
|
static |
Definition at line 1020 of file WamrImports.cpp.
References host_pixel_strip_ready().
|
static |
Definition at line 1018 of file WamrImports.cpp.
References host_pixel_strip_refresh().
|
static |
Definition at line 1007 of file WamrImports.cpp.
References host_pixel_strip_set().
|
static |
Definition at line 65 of file WamrImports.cpp.
References host_power_source().
|
static |
Definition at line 849 of file WamrImports.cpp.
References HOST_ERR_INVALID_ARG, host_qr_measure(), and wbuf_ok().
|
static |
Definition at line 856 of file WamrImports.cpp.
References HOST_ERR_INVALID_ARG, host_qr_render_bitmap(), and wbuf_ok().
|
static |
Definition at line 616 of file WamrImports.cpp.
References host_random().
|
static |
Definition at line 1038 of file WamrImports.cpp.
References host_random_strict().
|
static |
Definition at line 714 of file WamrImports.cpp.
References host_rmem_erase_named(), and name.
|
static |
Definition at line 717 of file WamrImports.cpp.
References host_rmem_name_used(), and name.
|
static |
Definition at line 702 of file WamrImports.cpp.
References HOST_OK, host_rmem_read_named(), and name.
|
static |
Definition at line 720 of file WamrImports.cpp.
References host_rmem_slot_size().
|
static |
Definition at line 710 of file WamrImports.cpp.
References host_rmem_write_named(), and name.
|
static |
Definition at line 1134 of file WamrImports.cpp.
References host_sao_eeprom_read().
|
static |
Definition at line 1136 of file WamrImports.cpp.
References host_sao_eeprom_write().
|
static |
Definition at line 1147 of file WamrImports.cpp.
References HOST_ERR_INVALID_ARG, host_se_chip_id(), and wbuf_ok().
|
static |
Definition at line 1157 of file WamrImports.cpp.
References HOST_ERR_INVALID_ARG, host_se_fw_version(), and wbuf_ok().
|
static |
Definition at line 687 of file WamrImports.cpp.
References host_set_resident(), and resident.
|
static |
Definition at line 69 of file WamrImports.cpp.
References host_set_sleep_inhibit().
|
static |
Definition at line 619 of file WamrImports.cpp.
References HOST_ERR_INVALID_ARG, host_sha256(), and wbuf_ok().
|
static |
Definition at line 678 of file WamrImports.cpp.
References host_socket_close().
|
static |
Definition at line 665 of file WamrImports.cpp.
References host_socket_open().
|
static |
Definition at line 674 of file WamrImports.cpp.
References host_socket_read().
|
static |
Definition at line 670 of file WamrImports.cpp.
References host_socket_write().
|
static |
Definition at line 407 of file WamrImports.cpp.
References host_sprite_create().
|
static |
Definition at line 427 of file WamrImports.cpp.
References host_sprite_create_from_image().
|
static |
Definition at line 412 of file WamrImports.cpp.
References host_sprite_create_from_surface().
|
static |
Definition at line 468 of file WamrImports.cpp.
References host_sprite_destroy().
|
static |
Definition at line 444 of file WamrImports.cpp.
References HOST_ERR_INVALID_ARG, host_sprite_get_frame(), and wbuf_ok().
|
static |
Definition at line 460 of file WamrImports.cpp.
References host_sprite_play().
|
static |
Definition at line 421 of file WamrImports.cpp.
References flags, and host_sprite_set_flags().
|
static |
Definition at line 441 of file WamrImports.cpp.
References host_sprite_set_frame().
|
static |
Definition at line 450 of file WamrImports.cpp.
References HOST_ERR_INVALID_ARG, host_sprite_set_frame_durations(), and wbuf_ok().
|
static |
Definition at line 417 of file WamrImports.cpp.
References host_sprite_set_mask().
|
static |
Definition at line 424 of file WamrImports.cpp.
References host_sprite_set_scale().
|
static |
Definition at line 465 of file WamrImports.cpp.
References host_sprite_stop().
|
static |
Definition at line 793 of file WamrImports.cpp.
References host_str_to_display().
|
static |
Definition at line 797 of file WamrImports.cpp.
References host_str_to_utf8().
|
static |
Definition at line 899 of file WamrImports.cpp.
References host_surface_clear().
|
static |
Definition at line 895 of file WamrImports.cpp.
References host_surface_create().
|
static |
Definition at line 897 of file WamrImports.cpp.
References host_surface_destroy().
|
static |
Definition at line 960 of file WamrImports.cpp.
References host_surface_draw_bitmap().
|
static |
Definition at line 938 of file WamrImports.cpp.
References host_surface_draw_circle().
|
static |
Definition at line 929 of file WamrImports.cpp.
References host_surface_draw_line().
|
static |
Definition at line 927 of file WamrImports.cpp.
References host_surface_draw_pixel().
|
static |
Definition at line 933 of file WamrImports.cpp.
References host_surface_draw_rect().
|
static |
Definition at line 949 of file WamrImports.cpp.
References host_surface_draw_round_rect().
|
static |
Definition at line 976 of file WamrImports.cpp.
References host_surface_draw_sprite().
|
static |
Definition at line 909 of file WamrImports.cpp.
References host_surface_draw_text().
|
static |
Definition at line 912 of file WamrImports.cpp.
References host_surface_draw_text_aligned().
|
static |
Definition at line 942 of file WamrImports.cpp.
References host_surface_draw_triangle().
|
static |
Definition at line 964 of file WamrImports.cpp.
References HOST_ERR_INVALID_ARG, host_surface_export(), and wbuf_ok().
|
static |
Definition at line 970 of file WamrImports.cpp.
References HOST_ERR_INVALID_ARG, host_surface_export_jpg(), and wbuf_ok().
|
static |
Definition at line 954 of file WamrImports.cpp.
References host_surface_hline().
|
static |
Definition at line 918 of file WamrImports.cpp.
References HOST_ERR_INVALID_ARG, host_surface_measure_text(), and wbuf_ok().
|
static |
Definition at line 901 of file WamrImports.cpp.
References host_surface_set_font().
|
static |
Definition at line 907 of file WamrImports.cpp.
References host_surface_set_shade().
|
static |
Definition at line 905 of file WamrImports.cpp.
References host_surface_set_text_color().
|
static |
Definition at line 903 of file WamrImports.cpp.
References host_surface_set_text_size().
|
static |
Definition at line 957 of file WamrImports.cpp.
References host_surface_vline().
|
static |
Definition at line 275 of file WamrImports.cpp.
References host_text_pick_font_that_fits().
|
static |
Definition at line 60 of file WamrImports.cpp.
References host_timezone_offset().
|
static |
Definition at line 995 of file WamrImports.cpp.
References host_ui_acquire_exclusive().
|
static |
Definition at line 238 of file WamrImports.cpp.
References HOST_ERR_INVALID_ARG, host_ui_consume_input_int(), and wbuf_ok().
|
static |
Definition at line 235 of file WamrImports.cpp.
References host_ui_consume_input_text().
|
static |
Definition at line 162 of file WamrImports.cpp.
References HOST_ERR_INVALID_ARG, host_ui_insert_list_item(), and ui_item_t::label.
|
static |
Definition at line 207 of file WamrImports.cpp.
References host_ui_pop().
|
static |
Definition at line 208 of file WamrImports.cpp.
References host_ui_pop_to_plugin().
|
static |
Definition at line 230 of file WamrImports.cpp.
References host_ui_push_color_picker().
|
static |
Definition at line 82 of file WamrImports.cpp.
References host_ui_push_confirm().
|
static |
Definition at line 184 of file WamrImports.cpp.
References HOST_ERR_INVALID_ARG, host_ui_push_context_menu(), ui_item_t::label, and cdc::ui::ContextMenuView::MAX_ITEMS.
|
static |
Definition at line 781 of file WamrImports.cpp.
References host_ui_push_date().
|
static |
Definition at line 79 of file WamrImports.cpp.
References host_ui_push_info().
|
static |
Definition at line 117 of file WamrImports.cpp.
|
static |
Definition at line 76 of file WamrImports.cpp.
References host_ui_push_message().
|
static |
Definition at line 217 of file WamrImports.cpp.
References host_ui_push_password().
|
static |
Definition at line 221 of file WamrImports.cpp.
References host_ui_push_pin_entry().
|
static |
Definition at line 226 of file WamrImports.cpp.
References host_ui_push_slider().
|
static |
Definition at line 213 of file WamrImports.cpp.
References host_ui_push_t9_input().
|
static |
Definition at line 786 of file WamrImports.cpp.
References host_ui_push_time().
|
static |
Definition at line 73 of file WamrImports.cpp.
References host_ui_push_toast().
|
static |
Definition at line 996 of file WamrImports.cpp.
References host_ui_release_exclusive().
|
static |
Definition at line 179 of file WamrImports.cpp.
References host_ui_remove_list_item().
|
static |
Definition at line 209 of file WamrImports.cpp.
References host_ui_repaint().
|
static |
Definition at line 123 of file WamrImports.cpp.
|
static |
Definition at line 997 of file WamrImports.cpp.
References host_ui_set_inactivity().
|
static |
Definition at line 134 of file WamrImports.cpp.
References host_ui_set_view_empty().
|
static |
Definition at line 129 of file WamrImports.cpp.
References host_ui_set_view_footer().
|
static |
Definition at line 139 of file WamrImports.cpp.
References host_ui_set_view_lifecycle().
|
static |
Definition at line 145 of file WamrImports.cpp.
References HOST_ERR_INVALID_ARG, host_ui_update_list_item(), and ui_item_t::label.
|
static |
Definition at line 609 of file WamrImports.cpp.
References HOST_ERR_INVALID_ARG, host_ui_view_image(), and wbuf_ok().
|
static |
Definition at line 611 of file WamrImports.cpp.
References HOST_ERR_INVALID_ARG, host_ui_view_markdown(), and wbuf_ok().
|
static |
Definition at line 210 of file WamrImports.cpp.
References host_ui_wink().
|
static |
Definition at line 58 of file WamrImports.cpp.
References host_unix_time().
|
static |
Definition at line 57 of file WamrImports.cpp.
References host_uptime_ms().
|
static |
Definition at line 1192 of file WamrImports.cpp.
References host_usb_cdc_write().
|
static |
Definition at line 831 of file WamrImports.cpp.
References host_vcard_get_own().
|
static |
Definition at line 841 of file WamrImports.cpp.
References host_vcard_received_add().
|
static |
Definition at line 833 of file WamrImports.cpp.
References host_vcard_received_count().
|
static |
Definition at line 845 of file WamrImports.cpp.
References host_vcard_received_delete().
|
static |
Definition at line 837 of file WamrImports.cpp.
References host_vcard_received_display().
|
static |
Definition at line 835 of file WamrImports.cpp.
References host_vcard_received_get().
|
static |
Definition at line 843 of file WamrImports.cpp.
References host_vcard_received_update().
|
static |
Definition at line 839 of file WamrImports.cpp.
References host_vcard_set_own().
|
static |
Definition at line 503 of file WamrImports.cpp.
References host_view_canvas_add_button().
|
static |
Definition at line 495 of file WamrImports.cpp.
References host_view_canvas_add_slider().
|
static |
Definition at line 499 of file WamrImports.cpp.
References host_view_canvas_add_text().
|
static |
Definition at line 260 of file WamrImports.cpp.
References host_view_canvas_clear().
|
static |
Definition at line 263 of file WamrImports.cpp.
References flags, and host_view_canvas_clear_ex().
|
static |
Definition at line 347 of file WamrImports.cpp.
References host_view_canvas_commit().
|
static |
Definition at line 326 of file WamrImports.cpp.
References HOST_ERR_INVALID_ARG, host_view_canvas_draw_bitmap(), and wbuf_ok().
|
static |
Definition at line 306 of file WamrImports.cpp.
References host_view_canvas_draw_circle().
|
static |
Definition at line 301 of file WamrImports.cpp.
References host_view_canvas_draw_line().
|
static |
Definition at line 298 of file WamrImports.cpp.
References host_view_canvas_draw_pixel().
|
static |
Definition at line 292 of file WamrImports.cpp.
References host_view_canvas_draw_rect().
|
static |
Definition at line 319 of file WamrImports.cpp.
References host_view_canvas_draw_round_rect().
|
static |
Definition at line 403 of file WamrImports.cpp.
References host_view_canvas_draw_sprite().
|
static |
Definition at line 283 of file WamrImports.cpp.
References host_view_canvas_draw_text().
|
static |
Definition at line 286 of file WamrImports.cpp.
References host_view_canvas_draw_text_aligned().
|
static |
Definition at line 311 of file WamrImports.cpp.
References host_view_canvas_draw_triangle().
|
static |
Definition at line 350 of file WamrImports.cpp.
References host_view_canvas_elem_begin().
|
static |
Definition at line 373 of file WamrImports.cpp.
References host_view_canvas_elem_clear().
|
static |
Definition at line 353 of file WamrImports.cpp.
References host_view_canvas_elem_end().
|
static |
Definition at line 388 of file WamrImports.cpp.
References HOST_ERR_INVALID_ARG, host_view_canvas_elem_get_bounds(), and wbuf_ok().
|
static |
Definition at line 379 of file WamrImports.cpp.
References HOST_ERR_INVALID_ARG, host_view_canvas_elem_get_offset(), and wbuf_ok().
|
static |
Definition at line 361 of file WamrImports.cpp.
References host_view_canvas_elem_move().
|
static |
Definition at line 370 of file WamrImports.cpp.
References host_view_canvas_elem_remove().
|
static |
Definition at line 356 of file WamrImports.cpp.
References host_view_canvas_elem_set_offset().
|
static |
Definition at line 376 of file WamrImports.cpp.
References host_view_canvas_elem_set_z().
|
static |
Definition at line 366 of file WamrImports.cpp.
References host_view_canvas_elem_show().
|
static |
Definition at line 250 of file WamrImports.cpp.
References HOST_ERR_INVALID_ARG, host_view_canvas_get_body_size(), and wbuf_ok().
|
static |
Definition at line 528 of file WamrImports.cpp.
References HOST_ERR_INVALID_ARG, host_view_canvas_get_focus(), and wbuf_ok().
|
static |
Definition at line 521 of file WamrImports.cpp.
References host_view_canvas_get_text().
|
static |
Definition at line 512 of file WamrImports.cpp.
References HOST_ERR_INVALID_ARG, host_view_canvas_get_value(), and wbuf_ok().
|
static |
Definition at line 339 of file WamrImports.cpp.
References host_view_canvas_hline().
|
static |
Definition at line 435 of file WamrImports.cpp.
References host_view_canvas_marquee().
|
static |
Definition at line 246 of file WamrImports.cpp.
References host_view_canvas_push().
|
static |
Definition at line 506 of file WamrImports.cpp.
References host_view_canvas_remove_widget().
|
static |
Definition at line 399 of file WamrImports.cpp.
References host_view_canvas_set_anim_policy().
|
static |
Definition at line 525 of file WamrImports.cpp.
References host_view_canvas_set_focus().
|
static |
Definition at line 272 of file WamrImports.cpp.
References host_view_canvas_set_font().
|
static |
Definition at line 257 of file WamrImports.cpp.
References host_view_canvas_set_footer().
|
static |
Definition at line 432 of file WamrImports.cpp.
References host_view_canvas_set_ink().
|
static |
Definition at line 534 of file WamrImports.cpp.
References host_view_canvas_set_key_repeat().
|
static |
Definition at line 538 of file WamrImports.cpp.
References host_view_canvas_set_long_press_action().
|
static |
Definition at line 336 of file WamrImports.cpp.
References host_view_canvas_set_shade().
|
static |
Definition at line 518 of file WamrImports.cpp.
References host_view_canvas_set_text().
|
static |
Definition at line 269 of file WamrImports.cpp.
References host_view_canvas_set_text_color().
|
static |
Definition at line 266 of file WamrImports.cpp.
References host_view_canvas_set_text_size().
|
static |
Definition at line 509 of file WamrImports.cpp.
References host_view_canvas_set_value().
|
static |
Definition at line 343 of file WamrImports.cpp.
References host_view_canvas_vline().
|
static |
Definition at line 697 of file WamrImports.cpp.
References host_wifi_ip().
|
static |
Definition at line 694 of file WamrImports.cpp.
References host_wifi_is_connected().
|
static |
Definition at line 1090 of file WamrImports.cpp.
References HOST_ERR_INVALID_ARG, host_wifi_mac(), and wbuf_ok().
|
static |
Definition at line 693 of file WamrImports.cpp.
References host_wifi_release().
|
static |
Definition at line 692 of file WamrImports.cpp.
References host_wifi_request().
|
static |
Definition at line 1092 of file WamrImports.cpp.
References host_wifi_rssi().
|
static |
Definition at line 1094 of file WamrImports.cpp.
References host_wifi_scan_done().
|
static |
Definition at line 1095 of file WamrImports.cpp.
References HOST_ERR_INVALID_ARG, host_wifi_scan_results(), and wbuf_ok().
|
static |
Definition at line 695 of file WamrImports.cpp.
References host_wifi_ssid().
|
static |
Definition at line 1093 of file WamrImports.cpp.
References host_wifi_start_scan().
|
inlinestatic |
Definition at line 42 of file WamrImports.cpp.
Referenced by w_host_adc_read(), w_host_aes_gcm_decrypt(), w_host_aes_gcm_encrypt(), w_host_anim_start(), w_host_ble_consume_discovery(), w_host_ble_consume_notification(), w_host_ble_mac(), w_host_ble_register_service(), w_host_ble_scan_results(), w_host_ecc_import(), w_host_ecc_pubkey(), w_host_ecdsa_sign(), w_host_eddsa_sign(), w_host_gpio_read(), w_host_hmac_sha256(), w_host_i2c_scan(), w_host_image_info(), w_host_image_render(), w_host_local_time(), w_host_msg_send(), w_host_nvs_get_u32(), w_host_nvs_list_keys(), w_host_qr_measure(), w_host_qr_render_bitmap(), w_host_se_chip_id(), w_host_se_fw_version(), w_host_sha256(), w_host_sprite_get_frame(), w_host_sprite_set_frame_durations(), w_host_surface_export(), w_host_surface_export_jpg(), w_host_surface_measure_text(), w_host_ui_consume_input_int(), w_host_ui_view_image(), w_host_ui_view_markdown(), w_host_view_canvas_draw_bitmap(), w_host_view_canvas_elem_get_bounds(), w_host_view_canvas_elem_get_offset(), w_host_view_canvas_get_body_size(), w_host_view_canvas_get_focus(), w_host_view_canvas_get_value(), w_host_wifi_mac(), and w_host_wifi_scan_results().
|
static |
Definition at line 36 of file GpioSerialCommands.cpp.
Referenced by registerGpioSerialCommands(), and registerPluginSerialCommands().
|
static |
Definition at line 42 of file PluginSerialCommands.cpp.
|
inlineconstexpr |
Maximum number of provides entries a single plugin manifest may declare.
Definition at line 20 of file ExtFeatureName.h.
Referenced by cdc::plugin_manager::CapabilityChecker::validate().
|
inlineconstexpr |
Maximum external-feature name length including the trailing NUL.
Definition at line 17 of file ExtFeatureName.h.
Referenced by isValidExtFeatureName(), and cdc::plugin_manager::CapabilityChecker::validate().
|
static |
Definition at line 24 of file PluginStorage.cpp.
Referenced by cdc::plugin_manager::PluginStorage::basePath(), cdc::plugin_manager::PluginStorage::mount(), cdc::plugin_manager::PluginStorage::remountIfPending(), cdc::plugin_manager::PluginStorage::stats(), and cdc::plugin_manager::PluginStorage::unmount().
|
static |
Definition at line 23 of file PluginStorage.cpp.
Referenced by cdc::plugin_manager::PluginStorage::mount().
|
static |
Definition at line 15 of file PluginListView.cpp.
Referenced by cdc::plugin_manager::PluginListView::active(), onCtxDisable(), onCtxEnable(), onCtxStart(), onCtxStop(), cdc::plugin_manager::PluginListView::onEnter(), cdc::plugin_manager::PluginListView::onExit(), cdc::plugin_manager::PluginListView::onResume(), and onUninstallConfirmed().
|
static |
Definition at line 20 of file PluginListView.cpp.
|
static |
Definition at line 19 of file PluginListView.cpp.
Referenced by onCtxDisable(), onCtxEnable(), onCtxStart(), onCtxStop(), onCtxUninstall(), and onUninstallConfirmed().
|
static |
Definition at line 31 of file PluginStorage.cpp.
Referenced by ensure_volume_label(), cdc::plugin_manager::PluginStorage::hostActive(), cdc::plugin_manager::PluginStorage::protectSystemDir(), cdc::plugin_manager::PluginStorage::remountIfPending(), and cdc::plugin_manager::PluginStorage::setHostActive().
|
static |
Definition at line 30 of file PluginStorage.cpp.
Referenced by cdc::plugin_manager::PluginStorage::blockRead(), cdc::plugin_manager::PluginStorage::blockSize(), cdc::plugin_manager::PluginStorage::blockTotalBytes(), cdc::plugin_manager::PluginStorage::blockWrite(), ensure_volume_label(), cdc::plugin_manager::PluginStorage::listPluginIds(), cdc::plugin_manager::PluginStorage::mount(), cdc::plugin_manager::PluginStorage::protectSystemDir(), cdc::plugin_manager::PluginStorage::remountIfPending(), cdc::plugin_manager::PluginStorage::stats(), and cdc::plugin_manager::PluginStorage::unmount().
|
static |
Definition at line 32 of file PluginStorage.cpp.
Referenced by cdc::plugin_manager::PluginStorage::remountIfPending(), and cdc::plugin_manager::PluginStorage::setHostActive().
|
static |
Definition at line 1270 of file WamrImports.cpp.
Referenced by register_host_imports().
|
static |
Definition at line 1611 of file WamrImports.cpp.
Referenced by register_host_imports(), and unregister_host_imports().
|
static |
Definition at line 29 of file PluginStorage.cpp.
Referenced by cdc::plugin_manager::PluginStorage::blockRead(), cdc::plugin_manager::PluginStorage::blockSize(), cdc::plugin_manager::PluginStorage::blockTotalBytes(), cdc::plugin_manager::PluginStorage::blockWrite(), cdc::plugin_manager::PluginStorage::mount(), and cdc::plugin_manager::PluginStorage::unmount().
|
static |
Definition at line 27 of file PluginStorage.cpp.
Referenced by cdc::plugin_manager::PluginStorage::aotPath(), cdc::plugin_manager::PluginStorage::disabledPath(), cdc::plugin_manager::PluginStorage::langPath(), cdc::plugin_manager::PluginStorage::listPluginIds(), cdc::plugin_manager::PluginStorage::metaPath(), cdc::plugin_manager::PluginStorage::mount(), cdc::plugin_manager::PluginStorage::protectSystemDir(), and cdc::plugin_manager::PluginStorage::wasmPath().
|
static |
Definition at line 35 of file GpioSerialCommands.cpp.
Referenced by cdc::plugin_manager::PluginManager::activateForMessageType(), ensure_volume_label(), cdc::plugin_manager::PluginManager::init(), cdc::plugin_manager::PluginStorage::mount(), cdc::plugin_manager::PluginManifest::parse(), cdc::plugin_manager::PluginStorage::protectSystemDir(), registerGpioSerialCommands(), registerPluginSerialCommands(), cdc::plugin_manager::PluginManager::reloadBackgroundPlugin(), cdc::plugin_manager::PluginStorage::remountIfPending(), cdc::plugin_manager::PluginStorage::setHostActive(), cdc::plugin_manager::PluginManager::startPlugin(), cdc::plugin_manager::PluginManager::stopActivePlugin(), cdc::plugin_manager::PluginManager::uninstallPlugin(), cdc::plugin_manager::PluginManager::unloadAllFromRam(), cdc::plugin_manager::PluginManager::unloadFromRam(), and cdc::plugin_manager::Prerequisites::walk().
|
static |
Definition at line 14 of file PluginListView.cpp.
|
static |
Definition at line 48 of file PluginManager.cpp.
|
static |
Definition at line 11 of file PluginManifest.cpp.
|
static |
Definition at line 41 of file PluginSerialCommands.cpp.
|
static |
Definition at line 22 of file PluginStorage.cpp.
|
static |
Definition at line 13 of file Prerequisites.cpp.
|
static |
Definition at line 35 of file PluginStorage.cpp.
Referenced by ensure_volume_label().