Previous Page Table Of Contents../index.html IndexNext Page


9.  Application Guidelines

This chapter offers advice and suggestions to guide programmers in designing and coding a Dialogic SCX160 SCxbus Adapter application for a Windows environment.

Top Of Page9.1.  Writing an Application

This chapter offers advice and suggestions to guide programmers in designing and coding a Dialogic SCX160 SCxbus Adapter application for a Windows environment.

This section provides SCX160 SCxbus Adapter programming guidelines:

NOTE:
These guidelines are not intended as a comprehensive guide to developing or debugging SCX160 SCxbus Adapter applications.

General guidelines for writing Dialogic applications are explained in the following sections:

Most SCX160 SCxbus Adapter library functions return an error code if they fail. Any call to an SCX160 SCxbus Adapter library function should therefore check for a return value indicating an error. This can be done using a format similar to the following:

Applications containing numerical values for defines are subject to obsolescence and require frequent modification. In general, do not use a numerical value in your application when an equivalent symbolic define is available.

Various header files provided with the Package Release must be included in your application. These files provide equates, structures and prototypes needed to compile application programs.

Before an SCX160 SCxbus Adapter application performs any processing, it should initialize the SCX160 SCxbus Adapter hardware to reflect the physical configuration of your system and set the parameters necessary to support the application. Tasks performed as part of initialization generally include:

The tasks above are accomplished using the following library functions:

Use scx_setbrdparm( ) to set hardware configuration, clocking configuration and error threshold levels. See scx_setbrdparm( ) function in Chapter 6.  Function Reference for specific settings.

Use the scx_setevtmsk( ) function for setting and the scx_clrevtmsk( ) function for clearing the mask for alarm events.


Previous PageTable Of ContentsTop Of PageIndexNext Page

Click here to contact Dialogic Customer Engineering

Copyright 2001, Dialogic Corporation
All rights reserved
This page generated February, 2002