12345678910111213141516171819202122232425262728293031323334 |
- #ifndef _ASCPROCESS_H
- #define _ASCPROCESS_H
- #include "BaseVar.h"
- #include "struct.h"
- extern CRITICAL_SECTION g_csAscReadOneData;
- extern int test(CBaseVar *tmpVar );
- extern BOOL LoadAscDLL(CString strpath);
- extern BOOL InitAscComm(int iAddr, int iPort, int iBaudrate, int iDataBit, int iStopBit, int iParity, int iIntervals);//初始化串口
- extern int AscCommandSend();//用于时实采集数据的发送
- extern int AscResponseValue();//用于时实采集数据的响应
- extern int AscRequestWrData(char chDevUid[20], int iVarID, double data);//用于请求写命令操作
- extern int AscRequestData( SETBASEPARAM SetBasePara,
- int nDataLen,
- int nPort,
- int nDevAddr,
- char chDevUid[20],
- int iVarid);//用于只发送一次命令变量的请求
- extern int AscRequestSpecData(char chDevUid[20], int iVarID, int iSpecialFlag);//用于只发送一次读命令特殊变量的请求
- extern int AscSingleResponseData(char chDevUid[20], int iVarID, char chMsg[80]);//用于只响应一次命令变量的数据
- extern double AscSingleResponseWriteData(char chDevUid[20], int iVarID);//用于响应写命令变量的数据
- extern int AscSingleResponseSpecialVarData(char chDevUid[20], int iVarID, int iSpecialFlag, char chMsg[80]);//用于只响应一次命令特殊变量的数据
- extern void InitAscDll(COMMDEVBASE CommDevBase);//
- extern void UnInitAscDll();
- #endif
|