Doc PC industriel et API qui marche pas
This commit is contained in:
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
@@ -0,0 +1,13 @@
|
||||
#include <windows.h>
|
||||
//#include "AxWIO.h"
|
||||
#define dllExport _declspec(dllexport)
|
||||
|
||||
extern "C"
|
||||
{
|
||||
dllExport BOOL __stdcall AxInit();
|
||||
dllExport BOOL __stdcall AxDIOInit();
|
||||
dllExport BOOL __stdcall AxGetDO(unsigned short *data);
|
||||
dllExport BOOL __stdcall AxGetDI(unsigned short *data);
|
||||
dllExport BOOL __stdcall AxSetDO(unsigned short data);
|
||||
dllExport void __stdcall AxShutdown();
|
||||
}
|
||||
Binary file not shown.
Binary file not shown.
@@ -0,0 +1,13 @@
|
||||
#include <windows.h>
|
||||
//#include "AxWIO.h"
|
||||
#define dllExport _declspec(dllexport)
|
||||
|
||||
extern "C"
|
||||
{
|
||||
dllExport BOOL __stdcall AxInit();
|
||||
dllExport BOOL __stdcall AxDIOInit();
|
||||
dllExport BOOL __stdcall AxGetDO(unsigned short *data);
|
||||
dllExport BOOL __stdcall AxGetDI(unsigned short *data);
|
||||
dllExport BOOL __stdcall AxSetDO(unsigned short data);
|
||||
dllExport void __stdcall AxShutdown();
|
||||
}
|
||||
Binary file not shown.
Binary file not shown.
@@ -0,0 +1,44 @@
|
||||
AxDIO for SBC87891+AX96712
|
||||
==========================
|
||||
DIO library for SBC87891+AX96712
|
||||
|
||||
Directory:
|
||||
==========
|
||||
"Demo"
|
||||
- Contains demo binary files.
|
||||
|
||||
"LIB"
|
||||
- Contains AxDIO library files.( .h, .lib, .dll)
|
||||
|
||||
"SRC"
|
||||
- Contains C# demo source code.
|
||||
|
||||
API:
|
||||
====
|
||||
BOOL __stdcall AxInit()
|
||||
- Initialize AxDIO library.
|
||||
|
||||
BOOL __stdcall AxDIOInit()
|
||||
- Initialize DIO device.
|
||||
|
||||
BOOL __stdcall AxGetDO(unsigned short *data)
|
||||
- Get DO current status. (16 bit)
|
||||
- 0: Low voltage
|
||||
- 1: High voltage
|
||||
|
||||
BOOL __stdcall AxGetDI(unsigned short *data)
|
||||
- Get DI current status. (16 bit)
|
||||
- 0: Low voltage
|
||||
- 1: High voltage
|
||||
|
||||
BOOL __stdcall AxSetDO(unsigned short data)
|
||||
- Set DO status
|
||||
- 0: Low voltage
|
||||
- 1: High voltage
|
||||
|
||||
void __stdcall AxShutdown()
|
||||
- Release AxDIO resource.
|
||||
|
||||
Note:
|
||||
=====
|
||||
1. Please run application as administrator. (AxDIO needs administrator privilege)
|
||||
@@ -0,0 +1,20 @@
|
||||
|
||||
Microsoft Visual Studio Solution File, Format Version 11.00
|
||||
# Visual Studio 2010
|
||||
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "DioTestTool", "DioTestTool\DioTestTool.csproj", "{5C01187B-18A2-4675-9392-26414AC5ADC8}"
|
||||
EndProject
|
||||
Global
|
||||
GlobalSection(SolutionConfigurationPlatforms) = preSolution
|
||||
Debug|x86 = Debug|x86
|
||||
Release|x86 = Release|x86
|
||||
EndGlobalSection
|
||||
GlobalSection(ProjectConfigurationPlatforms) = postSolution
|
||||
{5C01187B-18A2-4675-9392-26414AC5ADC8}.Debug|x86.ActiveCfg = Debug|x86
|
||||
{5C01187B-18A2-4675-9392-26414AC5ADC8}.Debug|x86.Build.0 = Debug|x86
|
||||
{5C01187B-18A2-4675-9392-26414AC5ADC8}.Release|x86.ActiveCfg = Release|x86
|
||||
{5C01187B-18A2-4675-9392-26414AC5ADC8}.Release|x86.Build.0 = Release|x86
|
||||
EndGlobalSection
|
||||
GlobalSection(SolutionProperties) = preSolution
|
||||
HideSolutionNode = FALSE
|
||||
EndGlobalSection
|
||||
EndGlobal
|
||||
Binary file not shown.
Reference in New Issue
Block a user