///////////////////////////////////////////////////////////////////////////// // This is a part of the PI-Software Sources // Copyright (C) 1995-2002 Physik Instrumente (PI) GmbH & Co. KG // All rights reserved. // // This source code belongs to the Dll for the E816 system ///////////////////////////////////////////////////////////////////////////// // Program: e816-Control DLL // // Developer: SRa // // File: E816_dll.h : main header file for the E816 DLL ///////////////////////////////////////////////////////////////////////////// #include #ifdef __cplusplus extern "C" { #endif #undef FUNC_DECL #ifdef E816_DLL_EXPORTS #define FUNC_DECL __declspec(dllexport) WINAPI #else #define FUNC_DECL __declspec(dllimport) WINAPI #endif ///////////////////////////////////////////////////////////////////////////// // DLL initialization and comm functions // int FUNC_DECL E816_InterfaceSetupDlg(char* const szRegKeyName); int FUNC_DECL E816_ConnectRS232(const int nPortNr, const long nBaudRate); int FUNC_DECL E816_FindOnRS(int* pnStartPort, int* pnStartBaud); BOOL FUNC_DECL E816_IsConnected(const int ID); void FUNC_DECL E816_CloseConnection(const int ID); int FUNC_DECL E816_GetError(const int ID); BOOL FUNC_DECL E816_TranslateError(int errNr, char* szBuffer, const int maxlen); ///////////////////////////////////////////////////////////////////////////// BOOL FUNC_DECL E816_qIDN(const int ID, char* szBuffer, int maxlen); BOOL FUNC_DECL E816_qERR(const int ID, int* pnError); BOOL FUNC_DECL E816_qPOS(const int ID, char* const axes, double* pdValarray); BOOL FUNC_DECL E816_qONT(const int ID, char* const axes, BOOL* pbOnTarget); BOOL FUNC_DECL E816_MOV(const int ID, char* const axes, double* pdValarray); BOOL FUNC_DECL E816_qMOV(const int ID, char* const axes, double* pdValarray); BOOL FUNC_DECL E816_MVR(const int ID, char* const axes, double* pdValarray); BOOL FUNC_DECL E816_SVO(const int ID, char* szAxes, BOOL* pbValarray); BOOL FUNC_DECL E816_qSVO(const int ID, char* szAxes, BOOL* pbValarray); BOOL FUNC_DECL E816_SVA(const int ID, char* const axes, double* pdValarray); BOOL FUNC_DECL E816_qSVA(const int ID, char* const axes, double* pdValarray); BOOL FUNC_DECL E816_SVR(const int ID, char* const axes, double* pdValarray); BOOL FUNC_DECL E816_qVOL(const int ID, char* const axes, double* pdValarray); BOOL FUNC_DECL E816_qOVF(const int ID, char* const axes, BOOL* pbOverflow); BOOL FUNC_DECL E816_AVG(const int ID, int nAverage); BOOL FUNC_DECL E816_qAVG(const int ID, int* pnAverage); BOOL FUNC_DECL E816_SPA(const int ID, char* const szAxes, int* iCmdarray, double* dValarray); BOOL FUNC_DECL E816_qSPA(const int ID, char* const szAxes, int* iCmdarray, double* dValarray); BOOL FUNC_DECL E816_WPA(const int ID, char* const swPassword); BOOL FUNC_DECL E816_qSAI(const int ID, char* axes, const int maxlen); BOOL FUNC_DECL E816_qSSN(const int ID, char* szAxes, int* piValarray); BOOL FUNC_DECL E816_qSCH(const int ID, char* pcChannelName); BOOL FUNC_DECL E816_SCH(const int ID, const char cChannelName); BOOL FUNC_DECL E816_RST(const int ID); BOOL FUNC_DECL E816_BDR(const int ID, int nBaudRate); BOOL FUNC_DECL E816_qBDR(const int ID, int* pnBaudRate); BOOL FUNC_DECL E816_qI2C(const int ID, int* pnErrorCode, char* pcChannel); BOOL FUNC_DECL E816_WTO(const int ID, const char cAxis, const int nNumber); BOOL FUNC_DECL E816_SWT(const int ID, const char cAxis, const int nIndex, const double dValue); ///////////////////////////////////////////////////////////////////////////// BOOL FUNC_DECL E816_GcsCommandset(const int ID, char* const szCommand); BOOL FUNC_DECL E816_GcsGetAnswer(const int ID, char* szAnswer, const int bufsize); BOOL FUNC_DECL E816_GcsGetAnswerSize(const int ID, int* iAnswerSize); BOOL FUNC_DECL E816_ConfigPStage(const int ID, const char cAxis, const double dPos10V, const double dPos0V, const BOOL bUseCurrentParams); BOOL FUNC_DECL E816_ConfigPZTVAmplifier(const int ID, const char cAxis, const unsigned char ucAmpType, const BOOL bUseCurrentParams); #ifdef __cplusplus } #endif