
Name: |
int gl_getctinfo (int chan, CT_DEVINFO *ct_devinfop) | |
Inputs: |
int chan |
|
|
CT_DEVINFO *ct_devinfop |
|
Returns: |
0 |
|
|
-1 |
|
Includes: |
gfsc.h |
|
The gl_getctinfo( ) function returns digital timeslot device information.
This function retrieves the device information related to a channel on a CP Fax SC board. On return from the function, the CT_DEVINFO structure contains the relevant information. The CT_DEVINFO structure is declared as follows:
typedef struct {
unsigned longct_prodid;
unsigned charct_devfamily
unsigned charct_devmode;
unsigned charct_nettype;
unsigned charct_busmode;
unsigned charct_busencoding;
unsigned charct_rfu[7];
} CT_DEVINFO;
The valid values for each member of the CT_DEVINFO structure are defined in gfsc.h.
The ct_prodid field contains a valid CP Fax product identification number for the device. The ct_devfamily field specifies the device family and will contain one of the following values:
|
CT_DFCP4 |
/* GammaLink CP -4 family */ |
|
CT_DFCP6 |
/* GammaLink CP -6 family */ |
|
CT_DFCP12 |
/* GammaLink CP -12 family */ |
The ct_devmode field is not valid for the CP Fax Series card.
The ct_nettype field may contain either of the following values:
|
CT_NTT1 |
/* T1 configuration */ |
|
CT_NTE1 |
/* E1 configuration */ |
CT_NTNONE
The ct_busmode field may contain either of the following values:
|
CT_BMPEB |
/* PCM Expansion Bus architecture */ |
|
CT_BMSCBUS |
/* SCbus architecture */ |
The ct_busencoding field may contain either of the following values:
|
CT_BEULAW |
/*Mu-law PCM encoding */ |
|
CT_BEALAW |
/*A-law PCM encoding */ |
#include "gfsc.h"
CT_DEVINFO devinfop;
.
.
.
status = gl_getctinfo(gl_devh, &devinfop)
if(status == 0)
printf("Fax channel %d: product id=%d, bus mode=%d\n", gl_devh, devinfop.ct_prodid, devinfop.ct_busmode);
else
printf("Error %d\n", status);
Click here to contact Dialogic Customer Engineering
Copyright 2000, Dialogic Corporation