|
SDK สำหรับ TESAIoT Dev Kit
คู่มืออ้างอิง API และ Tutorial (MTB & µPython)
|
#include <stddef.h>#include <stdint.h>Go to the source code of this file.
Data Structures | |
| struct | fw_hash_diag_t |
Macros | |
| #define | FW_HASH_HEX_LEN (65) |
Functions | |
| void | fw_hash_compute_at_boot (void) |
| คำนวณและแคช digest อัตลักษณ์แบบ SHA-256 ไว้ (ราว 80 ms หนึ่งครั้ง) เป็น idempotent | |
| const char * | fw_hash_hex (void) |
| digest 64 อักขระที่แคชไว้ ไม่เป็น NULL เสมอ — ได้ "unknown" ก่อนการคำนวณ ห้าม free ค่านี้ | |
| void | fw_hash_prefix8 (char *out9) |
| เขียน hex 8 อักขระแรก + NUL ลงใน out9 (ต้องมีอย่างน้อย 9 ไบต์) ไม่มีผู้เรียกที่ใดเลย | |
| void | fw_hash_get_diagnostics (fw_hash_diag_t *out) |
| เติม snapshot ข้อมูลวินิจฉัยของ hash ที่ผู้เรียกเป็นเจ้าของ สำหรับบล็อก _diag ของ bento.fw.query | |
| #define FW_HASH_HEX_LEN (65) |