#ifndef _C_DLL_EFILIBWRAPPER_H_ #define _C_DLL_EFILIBWRAPPER_H_ typedef enum test{first,second,drei,vier} t_order; /* building a DLL */ #define DLLIMPORT __declspec (dllexport) #ifdef __cplusplus extern "C" { /* using a C++ compiler */ #endif DLLIMPORT int getDummyEnumeratorType(int order ); //EFILIBWrapper typedef struct EFILibWrapper { void *EFILib; // intern ein EFILib* }EFILibWrapper; const char *strFileSettings_p = "settings.ini"; // Kann es sein, dass es hier einen Problem ist !! (es handelt sich um eine Konfiguration Datei) DLLIMPORT EFILibWrapper create_EFILib(bool boSimulate_p, const char *strFileSettings_p); DLLIMPORT void destory_EFILibWrapper(EFILibWrapper LV_ref_EFILib); // CEFI_Out_Wrapper struct CEFI_Out_Wrapper { const char *m_strT1; const char *m_strT2; const char *m_strT3; const char *m_strT4; const char *m_strDCA; const char *m_strDCB; const char *m_strPWZ; const char *m_strPhaseAB; const char *m_strU; const char *m_strI; const char *m_strDirection; const char *m_strZ2; const char *m_strZ3; const char *m_strZ4; const char *m_strA1; const char *m_strA2; const char *m_strB1; const char *m_strB2; const char *m_strPosError; const char *m_strWidError; const char *m_strSpeed; const char *m_strIndexNettoBrutto; const char *m_strChannel; const char *m_strAsicOffsetChannelA; const char *m_strAsicOffsetChannelB; const char *m_strAsicOffsetChannelZ; const char *m_strAsicResistorPhotoCurrent; const char *m_strCntAmount; const char *m_strCntWidthError; const char *m_strCntPosError; const char *m_strCntCurrent; const char *m_strCntZImpulseError; const char *m_strCntSlicePulseError; const char *m_strCntDutyCycleError; bool m_boEnabled; bool m_boBurned; const char *m_strAsicMode; int m_iAsicModeLevel; int m_iAsicOffsetLevelA; int m_iAsicOffsetLevelB; int m_iAsicOffsetLevelZ; int m_iAsicResistorPhotoCurrentLevel; int m_iAsicIndexPosLevel; int m_iAsicHysteresisLevel; int m_iAsicInternalReferenceCurrentLevel; int m_iAsicDivisionLevel; int m_iAsicPhotoCurrentMultiplierLevel; const char *m_strAsicInternalReferenceCurrent; const char *m_strAsicHysteresis; const char *m_strAsicDivision; const char *m_strAsicPhotoCurrentMultiplier; const char *m_strAsicIndexPos; const char *m_strAsicPreamp; const char *m_strAsicOutputFunction; const char *m_strAsicProgramming; const char *m_strAsicIndexNettoBrutto; const char *m_strAsicDivisionSync; const char *m_strAsicZAssign; const char *m_strAsicEuroUsa; const char *m_strAsicBiasPhotoDiode; double m_dAnalogChApAC; double m_dAnalogChBpAC; double m_dAnalogChZpAC; double m_dAnalogChApDC; double m_dAnalogChbpDC; double m_dAnalogChZpDC; double m_dAnalogChAnAC; double m_dAnalogChBnAC; double m_dAnalogChZnAC; double m_dAnalogChAnDC; double m_dAnalogChBnDC; double m_dAnalogChZnDC; double m_dAnalogChApACin; double m_dAnalogChBpACin; double m_dAnalogChZpACin; double m_dAnalogChAnACin; double m_dAnalogChBnACin; double m_dAnalogChZnACin; const char *m_strAngle; const char *m_strTurn; }; DLLIMPORT const char *EFILibGetFirmwareVersion(EFILibWrapper LV_ref); DLLIMPORT int EFILibPower(EFILibWrapper LV_ref, bool boPower_p); DLLIMPORT CEFI_Out_Wrapper EFILibSetDefault(EFILibWrapper LV_ref); DLLIMPORT CEFI_Out_Wrapper EFILibSetDefault_With_Slot1(EFILibWrapper LV_ref,int ieSlot); DLLIMPORT bool EFILibExistCalibration(EFILibWrapper LV_ref); DLLIMPORT bool EFILibExistCalibration_With_Slot1(EFILibWrapper LV_ref,int ienCalibration,int ienSlot); DLLIMPORT CEFI_Out_Wrapper EFILibMeasure(EFILibWrapper LV_ref); DLLIMPORT CEFI_Out_Wrapper EFILibMeasure_With_Slot1(EFILibWrapper LV_ref,int ienSlot, bool boLog_p, bool boClassify_p, bool boThrowException_p); #ifdef __cplusplus } #endif #endif