|
CDC Badge OS
Firmware for the CDC Badge v1.0 hardware security key
|
NativeSymbol table bound under WAMR module "cdc". More...
#include "plugin_manager/WamrImports.h"#include "plugin_manager/host_api.h"#include "cdc_core/Raii.h"#include "cdc_views/ListView.h"#include "cdc_views/ContextMenuView.h"#include "wasm_export.h"#include <cstdio>#include <cstring>Go to the source code of this file.
Namespaces | |
| namespace | cdc |
| namespace | cdc::plugin_manager |
Macros | |
| #define | W(name, fn, sig) |
Functions | |
| void | plg_log_info (const char *msg) |
| void | plg_log_warn (const char *msg) |
| void | plg_log_error (const char *msg) |
| static bool | cdc::plugin_manager::wbuf_ok (wasm_exec_env_t env, const void *ptr, size_t len) |
| static void | cdc::plugin_manager::w_host_log (wasm_exec_env_t, uint32_t level, const char *tag, const char *msg) |
| static uint64_t | cdc::plugin_manager::w_host_uptime_ms (wasm_exec_env_t) |
| static int64_t | cdc::plugin_manager::w_host_unix_time (wasm_exec_env_t) |
| static int32_t | cdc::plugin_manager::w_host_is_time_set (wasm_exec_env_t) |
| static int32_t | cdc::plugin_manager::w_host_timezone_offset (wasm_exec_env_t) |
| static uint32_t | cdc::plugin_manager::w_host_battery_mv (wasm_exec_env_t) |
| static uint32_t | cdc::plugin_manager::w_host_battery_pct (wasm_exec_env_t) |
| static int32_t | cdc::plugin_manager::w_host_is_usb_connected (wasm_exec_env_t) |
| static uint32_t | cdc::plugin_manager::w_host_power_source (wasm_exec_env_t) |
| static uint32_t | cdc::plugin_manager::w_host_charge_status (wasm_exec_env_t) |
| static int32_t | cdc::plugin_manager::w_host_is_battery_low (wasm_exec_env_t) |
| static int32_t | cdc::plugin_manager::w_host_is_battery_critical (wasm_exec_env_t) |
| static void | cdc::plugin_manager::w_host_set_sleep_inhibit (wasm_exec_env_t, uint32_t on) |
| static int32_t | cdc::plugin_manager::w_host_ui_push_toast (wasm_exec_env_t, const char *t, uint32_t icon, uint32_t ms) |
| static int32_t | cdc::plugin_manager::w_host_ui_push_message (wasm_exec_env_t, const char *t, uint32_t icon, uint32_t ms) |
| static int32_t | cdc::plugin_manager::w_host_ui_push_info (wasm_exec_env_t, const char *title, const char *body) |
| static int32_t | cdc::plugin_manager::w_host_ui_push_confirm (wasm_exec_env_t, const char *text, uint32_t icon, uint32_t action_id) |
| static int32_t | cdc::plugin_manager::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 | cdc::plugin_manager::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 | cdc::plugin_manager::w_host_ui_set_view_footer (wasm_exec_env_t, const char *hint) |
| static int32_t | cdc::plugin_manager::w_host_ui_set_view_empty (wasm_exec_env_t, const char *text) |
| static int32_t | cdc::plugin_manager::w_host_ui_set_view_lifecycle (wasm_exec_env_t, uint32_t hide_action_id, uint32_t show_action_id) |
| static int32_t | cdc::plugin_manager::w_host_ui_update_list_item (wasm_exec_env_t exec_env, uint32_t index, const ui_item_t *item) |
| static int32_t | cdc::plugin_manager::w_host_ui_insert_list_item (wasm_exec_env_t exec_env, uint32_t index, const ui_item_t *item) |
| static int32_t | cdc::plugin_manager::w_host_ui_remove_list_item (wasm_exec_env_t, uint32_t index) |
| static int32_t | cdc::plugin_manager::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 | cdc::plugin_manager::w_host_ui_pop (wasm_exec_env_t) |
| static int32_t | cdc::plugin_manager::w_host_ui_pop_to_plugin (wasm_exec_env_t) |
| static int32_t | cdc::plugin_manager::w_host_ui_repaint (wasm_exec_env_t) |
| static int32_t | cdc::plugin_manager::w_host_ui_wink (wasm_exec_env_t, uint32_t count, uint32_t period_ms) |
| static int32_t | cdc::plugin_manager::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 | cdc::plugin_manager::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 | cdc::plugin_manager::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 | cdc::plugin_manager::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 | cdc::plugin_manager::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 | cdc::plugin_manager::w_host_ui_consume_input_text (wasm_exec_env_t, char *out, uint32_t out_size) |
| static int32_t | cdc::plugin_manager::w_host_ui_consume_input_int (wasm_exec_env_t exec_env, int32_t *out) |
| static int32_t | cdc::plugin_manager::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 | cdc::plugin_manager::w_host_view_canvas_get_body_size (wasm_exec_env_t exec_env, uint16_t *w, uint16_t *h) |
| static int32_t | cdc::plugin_manager::w_host_view_canvas_set_footer (wasm_exec_env_t, const char *hint) |
| static int32_t | cdc::plugin_manager::w_host_view_canvas_clear (wasm_exec_env_t) |
| static int32_t | cdc::plugin_manager::w_host_view_canvas_set_text_size (wasm_exec_env_t, uint32_t size) |
| static int32_t | cdc::plugin_manager::w_host_view_canvas_set_text_color (wasm_exec_env_t, uint32_t inverted) |
| static int32_t | cdc::plugin_manager::w_host_view_canvas_set_font (wasm_exec_env_t, uint32_t font_id) |
| static int32_t | cdc::plugin_manager::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 | cdc::plugin_manager::w_host_view_canvas_draw_text (wasm_exec_env_t, int32_t x, int32_t y, const char *text) |
| static int32_t | cdc::plugin_manager::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 | cdc::plugin_manager::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 | cdc::plugin_manager::w_host_view_canvas_invert_rect (wasm_exec_env_t, int32_t x, int32_t y, int32_t w, int32_t h) |
| static int32_t | cdc::plugin_manager::w_host_view_canvas_hline (wasm_exec_env_t, int32_t x, int32_t y, int32_t w) |
| static int32_t | cdc::plugin_manager::w_host_view_canvas_vline (wasm_exec_env_t, int32_t x, int32_t y, int32_t h) |
| static int32_t | cdc::plugin_manager::w_host_view_canvas_commit (wasm_exec_env_t, uint32_t full_refresh) |
| static int32_t | cdc::plugin_manager::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 | cdc::plugin_manager::w_host_view_canvas_add_text (wasm_exec_env_t, uint32_t widget_id, uint32_t max_len, const char *initial) |
| static int32_t | cdc::plugin_manager::w_host_view_canvas_add_button (wasm_exec_env_t, uint32_t widget_id) |
| static int32_t | cdc::plugin_manager::w_host_view_canvas_remove_widget (wasm_exec_env_t, uint32_t widget_id) |
| static int32_t | cdc::plugin_manager::w_host_view_canvas_set_value (wasm_exec_env_t, uint32_t widget_id, int32_t value) |
| static int32_t | cdc::plugin_manager::w_host_view_canvas_get_value (wasm_exec_env_t exec_env, uint32_t widget_id, int32_t *out) |
| static int32_t | cdc::plugin_manager::w_host_view_canvas_set_text (wasm_exec_env_t, uint32_t widget_id, const char *text) |
| static int32_t | cdc::plugin_manager::w_host_view_canvas_get_text (wasm_exec_env_t, uint32_t widget_id, char *out, uint32_t cap) |
| static int32_t | cdc::plugin_manager::w_host_view_canvas_set_focus (wasm_exec_env_t, uint32_t widget_id) |
| static int32_t | cdc::plugin_manager::w_host_view_canvas_get_focus (wasm_exec_env_t exec_env, uint32_t *out) |
| static int32_t | cdc::plugin_manager::w_host_view_canvas_set_key_repeat (wasm_exec_env_t, uint32_t initial_ms, uint32_t repeat_ms) |
| static int32_t | cdc::plugin_manager::w_host_view_canvas_set_long_press_action (wasm_exec_env_t, uint32_t action_id) |
| static int32_t | cdc::plugin_manager::w_host_i18n_tr_key (wasm_exec_env_t, const char *k, char *o, uint32_t c) |
| static int32_t | cdc::plugin_manager::w_host_i18n_tr_meta (wasm_exec_env_t, const char *f, char *o, uint32_t c) |
| static int32_t | cdc::plugin_manager::w_host_i18n_tr_core (wasm_exec_env_t, const char *k, char *o, uint32_t c) |
| static uint32_t | cdc::plugin_manager::w_host_i18n_current_language (wasm_exec_env_t) |
| static int32_t | cdc::plugin_manager::w_host_nvs_get_blob (wasm_exec_env_t, const char *key, uint8_t *buf, uint32_t buf_size) |
| static int32_t | cdc::plugin_manager::w_host_nvs_set_blob (wasm_exec_env_t, const char *key, const uint8_t *buf, uint32_t len) |
| static int32_t | cdc::plugin_manager::w_host_nvs_get_u32 (wasm_exec_env_t exec_env, const char *key, uint32_t *out) |
| static int32_t | cdc::plugin_manager::w_host_nvs_set_u32 (wasm_exec_env_t, const char *key, uint32_t value) |
| static int32_t | cdc::plugin_manager::w_host_nvs_get_str (wasm_exec_env_t, const char *key, char *buf, uint32_t buf_size) |
| static int32_t | cdc::plugin_manager::w_host_nvs_set_str (wasm_exec_env_t, const char *key, const char *value) |
| static int32_t | cdc::plugin_manager::w_host_nvs_erase (wasm_exec_env_t, const char *key) |
| static int32_t | cdc::plugin_manager::w_host_fs_write (wasm_exec_env_t, const char *name, const uint8_t *data, uint32_t len) |
| static int32_t | cdc::plugin_manager::w_host_fs_read (wasm_exec_env_t, const char *name, uint8_t *buf, uint32_t buf_size) |
| static int32_t | cdc::plugin_manager::w_host_fs_remove (wasm_exec_env_t, const char *name) |
| static int32_t | cdc::plugin_manager::w_host_fs_size (wasm_exec_env_t, const char *name) |
| static int32_t | cdc::plugin_manager::w_host_fs_list (wasm_exec_env_t, char *out, uint32_t out_size) |
| static int32_t | cdc::plugin_manager::w_host_fs_view (wasm_exec_env_t, const char *name) |
| static int32_t | cdc::plugin_manager::w_host_random (wasm_exec_env_t, uint8_t *buf, uint32_t len) |
| static int32_t | cdc::plugin_manager::w_host_sha256 (wasm_exec_env_t exec_env, const uint8_t *data, uint32_t len, uint8_t *out) |
| static int32_t | cdc::plugin_manager::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 | cdc::plugin_manager::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 | cdc::plugin_manager::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 | cdc::plugin_manager::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 | cdc::plugin_manager::w_host_http_open (wasm_exec_env_t, uint32_t method, const char *url, uint32_t timeout) |
| static int32_t | cdc::plugin_manager::w_host_http_set_header (wasm_exec_env_t, int32_t h, const char *k, const char *v) |
| static int32_t | cdc::plugin_manager::w_host_http_set_body (wasm_exec_env_t, int32_t h, const uint8_t *body, uint32_t len) |
| static int32_t | cdc::plugin_manager::w_host_http_perform (wasm_exec_env_t, int32_t h) |
| static int32_t | cdc::plugin_manager::w_host_http_status (wasm_exec_env_t, int32_t h) |
| static int32_t | cdc::plugin_manager::w_host_http_close (wasm_exec_env_t, int32_t h) |
| static int32_t | cdc::plugin_manager::w_host_http_read_chunk (wasm_exec_env_t, int32_t h, uint8_t *buf, uint32_t buf_size) |
| static int32_t | cdc::plugin_manager::w_host_socket_open (wasm_exec_env_t, uint32_t proto, const char *host, uint32_t port, uint32_t timeout) |
| static int32_t | cdc::plugin_manager::w_host_socket_write (wasm_exec_env_t, int32_t h, const uint8_t *data, uint32_t len, uint32_t timeout) |
| static int32_t | cdc::plugin_manager::w_host_socket_read (wasm_exec_env_t, int32_t h, uint8_t *out, uint32_t cap, uint32_t timeout) |
| static int32_t | cdc::plugin_manager::w_host_socket_close (wasm_exec_env_t, int32_t h) |
| static int32_t | cdc::plugin_manager::w_host_wifi_request (wasm_exec_env_t, uint32_t t) |
| static int32_t | cdc::plugin_manager::w_host_wifi_release (wasm_exec_env_t) |
| static int32_t | cdc::plugin_manager::w_host_wifi_is_connected (wasm_exec_env_t) |
| static int32_t | cdc::plugin_manager::w_host_wifi_ssid (wasm_exec_env_t, char *out, uint32_t sz) |
| static int32_t | cdc::plugin_manager::w_host_wifi_ip (wasm_exec_env_t, char *out, uint32_t sz) |
| static int32_t | cdc::plugin_manager::w_host_rmem_read_named (wasm_exec_env_t, const char *name, uint8_t *buf, uint32_t buf_size) |
| static int32_t | cdc::plugin_manager::w_host_rmem_write_named (wasm_exec_env_t, const char *name, const uint8_t *buf, uint32_t len) |
| static int32_t | cdc::plugin_manager::w_host_rmem_erase_named (wasm_exec_env_t, const char *name) |
| static int32_t | cdc::plugin_manager::w_host_rmem_name_used (wasm_exec_env_t, const char *name) |
| static uint32_t | cdc::plugin_manager::w_host_rmem_slot_size (wasm_exec_env_t) |
| static int32_t | cdc::plugin_manager::w_host_ecc_generate (wasm_exec_env_t, const char *name, uint32_t curve) |
| static int32_t | cdc::plugin_manager::w_host_ecc_import (wasm_exec_env_t exec_env, const char *name, const uint8_t *priv, uint32_t curve) |
| static int32_t | cdc::plugin_manager::w_host_ecc_pubkey (wasm_exec_env_t exec_env, const char *name, uint8_t *pub, uint32_t curve) |
| static int32_t | cdc::plugin_manager::w_host_ecc_delete (wasm_exec_env_t, const char *name) |
| static int32_t | cdc::plugin_manager::w_host_ecc_exists (wasm_exec_env_t, const char *name) |
| static int32_t | cdc::plugin_manager::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 | cdc::plugin_manager::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 | cdc::plugin_manager::w_host_event_subscribe (wasm_exec_env_t, uint32_t mask, uint32_t action_id) |
| static int32_t | cdc::plugin_manager::w_host_event_unsubscribe (wasm_exec_env_t, uint32_t sub) |
| static int32_t | cdc::plugin_manager::w_host_gpio_set_direction (wasm_exec_env_t, uint32_t pin, uint32_t dir) |
| static int32_t | cdc::plugin_manager::w_host_gpio_set_pull (wasm_exec_env_t, uint32_t pin, uint32_t pull) |
| static int32_t | cdc::plugin_manager::w_host_gpio_write (wasm_exec_env_t, uint32_t pin, int32_t level) |
| static int32_t | cdc::plugin_manager::w_host_gpio_read (wasm_exec_env_t exec_env, uint32_t pin, int32_t *out) |
| static int32_t | cdc::plugin_manager::w_host_gpio_release (wasm_exec_env_t, uint32_t pin) |
| static int32_t | cdc::plugin_manager::w_host_gpio_pwm_start (wasm_exec_env_t, uint32_t pin, uint32_t freq, uint32_t duty) |
| static int32_t | cdc::plugin_manager::w_host_gpio_pwm_stop (wasm_exec_env_t, uint32_t pin) |
| static int32_t | cdc::plugin_manager::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 | cdc::plugin_manager::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 | cdc::plugin_manager::w_host_get_firmware_version (wasm_exec_env_t, char *out, uint32_t out_size) |
| static int32_t | cdc::plugin_manager::w_host_str_to_display (wasm_exec_env_t, const char *in, char *out, uint32_t out_size, uint32_t target) |
| static int32_t | cdc::plugin_manager::w_host_str_to_utf8 (wasm_exec_env_t, const char *in, char *out, uint32_t out_size) |
| static int32_t | cdc::plugin_manager::w_host_get_build_profile (wasm_exec_env_t, char *out, uint32_t out_size) |
| static int32_t | cdc::plugin_manager::w_host_feature_enabled (wasm_exec_env_t, uint32_t feature_id) |
| static uint32_t | cdc::plugin_manager::w_host_cpu_load (wasm_exec_env_t) |
| static int32_t | cdc::plugin_manager::w_host_cmd_consume (wasm_exec_env_t, char *out, uint32_t out_size) |
| static int32_t | cdc::plugin_manager::w_host_msg_register_handler (wasm_exec_env_t, const char *mime, uint32_t aid) |
| static int32_t | cdc::plugin_manager::w_host_msg_unregister_handler (wasm_exec_env_t, const char *mime) |
| static int32_t | cdc::plugin_manager::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 | cdc::plugin_manager::w_host_msg_send_interactive (wasm_exec_env_t, const char *mime, const uint8_t *data, uint32_t len) |
| static int32_t | cdc::plugin_manager::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) |
| static int32_t | cdc::plugin_manager::w_host_ui_acquire_exclusive (wasm_exec_env_t) |
| static int32_t | cdc::plugin_manager::w_host_ui_release_exclusive (wasm_exec_env_t) |
| static int32_t | cdc::plugin_manager::w_host_ui_set_inactivity (wasm_exec_env_t, uint32_t timeout_ms, uint32_t action_id) |
| static int32_t | cdc::plugin_manager::w_host_pixel_strip_init (wasm_exec_env_t, uint32_t gpio, uint32_t num, uint32_t format) |
| static int32_t | cdc::plugin_manager::w_host_pixel_strip_deinit (wasm_exec_env_t) |
| static int32_t | cdc::plugin_manager::w_host_pixel_strip_set (wasm_exec_env_t, uint32_t idx, uint32_t r, uint32_t g, uint32_t b) |
| static int32_t | cdc::plugin_manager::w_host_pixel_strip_fill (wasm_exec_env_t, uint32_t r, uint32_t g, uint32_t b) |
| static int32_t | cdc::plugin_manager::w_host_pixel_strip_clear (wasm_exec_env_t) |
| static int32_t | cdc::plugin_manager::w_host_pixel_strip_refresh (wasm_exec_env_t) |
| static uint32_t | cdc::plugin_manager::w_host_pixel_strip_length (wasm_exec_env_t) |
| static int32_t | cdc::plugin_manager::w_host_pixel_strip_ready (wasm_exec_env_t) |
| static int32_t | cdc::plugin_manager::w_host_lockscreen_register_action (wasm_exec_env_t, const char *label_key, uint32_t action_id) |
| static int32_t | cdc::plugin_manager::w_host_lockscreen_unregister_action (wasm_exec_env_t) |
| static int32_t | cdc::plugin_manager::w_host_lockscreen_alert (wasm_exec_env_t, const char *text, uint32_t icon, uint32_t action_id) |
| static int32_t | cdc::plugin_manager::w_host_random_strict (wasm_exec_env_t, uint8_t *buf, uint32_t len) |
| static int32_t | cdc::plugin_manager::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 | cdc::plugin_manager::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 | cdc::plugin_manager::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 | cdc::plugin_manager::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 | cdc::plugin_manager::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 | cdc::plugin_manager::w_host_local_time (wasm_exec_env_t exec_env, void *out) |
| static void | cdc::plugin_manager::w_host_log_hex (wasm_exec_env_t, const char *tag, const char *label, const uint8_t *data, uint32_t len) |
| static int32_t | cdc::plugin_manager::w_host_nvs_erase_all (wasm_exec_env_t) |
| static int32_t | cdc::plugin_manager::w_host_nvs_list_keys (wasm_exec_env_t exec_env, char *out, uint32_t *out_len) |
| static int32_t | cdc::plugin_manager::w_host_wifi_mac (wasm_exec_env_t exec_env, uint8_t *out) |
| static int32_t | cdc::plugin_manager::w_host_wifi_rssi (wasm_exec_env_t) |
| static int32_t | cdc::plugin_manager::w_host_wifi_start_scan (wasm_exec_env_t) |
| static int32_t | cdc::plugin_manager::w_host_wifi_scan_done (wasm_exec_env_t) |
| static int32_t | cdc::plugin_manager::w_host_wifi_scan_results (wasm_exec_env_t exec_env, void *out, uint32_t *count) |
| static int32_t | cdc::plugin_manager::w_host_gpio_pwm_set_duty (wasm_exec_env_t, uint32_t pin, uint32_t duty) |
| static int32_t | cdc::plugin_manager::w_host_adc_read (wasm_exec_env_t exec_env, uint32_t pin, uint16_t *raw, uint16_t *mv) |
| static int32_t | cdc::plugin_manager::w_host_i2c_write (wasm_exec_env_t, uint32_t bus, uint32_t addr, const uint8_t *data, uint32_t len) |
| static int32_t | cdc::plugin_manager::w_host_i2c_read (wasm_exec_env_t, uint32_t bus, uint32_t addr, uint8_t *data, uint32_t len) |
| static int32_t | cdc::plugin_manager::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 | cdc::plugin_manager::w_host_i2c_scan (wasm_exec_env_t exec_env, uint32_t bus, uint8_t *found, uint32_t *count) |
| static int32_t | cdc::plugin_manager::w_host_sao_eeprom_read (wasm_exec_env_t, uint32_t off, uint8_t *buf, uint32_t len) |
| static int32_t | cdc::plugin_manager::w_host_sao_eeprom_write (wasm_exec_env_t, uint32_t off, const uint8_t *buf, uint32_t len) |
| static uint32_t | cdc::plugin_manager::w_host_http_content_length (wasm_exec_env_t, int32_t h) |
| static int32_t | cdc::plugin_manager::w_host_event_publish (wasm_exec_env_t, uint32_t subtype, uint32_t value) |
| static int32_t | cdc::plugin_manager::w_host_se_chip_id (wasm_exec_env_t exec_env, uint8_t *serial, uint32_t *len) |
| static int32_t | cdc::plugin_manager::w_host_se_fw_version (wasm_exec_env_t exec_env, uint8_t *riscv, uint8_t *spect) |
| static uint32_t | cdc::plugin_manager::w_host_display_width (wasm_exec_env_t) |
| static uint32_t | cdc::plugin_manager::w_host_display_height (wasm_exec_env_t) |
| static int32_t | cdc::plugin_manager::w_host_display_clear (wasm_exec_env_t) |
| static int32_t | cdc::plugin_manager::w_host_display_draw_pixel (wasm_exec_env_t, int32_t x, int32_t y, uint32_t color) |
| static int32_t | cdc::plugin_manager::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 | cdc::plugin_manager::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 | cdc::plugin_manager::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 | cdc::plugin_manager::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 | cdc::plugin_manager::w_host_display_flush (wasm_exec_env_t, uint32_t mode) |
| static int32_t | cdc::plugin_manager::w_host_display_is_busy (wasm_exec_env_t) |
| static int32_t | cdc::plugin_manager::w_host_key_pressed (wasm_exec_env_t, uint32_t key) |
| static int32_t | cdc::plugin_manager::w_host_key_consume_next (wasm_exec_env_t, uint8_t *out) |
| static int32_t | cdc::plugin_manager::w_host_usb_cdc_write (wasm_exec_env_t, const uint8_t *data, uint32_t len) |
| static int32_t | cdc::plugin_manager::w_host_ble_is_enabled (wasm_exec_env_t) |
| static int32_t | cdc::plugin_manager::w_host_ble_mac (wasm_exec_env_t exec_env, uint8_t *out) |
| static int32_t | cdc::plugin_manager::w_host_ble_device_name (wasm_exec_env_t, char *out, uint32_t size) |
| static int32_t | cdc::plugin_manager::w_host_ble_rssi (wasm_exec_env_t) |
| static int32_t | cdc::plugin_manager::w_host_ble_register_service (wasm_exec_env_t exec_env, void *def, void *chars, uint32_t num) |
| static int32_t | cdc::plugin_manager::w_host_ble_unregister_service (wasm_exec_env_t, uint32_t h) |
| static int32_t | cdc::plugin_manager::w_host_ble_send_notification (wasm_exec_env_t, uint32_t ch, const uint8_t *data, uint32_t len) |
| static int32_t | cdc::plugin_manager::w_host_ble_send_indication (wasm_exec_env_t, uint32_t ch, const uint8_t *data, uint32_t len) |
| static int32_t | cdc::plugin_manager::w_host_ble_consume_write (wasm_exec_env_t, uint32_t ch, uint8_t *buf, uint32_t size) |
| static int32_t | cdc::plugin_manager::w_host_ble_scan_start (wasm_exec_env_t, uint32_t dur) |
| static int32_t | cdc::plugin_manager::w_host_ble_scan_done (wasm_exec_env_t) |
| static int32_t | cdc::plugin_manager::w_host_ble_scan_results (wasm_exec_env_t exec_env, void *out, uint32_t *count) |
| static int32_t | cdc::plugin_manager::w_host_ble_connect (wasm_exec_env_t, const uint8_t *addr, uint32_t type) |
| static uint32_t | cdc::plugin_manager::w_host_ble_conn_handle (wasm_exec_env_t) |
| static int32_t | cdc::plugin_manager::w_host_ble_disconnect (wasm_exec_env_t, uint32_t conn) |
| static int32_t | cdc::plugin_manager::w_host_ble_discover (wasm_exec_env_t, uint32_t conn, const uint8_t *uuid, uint32_t aid) |
| static int32_t | cdc::plugin_manager::w_host_ble_consume_discovery (wasm_exec_env_t exec_env, void *out, uint32_t *count) |
| static int32_t | cdc::plugin_manager::w_host_ble_read_char (wasm_exec_env_t, uint32_t conn, uint32_t vh, uint32_t aid) |
| static int32_t | cdc::plugin_manager::w_host_ble_consume_read (wasm_exec_env_t, uint8_t *buf, uint32_t size) |
| static int32_t | cdc::plugin_manager::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 | cdc::plugin_manager::w_host_ble_subscribe (wasm_exec_env_t, uint32_t conn, uint32_t cccd, uint32_t aid) |
| static int32_t | cdc::plugin_manager::w_host_ble_consume_notification (wasm_exec_env_t exec_env, uint16_t *vh_out, uint8_t *buf, uint32_t size) |
| bool | cdc::plugin_manager::register_host_imports () |
| Register the "cdc" import namespace with WAMR. | |
| void | cdc::plugin_manager::unregister_host_imports () |
| Unregister the imports (called from PluginManager::deinit()). | |
Variables | |
| static const NativeSymbol | cdc::plugin_manager::s_symbols [] |
| static cdc::core::PsramUniquePtr< NativeSymbol > | cdc::plugin_manager::s_symbols_ram |
NativeSymbol table bound under WAMR module "cdc".
Each wrapper here translates between WAMR's calling convention (wasm_exec_env_t + WASM-validated argument types) and the host_api_*.cpp implementations. Wrappers stay thin - the actual logic always lives in the host_api_<family>.cpp files.
Definition in file WamrImports.cpp.
| #define W | ( | name, | |
| fn, | |||
| sig ) |
Definition at line 33 of file WamrImports.cpp.
| void plg_log_error | ( | const char * | msg | ) |
Definition at line 21 of file plugin_log_bridge.cpp.
| void plg_log_info | ( | const char * | msg | ) |
Definition at line 19 of file plugin_log_bridge.cpp.
| void plg_log_warn | ( | const char * | msg | ) |
Definition at line 20 of file plugin_log_bridge.cpp.