|
WS63 SDK 文档 7021f4f@fbb_ws63
ws63 和 ws63e 解决方案的 SDK 文档
|
#include <stdint.h>#include <stdbool.h>#include "errcode.h"#include "upg_patch.h"#include "LzmaDec.h"#include "upg_common_porting.h"

结构体 | |
| struct | fota_buffers |
| struct | patch_state |
| struct | control_block |
| struct | zip_context |
| struct | process_patch_state |
| struct | apply_patch_state |
宏定义 | |
| #define | upg_compile_assert(expr) typedef char upg_comp_assert[(expr) ? 1 : 0] |
| #define | uapi_max(a, b) (((a) > (b)) ? (a) : (b)) |
| #define | uapi_min(a, b) (((a) < (b)) ? (a) : (b)) |
| #define | DECOMPRESSION_SIZE 1024 |
| #define | PAGE_WRITE_PARTIAL_START (1<<1) |
| #define | PAGE_WRITE_STANDARD (1<<3) |
| #define | PAGE_WRITE_PARTIAL_END (1<<5) |
| #define | PAGE_WRITE_SIGNATURE_MASK 0xC0 /* Top 2 bits used for signature handling 1100 0000 */ |
| #define | PAGE_WRITE_SIGNATURE_B 0x80 /* Signature page has been written to flash double buffer */ |
| #define | PAGE_WRITE_SIGNATURE_W 0x40 /* Signature page has been written to flash image */ |
| #define | HN_LZMA_SIZEOF_IMGSIZE 3 |
类型定义 | |
| typedef struct fota_buffers | fota_buffers_t |
| typedef struct patch_state | patch_state_t |
| typedef struct control_block | control_block_t |
| typedef char | upg_comp_assert[(sizeof(control_block_t)==16) ? 1 :0] |
| typedef struct zip_context | zip_context_t |
| typedef struct process_patch_state | process_patch_state_t |
| typedef struct apply_patch_state | apply_patch_state_t |
函数 | |
| void | write_image_block (patch_state_t *state, uint32_t size, int32_t location, const uint8_t *source) |
| void | fota_patch_report_mem (void) |
| #define DECOMPRESSION_SIZE 1024 |
| #define HN_LZMA_SIZEOF_IMGSIZE 3 |
| #define PAGE_WRITE_PARTIAL_END (1<<5) |
| #define PAGE_WRITE_PARTIAL_START (1<<1) |
| #define PAGE_WRITE_SIGNATURE_B 0x80 /* Signature page has been written to flash double buffer */ |
| #define PAGE_WRITE_SIGNATURE_MASK 0xC0 /* Top 2 bits used for signature handling 1100 0000 */ |
| #define PAGE_WRITE_SIGNATURE_W 0x40 /* Signature page has been written to flash image */ |
| #define PAGE_WRITE_STANDARD (1<<3) |
| #define uapi_max | ( | a, | |
| b | |||
| ) | (((a) > (b)) ? (a) : (b)) |
| #define uapi_min | ( | a, | |
| b | |||
| ) | (((a) < (b)) ? (a) : (b)) |
| #define upg_compile_assert | ( | expr | ) | typedef char upg_comp_assert[(expr) ? 1 : 0] |
| typedef struct apply_patch_state apply_patch_state_t |
| typedef struct control_block control_block_t |
| typedef struct fota_buffers fota_buffers_t |
| typedef struct patch_state patch_state_t |
| typedef struct process_patch_state process_patch_state_t |
| typedef char upg_comp_assert[(sizeof(control_block_t)==16) ? 1 :0] |
| typedef struct zip_context zip_context_t |
| void fota_patch_report_mem | ( | void | ) |
| void write_image_block | ( | patch_state_t * | state, |
| uint32_t | size, | ||
| int32_t | location, | ||
| const uint8_t * | source | ||
| ) |