Previous PageTable Of Contents../index.htmlIndexNext Page

fx_getctinfo( )

Description | Cautions | Example | Errors | See Also

Name:

int fx_getctinfo(chdev, ct_devinfop)

Inputs:

int chdev

  fax channel device handle

 

CT_DEVINFO *ct_devinfop

  pointer to device information structure

Returns:

0 on success
-1 on failure

Includes:

srllib.h
dxxxlib.h
faxlib.h

Category:

SCbus routing

Mode:

synchronous

Top Of PageDescription

The fx_getctinfo( ) function returns information about a fax channel device handle.

Parameter

Description

chdev:

Specifies the valid fax channel device handle obtained when the channel was opened using fx_open( ).

ct_devinfop:

Specifies a 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 dxxxlib.h. For more information on CT_DEVINFO specific to DM3 boards, see section 3.3. CT_DEVINFO: Channel/Timeslot Device Information Data Structure.

Top Of PageCautions

This function will fail if an invalid fax channel 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. One of the following error codes may be returned:

Equate

Returned When

EFX_BADPARM

Invalid value for fax parameter (on DM3 boards only)

EDX_BADPARM

Invalid value for parameter (on SpringWare boards)

EDX_SH_BADEXTTS

SCbus time slot is not supported at current clock rate

EDX_SH_BADINDX

Invalid Switch Handler library index number

EDX_SH_BADTYPE

Invalid channel type (voice, analog, etc.)

EDX_SH_CMDBLOCK

Blocking command is in progress

EDX_SH_LIBBSY

Switch Handler library is busy

EDX_SH_LIBNOTINIT

Switch Handler library is uninitialized

EDX_SH_MISSING

Switch Handler is not present

EDX_SH_NOCLK

Switch Handler clock fallback failed

EDX_SYSTEM

Operating system error

Top Of PageSee Also


Previous PageTable Of ContentsTop Of PageIndexNext Page

Click here to contact Dialogic Customer Engineering

Copyright 2002, Intel Corporation
All rights reserved
This page generated February, 2002