WS63 SDK 文档 7021f4f@fbb_ws63
ws63 和 ws63e 解决方案的 SDK 文档
载入中...
搜索中...
未找到
log_oam_msg.c 文件参考
#include "product.h"
#include "non_os.h"
#include "dfx_feature_config.h"
#include "debug_print.h"
#include "log_printf.h"
#include "log_def.h"
#include "securec.h"
#include "log_oam_reg_query.h"
#include "log_oam_mem_query.h"
#include "oal_interface.h"
#include "log_oam_msg.h"
log_oam_msg.c 的引用(Include)关系图:

宏定义

#define BT_DFT_RETURN_NEWLINE_LEN   2
 
#define BT_DFT_CMD_COMMA_LEN   1
 
#define BT_DFT_CMD_WR_INDEX   0
 
#define BT_DFT_CMD_WR_LEN   1
 
#define BT_DFT_CMD_REGMEM_SIZE_INDEX   (BT_DFT_CMD_WR_INDEX + BT_DFT_CMD_WR_LEN + BT_DFT_CMD_COMMA_LEN)
 
#define BT_DFT_CMD_REGMEM_SIZE_LEN   1
 
#define BT_DFT_CMD_REGMEM_ADDR_INDEX   (BT_DFT_CMD_REGMEM_SIZE_INDEX + BT_DFT_CMD_REGMEM_SIZE_LEN + BT_DFT_CMD_COMMA_LEN)
 
#define BT_DFT_CMD_REGMEM_ADDR_LEN   8
 
#define BT_DFT_CMD_REGMEM_VALUE_INDEX   (BT_DFT_CMD_REGMEM_ADDR_INDEX + BT_DFT_CMD_REGMEM_ADDR_LEN + BT_DFT_CMD_COMMA_LEN)
 

函数

uint32_t parse_reg_or_mem_cmd_operate (const uint8_t *data, uint32_t len, rw_reg_mem_cmd_t *reg_mem_cmd)
 Parse the opetaion in the command.
 
uint32_t parse_reg_or_mem_cmd_size (const uint8_t *data, uint32_t len, rw_reg_mem_cmd_t *reg_mem_cmd)
 Parse the value size in the command.
 
uint32_t parse_reg_or_mem_cmd_addr_value (const uint8_t *data, uint32_t len, rw_reg_mem_cmd_t *reg_mem_cmd)
 Parse the addr and value in the command.
 
bool log_oam_register_handler_callback (uint8_t message_type, oam_cmd_handle_callback callback)
 
void log_oam_prase_message (void)
 
void oml_msg_parse (uint8_t *data, uint16_t data_len)
 

宏定义说明

◆ BT_DFT_CMD_COMMA_LEN

#define BT_DFT_CMD_COMMA_LEN   1

◆ BT_DFT_CMD_REGMEM_ADDR_INDEX

#define BT_DFT_CMD_REGMEM_ADDR_INDEX   (BT_DFT_CMD_REGMEM_SIZE_INDEX + BT_DFT_CMD_REGMEM_SIZE_LEN + BT_DFT_CMD_COMMA_LEN)

◆ BT_DFT_CMD_REGMEM_ADDR_LEN

#define BT_DFT_CMD_REGMEM_ADDR_LEN   8

◆ BT_DFT_CMD_REGMEM_SIZE_INDEX

#define BT_DFT_CMD_REGMEM_SIZE_INDEX   (BT_DFT_CMD_WR_INDEX + BT_DFT_CMD_WR_LEN + BT_DFT_CMD_COMMA_LEN)

◆ BT_DFT_CMD_REGMEM_SIZE_LEN

#define BT_DFT_CMD_REGMEM_SIZE_LEN   1

◆ BT_DFT_CMD_REGMEM_VALUE_INDEX

#define BT_DFT_CMD_REGMEM_VALUE_INDEX   (BT_DFT_CMD_REGMEM_ADDR_INDEX + BT_DFT_CMD_REGMEM_ADDR_LEN + BT_DFT_CMD_COMMA_LEN)

◆ BT_DFT_CMD_WR_INDEX

#define BT_DFT_CMD_WR_INDEX   0

◆ BT_DFT_CMD_WR_LEN

#define BT_DFT_CMD_WR_LEN   1

◆ BT_DFT_RETURN_NEWLINE_LEN

#define BT_DFT_RETURN_NEWLINE_LEN   2