244 Voice API for Windows Operating Systems Library Reference — November 2003
dx_getparm( ) — get the current parameter settings
!
!!
!Example
#include <stdio.h>
#include <srllib.h>
#include <dxxxlib.h>
#include <windows.h>
main()
{
int bddev;
unsigned short parmval;
/* open the board using dx_open( ). Obtain board device descriptor in
* bddev
*/
if ((bddev = dx_open("dxxxB1",NULL)) == -1) {
/* process error */
}
parmval = 0; /* CLEAR parmval */
/* get the number of channels on the board. DXBD_CHNUM is of type
* unsigned short as specified by the PM_SHORT define in the definition
* for DXBD_CHNUM in dxxxlib.h. The size of the variable parmval is
* sufficient to hold the value of DXBD_CHNUM.
*/
if (
dx_getparm(bddev, DXBD_CHNUM, (void *)&parmval)
== -1) {
/* process error */
}
printf("\nNumber of channels on board = %d",parmval);
.
.
}
!
!!
!See Also
dx_setparm( )