Previous PageTable Of Contents../index.htmlIndexNext Page

scx_getctinfo( )

Description | Cautions | Example | Errors

Name:

int scx_getctinfo(devh, ct_devinfop)

Inputs:

int devh

  SCX160 SCxbus Adapter device handle

 

CT_DEVINFO

  pointer to device information structure

 

*ct_devinfop

 

Returns:

0 on success
-1 on failure

Includes:

dxxxlib.h
scxlib.h

Category:

Attribute

Mode:

synchronous

Top Of PageDescription

The scx_getctinfo( ) function gets Adapter device information.

Parameter

Description

devh:

Specifies the SCX160 SCxbus Adapter device handle.

ct_devinfop:

Specifies a pointer to the CT_DEVINFO structure that will contain the SCX160 SCxbus Adapter device information.

On return from the function, the CT_DEVINFO structure contains the relevant information and is declared as follows:

Valid values for each of the members of the CT_DEVINFO structure are defined in the dxxxlib.h and scxlib.h header files.

The ct_prodid field contains a valid Dialogic product identification number for the device:

The ct_devfamily specifies the device family and contains the following:

The ct_devmode field does not apply. The ct_nettype field specifies the network interface used by the SCX160 SCxbus Adapter. The only valid value is:

The ct_busmode specifies the bus architecture used to communicate with other devices in the system:

The ct_busencoding field is not valid for SCX160 SCxbus Adapters.

Top Of PageCautions

This function will fail if an invalid device handle is specified.

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.


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