|
xf_err_t | xf_ota_init (void) |
| 初始化 xf_ota 模块。
|
|
xf_err_t | xf_ota_deinit (void) |
| 反初始化 xf_ota 模块。
|
|
xf_err_t | xf_ota_get_running_partition (xf_ota_partition_t *p_part_hdl) |
| 获取当前程序运行分区信息。
|
|
xf_err_t | xf_ota_get_next_update_partition (xf_ota_partition_t *p_start_part_hdl, xf_ota_partition_t *p_next_part_hdl) |
| 获取下一个固件分区。
|
|
xf_err_t | xf_ota_get_partition_info (const xf_ota_partition_t *p_part_hdl, xf_ota_partition_info_t *p_info) |
| 获取分区信息。
|
|
size_t | xf_ota_get_platform_app_desc_size (void) |
| 获取平台 APP 描述块的大小。
|
|
xf_err_t | xf_ota_get_platform_app_desc_block (xf_ota_partition_t *p_part_hdl, void *p_desc_out, size_t buff_size) |
| 获取平台 APP 描述块。
|
|
size_t | xf_ota_get_platform_app_digest_size (void) |
| 获取平台 APP 摘要块的大小。
|
|
xf_err_t | xf_ota_get_platform_app_digest_block (xf_ota_partition_t *p_part_hdl, void *p_digest_out, size_t buff_size) |
| 获取平台 APP 摘要块。
|
|
xf_err_t | xf_ota_start (xf_ota_partition_t *p_part_hdl, uint32_t package_len, bool sequential_write, xf_ota_t *p_hdl) |
| 开始 OTA 固件写入流程。
|
|
xf_err_t | xf_ota_abort (xf_ota_t *p_hdl) |
| 中断 OTA 固件写入流程。
|
|
xf_err_t | xf_ota_end (xf_ota_t *p_hdl) |
| 终止 OTA 固件写入流程。
|
|
xf_err_t | xf_ota_upgrade (xf_ota_partition_t *p_part_hdl, bool reboot) |
| 更新固件。
|
|
xf_err_t | xf_ota_write (xf_ota_t *p_hdl, const void *src, size_t size) |
| 顺序写入 OTA 固件。
|
|
xf_err_t | xf_ota_write_to (xf_ota_t *p_hdl, size_t dst_offset, const void *src, size_t size) |
| 指定偏移地址写入 OTA 固件。
|
|
- 作者
- catcatBlue (catca.nosp@m.tblu.nosp@m.e@qq..nosp@m.com)
- 版本
- 1.0
- 日期
- 2024-12-09
Copyright (c) 2024, CorAL. All rights reserved.
在文件 xf_ota_client.h 中定义.