WS63 SDK 文档 7021f4f@fbb_ws63
ws63 和 ws63e 解决方案的 SDK 文档
载入中...
搜索中...
未找到
diag_mocked_shell.c 文件参考
#include "diag_mocked_shell.h"
#include "soc_diag_cmd_id.h"
#include "diag_filter.h"
#include "diag_common.h"
#include "diag_channel_item.h"
#include "diag_ind_src.h"
#include "diag_adapt_layer.h"
#include "securec.h"
#include "dfx_adapt_layer.h"
#include "uapi_crc.h"
diag_mocked_shell.c 的引用(Include)关系图:

宏定义

#define SIZEBUF   256
 
#define BITS_PER_BYTE   8
 
#define MUTEX_STS_BIT   0x1
 
#define ASCII_MAX_VALID_VALUE   0x7F
 
#define DIAG_CMD_SHELL_STR_MAX_LEN   256
 

函数

errcode_t zdiag_cmd_mocked_shell (uint16_t cmd_id, void *cmd_param, uint16_t cmd_param_size, diag_option_t *option)
 
errcode_t zdiag_cmd_mocked_shell_enable (uint16_t cmd_id, void *cmd_param, uint16_t cmd_param_size, diag_option_t *option)
 
void zdiag_mocked_shell_register_cmd_data_proc (diag_cmd_shell_data_proc data_proc_hook)
 
int zdiag_mocked_shell_uart_puts (uint8_t *data, uint32_t data_len)
 
int zdiag_mocked_shell_print (const char *fmt, va_list ap)
 
void zdiag_mocked_shell_register_directly_uartput (zdiag_data_put_uart uart_hook)
 
void zdiag_mocked_shell_init (void)
 
void zdiag_mocked_shell_set_enable (bool enable)
 
bool zdiag_mocked_shell_is_enabled (void)
 

宏定义说明

◆ ASCII_MAX_VALID_VALUE

#define ASCII_MAX_VALID_VALUE   0x7F

◆ BITS_PER_BYTE

#define BITS_PER_BYTE   8

◆ DIAG_CMD_SHELL_STR_MAX_LEN

#define DIAG_CMD_SHELL_STR_MAX_LEN   256

◆ MUTEX_STS_BIT

#define MUTEX_STS_BIT   0x1

◆ SIZEBUF

#define SIZEBUF   256

函数说明

◆ zdiag_cmd_mocked_shell()

errcode_t zdiag_cmd_mocked_shell ( uint16_t  cmd_id,
void *  cmd_param,
uint16_t  cmd_param_size,
diag_option_t option 
)

◆ zdiag_cmd_mocked_shell_enable()

errcode_t zdiag_cmd_mocked_shell_enable ( uint16_t  cmd_id,
void *  cmd_param,
uint16_t  cmd_param_size,
diag_option_t option 
)

◆ zdiag_mocked_shell_init()

void zdiag_mocked_shell_init ( void  )

◆ zdiag_mocked_shell_is_enabled()

bool zdiag_mocked_shell_is_enabled ( void  )

◆ zdiag_mocked_shell_print()

int zdiag_mocked_shell_print ( const char *  fmt,
va_list  ap 
)

◆ zdiag_mocked_shell_register_cmd_data_proc()

void zdiag_mocked_shell_register_cmd_data_proc ( diag_cmd_shell_data_proc  data_proc_hook)

◆ zdiag_mocked_shell_register_directly_uartput()

void zdiag_mocked_shell_register_directly_uartput ( zdiag_data_put_uart  uart_hook)

◆ zdiag_mocked_shell_set_enable()

void zdiag_mocked_shell_set_enable ( bool  enable)

◆ zdiag_mocked_shell_uart_puts()

int zdiag_mocked_shell_uart_puts ( uint8_t *  data,
uint32_t  data_len 
)