Previous PageTable Of Contents../index.htmlIndexNext Page

dt_getctinfo( )

Description | Cautions | Example | Errors | See Also

Name:

int dt_getctinfo(devh,ct_devinfop)

Inputs:

int devh

  Digital Network Interface device time slot handle

 

CT_DEVINFO *ct_devinfop

  pointer to device information structure

Returns:

0 on success
-1 on failure

Includes:

srllib.h
dtilib.h

Category:

SCbus Routing

Mode:

synchronous

Top Of PageDescription

The dt_getctinfo( ) function returns information about the digital network interface device associated with the specified digital channel (time slot) (dtiBxTx) on a DTI or voice and network board.

Parameter

Description

devh:

Specifies the valid Digital Network Interface time slot device handle returned by a call to dt_open( ).

ct_devinfop:

Specifies the pointer to the data structure CT_DEVINFO.

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

Valid values for each member of the CT_DEVINFO structure are defined in dtilib.h. Possible return values are:

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

ct_devfamily: specifies the device family and contains

ct_devmode: not valid for T-1 or E-1 devices

ct_nettype: specifies the type of network interface for the device. The two valid values are:

ct_busmode: specifies the bus architecture used to communicate with other devices in the system. The two valid values are:

Top Of PageCautions

This function will fail if an invalid time slot 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 use ATDV_ERRMSGP( ) to obtain a descriptive error message. The error codes returned by ATDV_LASTERR( ) are:

Top Of PageSee Also

In the SCbus Routing Function Reference:


Previous PageTable Of ContentsTop Of PageIndexNext Page

Click here to contact Dialogic Customer Engineering

Copyright 2001, Dialogic Corporation
All rights reserved
This page generated November, 2001