Intel 05-1832-002 IP Phone User Manual


 
Voice API for Windows Operating Systems Library Reference — November 2003 103
return the physical board address — ATDX_PHYADDR( )
ATDX_PHYADDR( )
return the physical board address
!
!!
! Description
The ATDX_PHYADDR( ) function returns the physical board address for the board device bddev.
!
!!
! Cautions
None.
!
!!
! Errors
This function will fail and return AT_FAILURE if an invalid board device handle is specified in
bddev.
!
!!
! Example
#include <stdio.h>
#include <srllib.h>
#include <dxxxlib.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 */
}
Name: long ATDX_PHYADDR(bddev)
Inputs: int bddev
valid board device handle
Returns: physical address of board if successful
AT_FAILURE if error
Includes: srllib.h
dxxxlib.h
Category: Extended Attribute
Mode: synchronous
Platform: Springware
Parameter Description
bddev specifies the valid board device handle obtained when the board was opened
using dx_open( )