WS63 SDK 文档 7021f4f@fbb_ws63
ws63 和 ws63e 解决方案的 SDK 文档
载入中...
搜索中...
未找到
soc_log_strategy.h
浏览该文件的文档.
1/*
2 * Copyright (c) HiSilicon (Shanghai) Technologies Co., Ltd. 2023-2023. All rights reserved.
3 * Description: dfx soc log strategy
4 * This file should be changed only infrequently and with great care.
5 */
6
7#ifndef SOC_LOG_STRATEGY_H
8#define SOC_LOG_STRATEGY_H
10#include "errcode.h"
11#define SOC_LOG_DEFAULT_LEVEL SOC_TRACE_LEVEL_INFO
12#define SOC_LOG_INVALID_LINE 0xFFFFFFFF
13#define SOC_LOG_DEFAULT_MODULE_ID 0xFFFF
14
15typedef struct {
16 uint8_t type;
17 uint8_t level;
18 uint16_t module_id;
19 const char *fn_name;
20 uint32_t line_num;
22
29
31#endif // !SOC_LOG_STRATEGY_H
uint32_t errcode_t
Definition of error code.
Definition errcode.h:30
errcode_t soc_log_register_write_impl(dfx_write_data_interface_t *impl)
Definition soc_log.c:120
soc_log_type_t
Definition soc_log_strategy.h:23
@ SOC_LOG_TYPE_KEY_TRACE
Definition soc_log_strategy.h:27
@ SOC_LOG_TYPE_SIMPLE_PRINT
Definition soc_log_strategy.h:26
@ SOC_LOG_TYPE_INVALID
Definition soc_log_strategy.h:24
@ SOC_LOG_TYPE_PRINT
Definition soc_log_strategy.h:25
Definition dfx_write_interface.h:19
Definition soc_log_strategy.h:15
uint16_t module_id
Definition soc_log_strategy.h:18
uint32_t line_num
Definition soc_log_strategy.h:20
uint8_t type
Definition soc_log_strategy.h:16
uint8_t level
Definition soc_log_strategy.h:17
const char * fn_name
Definition soc_log_strategy.h:19