## Using Your DDK

[prev][next][parent][TOC]

### Infrared (IrDA) Device Stack

Driver Description::

The Infrared Stack (IrDA) Sample contains source code for IrDA device drivers and installation protocols. Following services are supported by the Infrared Stack:

Printing to an IR-capable printer;
Serial communication through an IR-capable cell phone;
LAN (Ethernet and Token Ring).

Compilers/Assemblers Required:

         Microsoft MASM 5.1  (supplied with the DDK)
         IBM C Set++
         Watcom C 10.5

Build Instructions:

1. Ensure the necessary compilers and assemblers are installed.

2. Run the COPYWCOM.CMD and COPYCSET.CMD command files located in the DDK\TOOLS directory. COPYWCOM.CMD copies the set of needed files from your copy of the Watcom C compiler to the proper directories under the DDK base directory. COPYCSET.CMD copies the set of needed files from your copy of the IBM C Set++ compiler to the proper directories under the DDK base directory.

e.g., COPYWCOM <CSETpath> <DDKpath>
COPYCSET <WATCOMpath> <DDKpath>

    where 	<CSETpath> represents the IBM C Set++ install directory
    	<WATCOMpath> represents the Watcom C install directory
    	<DDKpath> represents the DDK install directory

3. Run the SETIRDA.CMD command file located in the DDK\TOOLS directory. This command initializes environment variables to be used during the build.

e.g., SETIRDA <DDKpath>

    where <DDKpath> represents the DDK install directory.

4. Change the directory to DDK\BASE\SRC\DEV\IRDA.

5. Invoke NMAKE on the resident makefile.

Files Created by Successful Build:

         Directory:  \DDK\BASE\SRC\DEV\IRDA\IAS_DD
    	 o  ias_dd.os2

         Directory:	\DDK\BASE\SRC\DEV\IRDA\IRCOM
      	 o  ircom.sys

         Directory:	\DDK\BASE\SRC\DEV\IRDA\IRDA_DD
     	 o  irda_dd.os2

         Directory:	\DDK\BASE\SRC\DEV\IRDA\IRDA_PHY
     	 o  irda_phy

         Directory:	\DDK\BASE\SRC\DEV\IRDA\IRDANDIS
     	 o  irdandis.os2
     	 o  irdandis.nif

         Directory:	\DDK\BASE\SRC\DEV\IRDA\PMIRDA
     	 o  pmirda.exe

         Directory:	\DDK\BASE\SRC\DEV\IRDA\PMIRDA\RXIRDA
     	 o  rxirda.dll