Version








TxVpdResDef takes the following parameters:
TxVpdResTdm sets up the resource as a TDM stream. There are 32 timeslots (channels) per TDM stream.
TxVpdResTdm takes the following parameters:


TxVpdAddrDef takes the following parameters:


printf ("Defining virtual ports\r\n");
/* Loop through each resource defined and define 4 virtual ports */
/* per resource, for a total of 64 virtual ports */
for (i = 1; i <= 16; i++)
{
for (j = 1; j <= 4; j++)
{
// In this case the packets are HDLC packets. For
// voice over IP, the first byte in the packets will be 1 - 4
// specifying which virtual port gets which packets. This allows 4
// conversations (each using a separate virtual port) to take place
// over a single physical resource (an SCC).
txstatus = TxVpdAddrDef( &addr, 0xFF, 0x01, 1, j, 0, 0, 0);
if (txstatus != 0)
{
printf ("Demux addr def failed (%s)", TxVpdErrorStr( txstatus );
rc = 1;
break;
}
/*
// TxVpdVport actual defines a virtual port to the TXn000.
vportnum++; /* Increment vport number to next one */
txstatus = TxVpdVport( VpdHandle, (uchar)i, vportnum, &addr );
if (txstatus != 0)
{
printf ("VPORT definition failed (%s)",TxVpdErrorStr(txstatus );
rc = 1;
break;
}
}
}
MaxVport = vportnum;
if (rc == 0)
printf ("Virtual ports successfully defined!\r\n");
return rc;







Version