/*
 * @Author: zhanghongyang zhanghy@bmser.com
 * @Date: 2023-02-14 09:25:03
 * @LastEditors: zhanghongyang zhanghy@bmser.com
 * @LastEditTime: 2023-02-14 10:16:36
 * @FilePath: /lede-sdk-imx6_gcc-5.4.0_musl-1.1.16_eabi.Linux-x86_64/package/xieneng_can/src/bmser_can_parse_cfg.h
 * @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
 */

#ifndef BMSER_CAN_PARSE_CFG_H_
#define BMSER_CAN_PARSE_CFG_H_

#include <string.h>
#include <syslog.h>

#include "cJSON.h"
#include "toolkit.h"
#include "can_inf.h"
#include "bmser_dev.h"
#include "bmser_log.h"
#include "bmser_mqtt.h"
#include "bmser_utils.h"
#include "bmser_error_code.h"

/**
 * @description: 解析canbus json配置文件 
 * @param {char} *can_cfg_file 文件路径名
 * @return {*} 0:success, others:fail
 */
int bmser_can_parse_cfg_file(const char* can_cfg_file);

/**
 * @brief       从DB3配置文件解析can总线配置
 * @return      int 
 * @retval      0:正常  !0:错误
 * @par         修改日志:
 * Date                Author     Description           \n
 * 2023-09-22           JHC        创建初始版本          \n
*/
int bmser_can_parse_db3_canbusConfig();
#endif /* BMSER_CAN_PARSE_CFG_H_ */
