
Description | Example | Errors
Name: |
long ATDV_IRQNUM(dev) | |
Inputs: |
int dev |
|
Returns: |
AT_FAILURE if failure otherwise | |
|
IRQ of device | |
Includes: |
srllib.h | |
Category: |
standard attribute | |
The ATDV_IRQNUM( ) function returns the interrupt number (IRQ) used by the device.
Parameter |
Description |
dev |
Device handle, the handle returned by the technology-specific xx_open( ). |
#include <windows.h>
#include <srllib.h>
#include <dxxxlib.h>
main()
{
int dxxxdev;
/* Open a dxxx channel device */
if(( dxxxdev = dx_open( "dxxxB1C1", 0 )) == -1 ){
printf( "Error: cannot open device\n" );
exit( 1 );
}
printf( "Device irq is %d\n", ATDV_IRQNUM( dxxxdev ));
}
This function returns the value defined by AT_FAILURE if the device has no IRQ number or if an invalid device handle is specified in dev.
Click here to contact Dialogic Customer Engineering
Copyright 2001, Dialogic Corporation