62 lines
2.6 KiB
C
62 lines
2.6 KiB
C
|
/****************************************************************************
|
||
|
|
||
|
Copyright(c) 2019 by Aerospace C.Power (Chongqing) Microelectronics. ALL RIGHTS RESERVED.
|
||
|
|
||
|
This Information is proprietary to Aerospace C.Power (Chongqing) Microelectronics and MAY NOT
|
||
|
be copied by any method or incorporated into another program without
|
||
|
the express written consent of Aerospace C.Power. This Information or any portion
|
||
|
thereof remains the property of Aerospace C.Power. The Information contained herein
|
||
|
is believed to be accurate and Aerospace C.Power assumes no responsibility or
|
||
|
liability for its use in any way and conveys no license or title under
|
||
|
any patent or copyright and makes no representation or warranty that this
|
||
|
Information is free from patent or copyright infringement.
|
||
|
|
||
|
****************************************************************************/
|
||
|
|
||
|
#include "iot_cli.h"
|
||
|
#include "iot_cli_module_config.h"
|
||
|
#include "iot_cli_host_interface.h"
|
||
|
#include "iot_cli_dbg_log.h"
|
||
|
#include "iot_cli_flash_log.h"
|
||
|
#include "iot_cli_host_pib.h"
|
||
|
#include "iot_cli_ram_operation.h"
|
||
|
#include "iot_cli_ul_buf.h"
|
||
|
#include "iot_cli_oem.h"
|
||
|
#include "iot_cli_basic_operation.h"
|
||
|
#include "iot_cli_plc_mgr_alive.h"
|
||
|
|
||
|
const CLI_MSG_ENTRY cli_common_msg_entry[] =
|
||
|
{
|
||
|
{ CLI_MODULEID_DEBUGLOG, CLI_MSGID_GET_LOG_FROM_FLASH,
|
||
|
cli_read_log_from_flash },
|
||
|
{ CLI_MODULEID_DEBUGLOG, CLI_MSGID_GET_LOG_FROM_FLASH_EX,
|
||
|
cli_read_log_from_flash_ex },
|
||
|
{ CLI_MODULEID_COMMUNICATION, CLI_MSGID_FORCE_CRASH, cli_force_crash },
|
||
|
{ CLI_MODULEID_COMMUNICATION, CLI_MSGID_UART_TEST, cli_uart_test },
|
||
|
{ CLI_MODULEID_HOSTINTERFACE, CLI_MSGID_READ_PIB, cli_read_pib_handler },
|
||
|
{ CLI_MODULEID_HOSTINTERFACE, CLI_MSGID_WRITE_PIB, cli_write_pib_handler },
|
||
|
{ CLI_MODULEID_HOSTINTERFACE, CLI_MSGID_SET_DEBUG_LOG_LEVEL,
|
||
|
cli_config_dbglog_level },
|
||
|
{ CLI_MODULEID_HOSTINTERFACE, CLI_MSGID_GET_DBGLOG_LEVEL,
|
||
|
cli_get_dbglog_level },
|
||
|
{ CLI_MODULEID_HOSTINTERFACE, CLI_MSGID_START_STOP_LIVE_LOG_CAPTURE,
|
||
|
cli_start_stop_dbglog_live_capture },
|
||
|
{ CLI_MODULEID_HOSTINTERFACE, CLI_MSGID_READ_RAM,
|
||
|
cli_read_ram },
|
||
|
{ CLI_MODULEID_HOSTINTERFACE, CLI_MSGID_SET_RAM,
|
||
|
cli_set_ram },
|
||
|
#ifdef HOST_APP_FEATURE_ENABLE
|
||
|
{ CLI_MODULEID_HOSTINTERFACE, CLI_MSGID_UL_ACK,
|
||
|
cli_ul_ack_handler },
|
||
|
{ CLI_MODULEID_HOSTINTERFACE, CLI_MSGID_PLC_MGR_ALIVE,
|
||
|
cli_plc_mgr_alive },
|
||
|
{ CLI_MODULEID_HOSTINTERFACE, CLI_MSGID_GET_OEM_MISC,
|
||
|
cli_get_oem_misc_cfg },
|
||
|
#endif
|
||
|
{ CLI_MODULEID_HOSTINTERFACE, CLI_MSGID_GET_LOCAL_INFO,
|
||
|
cli_get_local_info },
|
||
|
|
||
|
/*flag to index end of this table, always keep this as last one*/
|
||
|
{ CLI_MODULEID_MAX_NUM, CLI_MSGID_MAX_NUM, NULL },
|
||
|
};
|