⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 manual_example_programs.html

📁 Diamond公司Dscud通用驱动使用说明手册
💻 HTML
字号:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"        "http://www.w3.org/TR/html4/loose.dtd"><html lang="en"><head><title>Example Programs - Universal Driver Documentation</title><meta http-equiv="Content-type" content="text/html; charset=iso-8859-1"><meta name="robots" content="index,follow"><link rel="shortcut icon" href="/favicon.ico"><link rel="stylesheet" href="/dscud/style/wikiprintable.css"><script type="text/javascript" src="/dscud/style/wikibits.js"></script><style type='text/css'><!--a.new, #quickbar a.new { color: #CC2200; }#quickbar { position: absolute; top: 4px; left: 4px; border-right: 1px solid gray; }#article { margin-left: 152px; margin-right: 4px; }//--></style></head><body bgcolor='#FFFFFF'><div class='titlebox'><h1 class='pagetitle'>Example Programs</h1><span class='subtitle'>Universal Driver Documentation</span></div><div class='navbox'><a href="manual_Main_Page.html" class='printable' title ="Main Page">Main Page</a> || <a href="manual_Table_of_Contents.html" class='printable' title ="Table of Contents">Table_of_Contents</a> || <a href="http://www.diamondsystems.com/">Diamond Systems Website</a></div></div><div class='bodytext'><a name="top"></a><p><table border="0" id="toc"><tr><td align="center"><b>Table of contents</b> <script type='text/javascript'>showTocToggle("show","hide")</script></td></tr><tr id='tocinside'><td align="left"><div style="margin-bottom:0px;"><A CLASS="internal" HREF="#Types_of_Example_Programs">1 Types of Example Programs</A><BR></div><div style="margin-bottom:0px;"><A CLASS="internal" HREF="#Demo_Programs">2 Demo Programs</A><BR></div><div style="margin-left:2em;"><A CLASS="internal" HREF="#Compiling_Demos_on_DOS">2.1 Compiling Demos on DOS</A><BR><A CLASS="internal" HREF="#Compiling_Demos_on_Windows_or_WinCE">2.2 Compiling Demos on Windows or WinCE</A><BR><A CLASS="internal" HREF="#Compiling_Demos_on_Linux_or_QNX">2.3 Compiling Demos on Linux or QNX</A><BR></div><div style="margin-bottom:0px;"><A CLASS="internal" HREF="#Utility_Programs">3 Utility Programs</A><BR></div><div style="margin-bottom:0px;"><A CLASS="internal" HREF="#Source_Code_Examples">4 Source Code Examples</A><BR></div></td></tr></table><P><h2><a name="Types_of_Example_Programs">Types of Example Programs</a></h2>
<p>
Diamond Systems has prepared a number of example programs to demonstrate the use of our products and software.  These examples are all available from our website as well as the product CD-ROM which is delivered with most product shipments.
<p>
<h2><a name="Demo_Programs">Demo Programs</a></h2>
<p>
Each board has its own set of example programs packaged as a zip file in the Demos folder of the product CD-ROM.  These are also available on our website in the software section.  These demos come with source code and build files for each supported operating system.  Executable versionf of the demos are included for DOS as well.  The demo programs are organized by the Universal Driver function they demostrate.  You can run the program to see how the feature works, and then copy and paste the code into your own projects as as start to your own programming.
<p>
<h3><a name="Compiling_Demos_on_DOS">Compiling Demos on DOS</a></h3>
<p>
A project file for each demo is included for Borland C++ 5.0.  You can launch this program file to compile the demo using Borland.  The demos are already compiled for DOS so you don't need to do this unless you'd like to make changes to the demo program.  You must install the Universal Driver on your system before compiling the demo programs.
<p>
<h3><a name="Compiling_Demos_on_Windows_or_WinCE">Compiling Demos on Windows or WinCE</a></h3>
<p>
Project files for Microsoft Visual C++ 6.0 and Visual Embedded C++ 4.0 are included for each demo program.  You can just click the project to launch Visual C++ and then build the demo to see it run.  You must install the Universal Driver before compiling.  The driver DLL and library file must be in your include path.<p><h3><a name="Compiling_Demos_on_Linux_or_QNX">Compiling Demos on Linux or QNX</a></h3>
<p>
A Makefile is included at the root of each demo package which can be used to compile all the demos for either Linux or QNX.  Just type "<tt>make</tt>" at the base directory of the demos where you see the <tt>Makefile</tt> and it will compile all the demos for that board.  You must have installed the Universal Driver before compiling.  The driver must be installed at <tt>/usr/local/dscud5</tt> on Linux, or <tt>/opt/dscud5</tt> on QNX for the Makefile to find the files it requires.
<p>
<h2><a name="Utility_Programs">Utility Programs</a></h2>
<p>
Utility programs with source code are available for checking or diagnosing various features on some boards.
<p>
<h2><a name="Source_Code_Examples">Source Code Examples</a></h2>
<p>
We also have written example source code which demonstrates how to program Diamond Systems without using the Universal Driver.  This is for customers who are using an operating system which is not supported, or for whatever reason are writing their own low level driver software instead of using the Universal Driver.  These example programs use simple inp() and outp() type direct I/O calls to program the boards.  To make use of the source code you'll need to port them to your own platform and find the local eqivalent of those functions before compiling.
<p></div><p><em> <br> This page was last modified 22:02, 20 Sep 2005.<br>Copyright (c) 2004 Diamond Systems.  All Rights Reserved.</em><!-- Time since request: 0.15 secs. --></body></html>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -