| 123456789101112131415161718192021222324252627282930313233343536373839404142434445 |
- #ifndef __CONFIG_H__
- #define __CONFIG_H__
- #include "tc_system.h"
- typedef struct modbus_hw_config
- {
- char* serverip;
- char* port;
- short enable_ssl;
- short maxI_GUNA;
- short maxI_GUNB;
- }modbus_hw_config_t;
- typedef struct TCU_CONFIG
- {
- short tcu_id;
- short enable_modbus_hw;
- short enable_hmi;
- short enable_ocpp;
- char* ast_tty;
- char* ifname;
- modbus_hw_config_t modbus_hw;
- char* xhlog_ip;
- int xhlog_port;
-
- char* xhupdate_ip;
- int xhupdate_port;
- }tcu_config_t;
- void tcu_config_init(const char* filename);
- void tcu_config_save(const char* filename);
- void tcu_config_exit(void);
- extern tcu_config_t tcu_config;
- extern char* config_filename;
- #endif//__CONFIG_H__
|