#ifndef _GRATFOCUS_H #define _GRATFOCUS_H #ifdef __cplusplus extern "C" { #endif #ifdef GRAT_EXPORT #define GRAT_API __declspec(dllexport) #else #define GRAT_API __declspec(dllimport) #endif GRAT_API int OpenClipper(void); GRAT_API int CloseClipper(void); GRAT_API void MotorOnOff(int axis, int OnOffSwitch); GRAT_API void MoveGrating(int MotorStep); GRAT_API void MoveCamFocus(int cam, int MotorStep); // cam must be 1 or 2; GRAT_API double ReadPosition(int axis); GRAT_API void ReadLimitStatus(int axis, int* pLimit, int* nLimit); GRAT_API void Go2PLimit(int axis); GRAT_API void Go2NLimit(int axis); GRAT_API void Go2Home(int axis); GRAT_API void MotorStop(int axis); GRAT_API int MovingCheck(int axis); GRAT_API int InPositionCheck(int axis); GRAT_API void SlitHatchOpen(void); GRAT_API void SlitHatchClose(void); GRAT_API void ReadSlitHatchLimit(int* plim,int* nlim); GRAT_API void getresponse(char* string, char* strRes); GRAT_API int OpnDriver(); GRAT_API int ClsDriver(); #define ERR_OpnClipper -70 #define ERR_CloseClipper -80 #ifdef __cplusplus } #endif #endif