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 handle

 

CT_DEVINFO *ct_devinfop

  pointer to device information structure

Returns:

0 on success

 

 

-1 on error

 

Includes:

srllib.h

 

 

dtilib.h

Mode:

Synchronous

Top Of PageDescription

The dt_getctinfo( ) function gets SCbus digital interface information. This function returns information about the digital network interface device associated with the specified digital channel (time slot) (dtiBxTx) .

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_DFSPAN

specifies a D/240SC-T1 or D/300SC-E1 digital interface device

CT_NTT1

specifies a D/240SC-T1 T-1 digital channel

CT_NTE1

specifies a D/300SC-E1 E-1 digital channel

CT_BMPEB

PEB (PCM Expansion Bus) architecture

CT_BMSCBUS

SCbus architecture

CT_BEULAW

Mu-law encoding

CT_BEALAW

A-law encoding

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:

Equate

Returned When

EDT_BADBRDERR

Board missing or defective

EDT_BADCMDERR

Invalid command parameter to driver

EDT_FWERR

Firmware returned an error

EDT_INVTS

Invalid time slot device handle

EDT_INVMSG

Invalid message

EDT_SH_BADLCLTS

Invalid local time slot number

EDT_SH_BADINDX

Invalid Switch Handler library index number

EDT_SH_BADTYPE

Invalid local time slot type

EDT_SH_LIBBSY

Switch Handler library busy

EDT_SH_LIBNOTINIT

Switch Handler library is uninitialized

EDT_SH_MISSING

Switch Handler is not present

EDT_SH_NOCLK

Switch Handler clock fallback failed

EDT_SYSTEM

Linux system error

EDT_TMOERR

Timed out waiting for reply from firmware

Top Of PageSee also


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