WS63 SDK 文档 7021f4f@fbb_ws63
ws63 和 ws63e 解决方案的 SDK 文档
载入中...
搜索中...
未找到
log_printf.c 文件参考
#include "log_printf.h"
#include "log_common.h"
#include "log_buffer.h"
#include "systick.h"
log_printf.c 的引用(Include)关系图:

结构体

struct  compress_log_header_t
 
struct  log_switch_cmd_t
 

宏定义

#define CHR_SECOND_PER_DAY   86400
 
#define CHR_MS_PER_SECOND   1000
 
#define LOG_MAX_ARGS_COUNT   7
 
#define LOG_MAX_ARGS_EXTEND_COUNT   7
 
#define LOG_SYNC_TIME_TIMEOUT_MS   5
 
#define LOG_CONTENT_INDEX2   2
 
#define LOG_OFFSET_18   18
 
#define LOG_OFFSET_4   4
 
#define LOG_HEADER_LEN_IN_UINT32_T   (sizeof(compress_log_header_t) / sizeof(uint32_t))
 
#define TEN_MS_AS_BASE   10
 
#define COMPRESS_LOG_MAGIC_HEADER   (0xA8 >> 3)
 
#define LOG_LIMIT_TIMEOUT_MS   5000
 
#define COMPRESS_LOG_COUNT_MARK   0
 

枚举

enum  COMPRESS_LOG_CORE { COMPRESS_LOG_CORE_EXTEND , COMPRESS_LOG_CORE_BT , COMPRESS_LOG_CORE_HIFI , COMPRESS_LOG_CORE_BT_STATUS }
 
enum  COMPRESS_LOG_EXTEND_CORE { COMPRESS_LOG_EXTEND_CORE_APP , COMPRESS_LOG_EXTEND_CORE_GNSS }
 

函数

uint64_t get_log_basetime_ms (void)
 
uint32_t get_chr_basegmt_s (void)
 
void set_chr_basegmt_s (uint32_t t)
 
bool log_switch_is_open (uint16_t domain, uint16_t module)
 Query the log module switch
 
int16_t set_log_switch (uint16_t domain, uint16_t module, bool op)
 Switch log on or off
 
uint16_t remote_config_log_switch (cores_t dst, uint16_t domain, uint16_t module, bool op)
 Called by core APP to remote config bt and hifi.
 
void reset_log_switch (bool op)
 Reset log switch to all on or off
 
bool check_compress_log_printf_threshold (void)
 Check whether the log printing is within the threshold return true:within the threshold, return false:exceeded the threshold
 
void compress_log_init (void)
 Initialization of the compression log threshold
 
void set_compress_log_count_threshold (uint32_t threshold)
 Set the compression log threshold Used for the external interface function of the wear product
 
void compress_printf (uint32_t log_addr, uint32_t log_header,...)
 Compression log printing function
 
void compress_printf_btc_info0 (uint32_t log_addr,...)
 
void compress_printf_btc_info1 (uint32_t log_addr,...)
 
void compress_printf_btc_info2 (uint32_t log_addr,...)
 
void compress_printf_btc_info3 (uint32_t log_addr,...)
 
void compress_printf_btc_info4 (uint32_t log_addr,...)
 
void compress_printf_btc_warn0 (uint32_t log_addr,...)
 
void compress_printf_btc_warn1 (uint32_t log_addr,...)
 
void compress_printf_btc_warn2 (uint32_t log_addr,...)
 
void compress_printf_btc_warn3 (uint32_t log_addr,...)
 
void compress_printf_btc_warn4 (uint32_t log_addr,...)
 
void compress_printf_rom_callback (uint32_t log_addr, uint32_t log_header_user, uint32_t log_header_eng, va_list args)
 

宏定义说明

◆ CHR_MS_PER_SECOND

#define CHR_MS_PER_SECOND   1000

◆ CHR_SECOND_PER_DAY

#define CHR_SECOND_PER_DAY   86400

◆ COMPRESS_LOG_COUNT_MARK

#define COMPRESS_LOG_COUNT_MARK   0

◆ COMPRESS_LOG_MAGIC_HEADER

#define COMPRESS_LOG_MAGIC_HEADER   (0xA8 >> 3)

◆ LOG_CONTENT_INDEX2

#define LOG_CONTENT_INDEX2   2

◆ LOG_HEADER_LEN_IN_UINT32_T

#define LOG_HEADER_LEN_IN_UINT32_T   (sizeof(compress_log_header_t) / sizeof(uint32_t))

◆ LOG_LIMIT_TIMEOUT_MS

#define LOG_LIMIT_TIMEOUT_MS   5000

◆ LOG_MAX_ARGS_COUNT

#define LOG_MAX_ARGS_COUNT   7

◆ LOG_MAX_ARGS_EXTEND_COUNT

#define LOG_MAX_ARGS_EXTEND_COUNT   7

◆ LOG_OFFSET_18

#define LOG_OFFSET_18   18

◆ LOG_OFFSET_4

#define LOG_OFFSET_4   4

◆ LOG_SYNC_TIME_TIMEOUT_MS

#define LOG_SYNC_TIME_TIMEOUT_MS   5

◆ TEN_MS_AS_BASE

#define TEN_MS_AS_BASE   10

枚举类型说明

◆ COMPRESS_LOG_CORE

枚举值
COMPRESS_LOG_CORE_EXTEND 
COMPRESS_LOG_CORE_BT 
COMPRESS_LOG_CORE_HIFI 
COMPRESS_LOG_CORE_BT_STATUS 

◆ COMPRESS_LOG_EXTEND_CORE

枚举值
COMPRESS_LOG_EXTEND_CORE_APP 
COMPRESS_LOG_EXTEND_CORE_GNSS