// AIODll.h : Declaration the entry point for the DLL application.
//
#ifndef __AIODLL_H_
#define __AIODLL_H_
#include "StdAfx.h"
#include "aiodef.h"
#ifdef __cplusplus
//extern "C" {
#define EXPORT extern "C" __declspec(dllexport)
#else
#define EXPORT __declspec(dllexport)
#endif
EXPORT ULONG __stdcall GetAvalueIOVersion(void);
EXPORT BOOL __stdcall AvalueIODLLStart(void);
EXPORT BOOL __stdcall AvalueIODLLStop(void);
EXPORT void __stdcall GetErrorMessage(PSTR);
EXPORT BOOL __stdcall PortOutput(UINT_W , UCHAR_B);
EXPORT UCHAR_B __stdcall PortInput(UINT_W);
EXPORT BOOL __stdcall PortWrite(UINT_W Port_Index, ULONG data, UCHAR_B size);
EXPORT ULONG __stdcall PortRead(UINT_W Port_Index, UCHAR_B size);
EXPORT BOOL MemoryWrite(ULONG addr, UCHAR_B data);
EXPORT BOOL MemoryWriteW(ULONG addr, UINT_W data);
EXPORT BOOL MemoryWriteDW(ULONG addr, ULONG data);
EXPORT UCHAR_B MemoryRead(ULONG addr);
EXPORT UINT_W MemoryReadW(ULONG addr);
EXPORT ULONG MemoryReadDW(ULONG addr);
EXPORT BOOL __stdcall InitialDigitIOPort(UINT_W);
EXPORT BOOL __stdcall ConfigDigitalIOPort(UINT_W);
EXPORT BOOL __stdcall DisabledDigitIOPort(void);
EXPORT BOOL __stdcall DigitalOutput(UCHAR_B);
EXPORT BOOL __stdcall DigitalOutputW(UINT_W);
EXPORT BOOL __stdcall DigitalOutputBit(UCHAR_B, UCHAR_B);
EXPORT UCHAR_B __stdcall DigitalInput(void);
EXPORT UINT_W __stdcall DigitalInputW(void);
EXPORT UCHAR_B __stdcall DigitalInputBit(UCHAR_B);
EXPORT UCHAR_B __stdcall DigitalInputBitW(UCHAR_B);
EXPORT BOOL __stdcall DigitalInputPort(UCHAR_B *dat);
EXPORT BOOL __stdcall DigitalInputPortW(UINT_W *dat);
.....
#ifdef __cplusplus
//} // for extern "C"
#endif
#endif