xt-sdk 文档 v1.0.3
xt-sdk 嵌入式 SDK API 参考
载入中...
搜索中...
未找到
xt_ota.h
浏览该文件的文档.
1
12
13#ifndef __XT_OTA_H__
14#define __XT_OTA_H__
15
16/* ==================== [Includes] ========================================== */
17
18#include "xt_error.h"
19
20#ifdef __cplusplus
21extern "C" {
22#endif
23
30
31/* ==================== [Defines] =========================================== */
32
33/* ==================== [Typedefs] ========================================== */
34
35/* ==================== [Global Prototypes] ================================= */
36
43
50
57// FIXME: struct xt_ota_info 在 xt_soc.h 中声明
59
67xt_err_t xt_ota_write(const void *src, size_t size);
68
76
77/* ==================== [Macros] ============================================ */
78 /* xt_ota */
80
81#ifdef __cplusplus
82} /* extern "C" */
83#endif
84
85#endif /* __XT_OTA_H__ */
int32_t xt_err_t
错误码类型
xt_err_t xt_ota_upgrade(bool reboot)
执行 OTA 升级
xt_err_t xt_ota_setup(void)
初始化 OTA 模块
xt_err_t xt_ota_write(const void *src, size_t size)
写入 OTA 数据
xt_err_t xt_ota_close(void)
关闭 OTA 模块
xt_err_t xt_ota_get_info(void *info)
获取 OTA 信息
XTINY 错误码定义