|
WS63 SDK 文档 7021f4f@fbb_ws63
ws63 和 ws63e 解决方案的 SDK 文档
|
#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"
宏定义 | |
| #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) |
| #define INVAID_INDEX_ID 0xFFFFFFFF |
| STATIC errcode_t flash_erase_older_records | ( | const store_file_info_t * | file_info, |
| uint32_t | data_len | ||
| ) |
| STATIC uint32_t get_circled_cur_pos | ( | store_file_info_t * | file_info, |
| uint32_t | pos_in | ||
| ) |
| STATIC uint32_t logfile_check_record_head_null | ( | store_record_info_t * | record_header, |
| uint32_t | start_pos | ||
| ) |
| errcode_t logfile_flash_erase | ( | store_service_t | service_type, |
| const store_file_cfg_t * | cfg | ||
| ) |
| errcode_t logfile_flash_prepare | ( | store_file_info_t * | file_info | ) |
| STATIC bool logfile_flash_without_head | ( | store_file_info_t * | file_info | ) |
| STATIC dfx_flash_op_type_t logfile_get_flash_op_type | ( | store_service_t | type | ) |
| STATIC bool logfile_is_index_continuous | ( | uint32_t | last_index, |
| uint32_t | cur_index | ||
| ) |
| STATIC void logfile_read_record_from_flash | ( | store_file_info_t * | file_info, |
| store_record_info_t * | record_info, | ||
| uint32_t | start_addr | ||
| ) |
| errcode_t logfile_write_cache_to_flash | ( | store_file_info_t * | file_info | ) |
| STATIC errcode_t write_cache_to_flash | ( | store_file_info_t * | file_info, |
| uint8_t * | data, | ||
| uint32_t | data_len | ||
| ) |