/*
 * @Author: ghzhang guohong.zhang@lnxall.com
 * @Date: 2023-06-19 09:49:07
 * @LastEditors: ghzhang gogosanmao@126.com
 * @LastEditTime: 2023-07-01 12:29:30
 * @FilePath: \proto_forward\src\prot_transf.h
 * @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
 */
#ifndef __PROT_TRANSF_H__
#define __PROT_TRANSF_H__
#include "pthread.h"
#include "time.h"
#include "tag.h"

#define MAC_CHANNEL_NAME  "SUBDLT645"

void *prot_transf_loop(void *param);
void *lc_loop(void *param);
int proto_set_tag(tag_t *tag, tag_value_t tag_v, uint64_t cur_ms);
//
int meter_at_at182g_adp_handle(tag_t *tag, void *p);
int meter_acrel_dtsd1352_adp_handle(tag_t *tag, void *p);
int meter_dlt645_common_adp_handle(tag_t *tag, void *p);
int send_data_and_get_return_by_dev_no(char *dev_no,int timeout,unsigned char *send_buf,int send_len,unsigned char *recv_buf,int recv_buf_size);
void reflush_all_ems_data();
void *HistoryCycleTask(void *data);
#endif
