WS63 SDK 文档 7021f4f@fbb_ws63
ws63 和 ws63e 解决方案的 SDK 文档
载入中...
搜索中...
未找到
log_file_flash.c 文件参考
#include "log_file.h"
#include "errcode.h"
#include "securec.h"
#include "stdbool.h"
#include "soc_osal.h"
#include "common_def.h"
#include "dfx_adapt_layer.h"
#include "debug_print.h"
#include "log_file_common.h"
#include "log_file_flash.h"
log_file_flash.c 的引用(Include)关系图:

宏定义

#define INVAID_INDEX_ID   0xFFFFFFFF
 

函数

STATIC dfx_flash_op_type_t logfile_get_flash_op_type (store_service_t type)
 
STATIC uint32_t logfile_check_record_head_null (store_record_info_t *record_header, uint32_t start_pos)
 
STATIC errcode_t flash_erase_older_records (const store_file_info_t *file_info, uint32_t data_len)
 
STATIC errcode_t write_cache_to_flash (store_file_info_t *file_info, uint8_t *data, uint32_t data_len)
 
errcode_t logfile_write_cache_to_flash (store_file_info_t *file_info)
 
STATIC bool logfile_flash_without_head (store_file_info_t *file_info)
 
STATIC void logfile_read_record_from_flash (store_file_info_t *file_info, store_record_info_t *record_info, uint32_t start_addr)
 
STATIC uint32_t get_circled_cur_pos (store_file_info_t *file_info, uint32_t pos_in)
 
STATIC bool logfile_is_index_continuous (uint32_t last_index, uint32_t cur_index)
 
errcode_t logfile_flash_prepare (store_file_info_t *file_info)
 
errcode_t logfile_flash_erase (store_service_t service_type, const store_file_cfg_t *cfg)
 

宏定义说明

◆ INVAID_INDEX_ID

#define INVAID_INDEX_ID   0xFFFFFFFF

函数说明

◆ flash_erase_older_records()

STATIC errcode_t flash_erase_older_records ( const store_file_info_t file_info,
uint32_t  data_len 
)

◆ get_circled_cur_pos()

STATIC uint32_t get_circled_cur_pos ( store_file_info_t file_info,
uint32_t  pos_in 
)

◆ logfile_check_record_head_null()

STATIC uint32_t logfile_check_record_head_null ( store_record_info_t record_header,
uint32_t  start_pos 
)

◆ logfile_flash_erase()

errcode_t logfile_flash_erase ( store_service_t  service_type,
const store_file_cfg_t cfg 
)

◆ logfile_flash_prepare()

errcode_t logfile_flash_prepare ( store_file_info_t file_info)

◆ logfile_flash_without_head()

STATIC bool logfile_flash_without_head ( store_file_info_t file_info)

◆ logfile_get_flash_op_type()

STATIC dfx_flash_op_type_t logfile_get_flash_op_type ( store_service_t  type)

◆ logfile_is_index_continuous()

STATIC bool logfile_is_index_continuous ( uint32_t  last_index,
uint32_t  cur_index 
)

◆ logfile_read_record_from_flash()

STATIC void logfile_read_record_from_flash ( store_file_info_t file_info,
store_record_info_t record_info,
uint32_t  start_addr 
)

◆ logfile_write_cache_to_flash()

errcode_t logfile_write_cache_to_flash ( store_file_info_t file_info)

◆ write_cache_to_flash()

STATIC errcode_t write_cache_to_flash ( store_file_info_t file_info,
uint8_t *  data,
uint32_t  data_len 
)