08.01.2013 Views

Voice API for HMP Library Reference - Dialogic

Voice API for HMP Library Reference - Dialogic

Voice API for HMP Library Reference - Dialogic

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

ATDX_BDNAMEP( ) — return a pointer to the board device name<br />

ATDX_BDNAMEP( )<br />

return a pointer to the board device name<br />

Name: char * ATDX_BDNAMEP(chdev)<br />

Inputs: int chdev valid channel device handle<br />

Returns: pointer to board device name string if successful<br />

pointer to ASCIIZ string “Unknown device” if error<br />

Includes: srllib.h<br />

dxxxlib.h<br />

Category: Extended Attribute<br />

Mode: synchronous<br />

� Description<br />

The ATDX_BDNAMEP( ) function returns a pointer to the board device name on which the<br />

channel accessed by chdev resides.<br />

As illustrated in the example, this may be used to open the board device that corresponds to a<br />

particular channel device prior to setting board parameters.<br />

Parameter Description<br />

chdev specifies the valid channel device handle obtained when the channel was opened<br />

using dx_open( )<br />

� Cautions<br />

None.<br />

� Errors<br />

This function will fail and return a pointer to “Unknown device” if an invalid channel device handle<br />

is specified in chdev.<br />

� Example<br />

#include <br />

#include <br />

#include <br />

main()<br />

{<br />

int chdev, bddev;<br />

char *bdnamep;<br />

.<br />

.<br />

/* Open the channel device */<br />

if ((chdev = dx_open("dxxxB1C1", NULL)) == -1) {<br />

/* Process error */<br />

}<br />

24 <strong>Voice</strong> <strong>API</strong> <strong>for</strong> <strong>HMP</strong> <strong>Library</strong> <strong>Reference</strong> — September 2004

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!