
Name: |
int gl_getxmitslot (int chan, SC_TSINFO *tsinfop) | |
Inputs: |
int chan |
|
|
SC_TSINFO* tsinfop |
|
Returns: |
0 |
|
|
-1 |
|
Includes: |
gfsc.h |
|
The gl_getxmitslot( ) function returns SCbus timeslot connected to digital timeslot transmit.
This function connects the external SCbus timeslot to the transmit of a channel on a CP Fax SC board. On return from the function, the SC_TSINFO structure contains the number of SCbus timeslots that are connected to the transmit of the local fax timeslot and a pointer to the array that contains the SCbus timeslots (between 1 and 1024). The SC_TSINFO structure is declared as follows:
typedef struct {
unsigned longnumts;
long*tsarray;
} SC_TSINFO;
This function fails if an invalid channel is specified. This function fails if called on a device in PEB mode.
#include "gfsc.h" SC_TSINFO sc_tsinfo; /* SCbus timeslot info
structure */ long scts; /* SCbus timeslot */ int devh1, status; devh1 = 1; sc_tsinfo.sc_numts = 1; /* always one timeslot */ sc_tsinfo.sc_tsarrayp = &scts; status = gl_getxmitslot( devh1, &sc_tsinfo ); if (status) { fprintf(stderr, "gl_getxmitslot( ) error %d\n", status); return (status); } else fprintf(stdout,"chan %d is transmitting on timeslot %d\n", devh1,scts);
Click here to contact Dialogic Customer Engineering
Copyright 2000, Dialogic Corporation