WS63 SDK 文档 7021f4f@fbb_ws63
ws63 和 ws63e 解决方案的 SDK 文档
载入中...
搜索中...
未找到
upg_patch_info.h 文件参考
#include <stdint.h>
#include <stdbool.h>
#include "errcode.h"
#include "upg_patch.h"
#include "LzmaDec.h"
#include "upg_common_porting.h"
upg_patch_info.h 的引用(Include)关系图:
此图展示该文件直接或间接的被哪些文件引用了:

浏览源代码.

结构体

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)
 

宏定义说明

◆ DECOMPRESSION_SIZE

#define DECOMPRESSION_SIZE   1024

◆ HN_LZMA_SIZEOF_IMGSIZE

#define HN_LZMA_SIZEOF_IMGSIZE   3

◆ PAGE_WRITE_PARTIAL_END

#define PAGE_WRITE_PARTIAL_END   (1<<5)

◆ PAGE_WRITE_PARTIAL_START

#define PAGE_WRITE_PARTIAL_START   (1<<1)

◆ PAGE_WRITE_SIGNATURE_B

#define PAGE_WRITE_SIGNATURE_B   0x80 /* Signature page has been written to flash double buffer */

◆ PAGE_WRITE_SIGNATURE_MASK

#define PAGE_WRITE_SIGNATURE_MASK   0xC0 /* Top 2 bits used for signature handling 1100 0000 */

◆ PAGE_WRITE_SIGNATURE_W

#define PAGE_WRITE_SIGNATURE_W   0x40 /* Signature page has been written to flash image */

◆ PAGE_WRITE_STANDARD

#define PAGE_WRITE_STANDARD   (1<<3)

◆ uapi_max

#define uapi_max (   a,
 
)    (((a) > (b)) ? (a) : (b))

◆ uapi_min

#define uapi_min (   a,
 
)    (((a) < (b)) ? (a) : (b))

◆ upg_compile_assert

#define upg_compile_assert (   expr)    typedef char upg_comp_assert[(expr) ? 1 : 0]

类型定义说明

◆ apply_patch_state_t

◆ control_block_t

◆ fota_buffers_t

typedef struct fota_buffers fota_buffers_t

◆ patch_state_t

typedef struct patch_state patch_state_t

◆ process_patch_state_t

◆ upg_comp_assert

typedef char upg_comp_assert[(sizeof(control_block_t)==16) ? 1 :0]

◆ zip_context_t

typedef struct zip_context zip_context_t

函数说明

◆ fota_patch_report_mem()

void fota_patch_report_mem ( void  )

◆ write_image_block()

void write_image_block ( patch_state_t state,
uint32_t  size,
int32_t  location,
const uint8_t *  source 
)