Previous PageTable Of Contents../index.htmlIndexNext Page

scx_open( )

Description | Cautions | Example | Errors | See Also

Name:

int scx_open(name, oflags)

Inputs:

char *name

  SCX160 SCxbus Adapter logical board or device name

 

short oflags

  open attribute flags; reserved for future use

Returns:

device handle on success
-1 on failure

Includes:

scxlib.h

Category:

Configuration

Mode:

synchronous

Top Of PageDescription

The scx_open( ) function opens an SCX160 device and returns a unique Dialogic handle to identify the device. All subsequent references to the opened device must use the returned device handle.

Opening an SCX160 SCxbus Adapter does not alter the state of the device. A device may only be opened once and cannot be re-opened by the current process or any other process until the device is closed. A command is only accepted while a device is idle.

NOTE:
If a parent process opens an SCX160 SCxbus Adapter and enables events, there is no guarantee that the child process will receive a particular event. You should only enable events in the process that opened the SCX160 device.

Parameter

Description

name:

Points to an ASCIIZ string that contains the name (scxB1) of the SCX160 SCxbus Adapter.

oflags:

Reserved for future use: set to 0.

Top Of PageCautions

This function will fail if an invalid device handle is specified or if the device is already open.

Never open a Dialogic device using the Windows open( ) function.

Top Of PageExample

Top Of PageErrors

If the function returns -1, the specific error that occurred is returned in the errno global variable.

Top Of PageSee Also


Previous PageTable Of ContentsTop Of PageIndexNext Page

Click here to contact Dialogic Customer Engineering

Copyright 2001, Dialogic Corporation
All rights reserved
This page generated February, 2002