IO Device:IntelDIO CS

From LEXWiKi

(Difference between revisions)
Jump to: navigation, search
Current revision (12:45, 25 February 2022) (edit) (undo)
(The Sample code source you can download from)
 
(3 intermediate revisions not shown.)
Line 2: Line 2:
== The Sample code source you can download from ==
== The Sample code source you can download from ==
-
Source file: [ftp://ftp.lex.com.tw/Engineer/SoftSupport/AP_Module/852_DIO_Sample_Windows/852_DIO_CS/852_DIO_CS_src_v10.rar 852_DIO_CS_src_v10.rar]
+
<Google Drive>
-
Binary file: [ftp://ftp.lex.com.tw/Engineer/SoftSupport/AP_Module/852_DIO_Sample_Windows/852_DIO_CS/852_DIO_CS_bin_v10.rar 852_DIO_CS_bin_v10.rar]
+
Source file: [https://drive.google.com/file/d/1KoJnUUF4JAMWR7jTrvGUJuN0uuxiyDbn/view?usp=sharing 852_DIO_CS_v10_Src]
 +
 
 +
Binary file: [https://drive.google.com/file/d/1Bv_n1ocPo8o83k2v71sOhLEB7fh6HIvA/view?usp=sharing 852_DIO_CS_v10_Bin]
 +
 
 +
<FTP>
 +
 
 +
Source file: [ftp://ftp.lex.com.tw/Engineer/SoftSupport/AP_Module/852_DIO_Sample_Windows/852_DIO_CS/852_DIO_CS_src_v10.rar 852_DIO_CS_v10_Src]
 +
 
 +
Binary file: [ftp://ftp.lex.com.tw/Engineer/SoftSupport/AP_Module/852_DIO_Sample_Windows/852_DIO_CS/852_DIO_CS_bin_v10.rar 852_DIO_CS_v10_Bin]
== How to use this Demo Application ==
== How to use this Demo Application ==
Line 22: Line 30:
== Introduction ==
== Introduction ==
Our 852 GPIO & WDT Sample code base on WinIO.DLL SDK and provide the below list API
Our 852 GPIO & WDT Sample code base on WinIO.DLL SDK and provide the below list API
-
*[DllImport("WinIo.dll")] static extern bool InitializeWinIo();
+
*[DllImport("WinIo.dll")] static extern bool InitializeWinIo();
-
*[DllImport("WinIo.dll")] static extern void ShutdownWinIo();
+
*[DllImport("WinIo.dll")] static extern void ShutdownWinIo();
-
*[DllImport("WinIo.dll")] static extern bool GetPortVal(UInt32 PhysAddr,IntPtr PhysVal,Int32 nSize);
+
*[DllImport("WinIo.dll")] static extern bool GetPortVal(UInt32 PhysAddr,IntPtr PhysVal,Int32 nSize);
-
*[DllImport("WinIo.dll")] static extern void SetPortVal(UInt32 PhysAddr,Int32 PhysVal,Int32 nSize);
+
*[DllImport("WinIo.dll")] static extern void SetPortVal(UInt32 PhysAddr,Int32 PhysVal,Int32 nSize);

Current revision

The Sample code source you can download from

<Google Drive>

Source file: 852_DIO_CS_v10_Src

Binary file: 852_DIO_CS_v10_Bin

<FTP>

Source file: 852_DIO_CS_v10_Src

Binary file: 852_DIO_CS_v10_Bin

How to use this Demo Application

Image:75111_CS_BIN_v10.PNG

1. Connected the DI and DO pin

2. Before you press the "Write" button, Check the box what you like to send high data first

3. Press the "Read" button to get data from DO

4. Press the "Enable" button to test WDT function

5. Press the "Disable" button when WDT enable to disable WDT

Introduction

Our 852 GPIO & WDT Sample code base on WinIO.DLL SDK and provide the below list API

  • [DllImport("WinIo.dll")] static extern bool InitializeWinIo();
  • [DllImport("WinIo.dll")] static extern void ShutdownWinIo();
  • [DllImport("WinIo.dll")] static extern bool GetPortVal(UInt32 PhysAddr,IntPtr PhysVal,Int32 nSize);
  • [DllImport("WinIo.dll")] static extern void SetPortVal(UInt32 PhysAddr,Int32 PhysVal,Int32 nSize);
Personal tools