SDK สำหรับ TESAIoT Dev Kit
คู่มืออ้างอิง API และ Tutorial (ModusToolbox)
Loading...
Searching...
No Matches
hsm_provision_ui.h File Reference

Two teaching screens on the HSM page: certificate enrolment by CSR, and Protected Update. More...

#include "lvgl.h"

Go to the source code of this file.

Functions

void hsm_enrol_open (void)
 เปิด overlay การลงทะเบียนใบรับรองด้วย CSR จากการคลิกใน LVGL; ต้องจับคู่กับ hsm_provision_ui_teardown()
void hsm_protect_open (void)
 เปิด overlay ของ Protected Update; ข้อกำหนดเรื่องการจับคู่เหมือน hsm_enrol_open()
void hsm_provision_ui_teardown (void)
 เป็นคำสั่งสุดท้ายใน destroy_cb ของหน้า ขณะที่อ็อบเจ็กต์ LVGL ยังใช้งานได้อยู่

Detailed Description

Two teaching screens on the HSM page: certificate enrolment by CSR, and Protected Update.

Each opens a full-screen overlay, the same idiom the PIN, certificate and benchmark screens use. Unlike those, the work behind these is asynchronous: IPC_CMD_HSM_PROVISION returns immediately and an lv_timer polls, because the operation takes seconds and a busy-wait here would freeze the screen and simultaneously stop ui_busy_modal_service() from drawing the overlay that would have explained the freeze.