Previous PageTable Of Contents../index.htmlIndexNext Page

scx_tstdat( )

Description | Cautions | Example | Errors | See Also

Name:

int scx_tstdat(devh, tmo)

Inputs:

int devh

  SCX160 SCxbus Adapter device handle

 

short tmo

  time-out value

Returns:

0 on success
-1 on failure

Includes:

scxlib.h

Category:

Diagnostic

Mode:

synchronous

Top Of PageDescription

The scx_tstdat( ) function runs a data test to verify the integrity of the host computer-to-SCX160 SCxbus Adapter Shared RAM interface for the requested SCX160 SCxbus Adapter board. Usually performed during Dialogic Service startup, the data test sends a series of bytes to the SCX160 SCxbus Adapter. The same data is returned to the host computer and checked to verify the integrity of the interface. A return code of 0 indicates successful completion of the test.

Parameter

Description

devh:

Specifies the SCX160 SCxbus Adapter device handle.

tmo:

Specifies the maximum amount of time in seconds that the function will block while waiting for a response from the SCX160 SCxbus Adapter. If a response is not received within tmo seconds, an error is returned. A suggested setting is 5 seconds.

Top Of PageCautions

This function fails if any of the following occur:

Top Of PageExample

Top Of PageErrors

If the function returns -1, use the SRL Standard Attribute function ATDV_LASTERR( ) to obtain the error code, or you can use the ATDV_ERRMSGP( ) function to obtain a descriptive error message. The error codes returned by ATDV_LASTERR( ) function are listed in Chapter 7.  Errors.

Top Of PageSee Also

scx_tstcom( )


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