
Description | Cautions | Example | Errors
Name: |
long ATDX_PHYADDR(bddev) | |
Inputs: |
int bddev |
|
Returns: |
physical address of board if successful | |
Includes: |
srllib.h | |
Category: |
Extended Attribute | |
The ATDX_PHYADDR( ) function returns the physical board address for the board device bddev.
The function parameter is defined as follows:
Parameter |
Description |
bddev |
specifies the valid board device handle obtained when the board was opened using dx_open( ). |
None.
#include <stdio.h>
#include <srllib.h>
#include <dxxxlib.h>
#include <windows.h>
main()
{
int bddev;
long phyaddr;
/* Open the board device */
if ((bddev = dx_open("dxxxB1",NULL)) == -1) {
/* Process error */
}
if((phyaddr = ATDX_PHYADDR(bddev)) == AT_FAILURE) {
/* Process error */
}
printf("Board is at address %X\n",phyaddr);
.
.
}
This function will fail and return AT_FAILURE if an invalid board device handle is specified in bddev.
Click here to contact Dialogic Customer Engineering
Copyright 2002, Dialogic Corporation