forked from gary/ems
2
0
Fork 0
sun_ems/ems_c/app/app_parse.h

72 lines
2.7 KiB
C
Raw Normal View History

2025-05-13 17:49:49 +08:00
/*****************************************************************************
2025-05-24 17:16:28 +08:00
* @copyright Copyright (c) 2025-2055 Gary. All rights reserved.
2025-05-13 17:49:49 +08:00
* @file app_parse.h
* @brief
* @author Gary
* @date 2024-09-04
* @remark
*****************************************************************************/
#ifndef APP_PARSE_H
#define APP_PARSE_H
#include <stdio.h>
#include <sched.h>
#include <string.h>
#include <time.h>
#include <math.h>
#include <stdbool.h>
#include <unistd.h>
#include <stdlib.h>
#include "bsp_comm.h"
#include "bsp_data_mode.h"
#include "kit_data.h"
#include "app_comm.h"
#include "utextend.h"
#include "kit_db.h"
#include "kit_log.h"
#include <cjson/cJSON.h>
#include "kit_core.h"
extern proto_dev_point_map_t protoTable[kProto_Master_End];
extern north_config_t NorthProtoTable[kProto_Slave_End];
extern advanced_setting_t AdvancedSettingTable[kAdvanced_Setting_Type_End];
// proto_dev_point_map_t *find_node_by_protocol_and_port(int protocolType, int portId);
/*********************************************************************
* @brief ID获取设备的点位数组
* @param[in] devType
* @param[in] devId ID
* @return NULL
*********************************************************************/
point_t *get_pointArr(dev_type_e devType, uint16_t devId);
2025-06-21 15:29:54 +08:00
/*********************************************************************
* @brief ID获取设备的点位数组
* @param[in] devType
* @param[in] devId ID
* @return NULL
*********************************************************************/
dev_info_t *get_devPointMapArr(dev_type_e devType, uint16_t devArrayId);
2025-05-13 17:49:49 +08:00
/*********************************************************************
* @brief
* @param[in] item: EMS的所有设备类型数量
* @return ret
*********************************************************************/
int initDevInfo();
/*********************************************************************
* @brief
* @param[in] none
* @return ret
*********************************************************************/
int initNorthInfo();
/*********************************************************************
* @brief
* @return 0- 1-
*********************************************************************/
int initAdvancedSettingInfo();
#endif // APP_PARSE_H