Previous PageTable Of Contents../index.htmlIndexNext Page

scx_gtbdattr( )

Description | Cautions | Example | Errors

Name:

int scx_gtbdattr(devh, pbrdst)

Inputs:

int devh

  SCX160 SCxbus Adapter device handle

 

tSCX_BRDST *pbrdst

  Pointer to a board attribute structure

Returns:

0 on success
-1 on failure

Includes:

scxlib.h

Category:

Attribute

Mode:

synchronous

Top Of PageDescription

The scx_gtbdattr( ) function gets board attributes of hardware and firmware information for a specific SCX160 SCxbus Adapter. The returned information is contained in the tSCX_BRDST data structure:

Valid values for each member of this structure are defined in the scxlib.h header. The board status field contains a bitmap of the current status of the SCX160 SCxbus Adapter.

Parameter

Description

devh:

Specifies the SCX160 SCxbus Adapter device handle

pbrdst:

Points to where the board attributes information is stored in the tSCX_BRDST data structure

The possible values of the fields in the tSCX_BRDST data structure can be any combination of the following:

Parameter

Description

Bit(s)

Possible Values

SCXBS_SELF_TEST

SCX160 Board Self Test Results

1

  0 - passed self test

  1 - failed self test

SCXBS_DOWNLOAD

SCX160 Board Download State

2

  0 - not downloaded

  1 - downloaded

SCXBS_RUN_STATE

SCX160 Firmware Run State

3

  0 - not started

  1 - started

SCXBS_SCX_CLOCK_STATE

SCxbus Clock State

4 - 6

  SCX_MASTER - operating as SCxbus Clock Master

  SCX_WAIT_SLAVE - operating as SCxbus Clock Master; waiting to become SCxbus Clock Slave

  SCX_SLAVE - operating as SCxbus Clock Slave

  SCX_WAIT_FB_MASTER - operating as SCxbus Clock Slave; waiting to become SCxbus Clock Master

  SCX_FB_MASTER - operating as SCxbus Clock Fallback Master

  SCX_WAIT_MASTER - operating as SCxbus Clock Fallback Master; waiting to become SCxbus Clock Master

  SCX_FB_WAIT_SLAVE - operating as SCxbus Clock Fallback Master; waiting to become SCxbus Clock Slave

SCXBS_SC_CLOCK_STATE

SCbus Clock State

7 - 8

  SC_MASTER - operating as SCbus Clock Master

  SC_WAIT_MASTER - waiting to become SCbus Clock Master

  SC_SLAVE - operating as SCbus Clock Slave

  SC_FB_MASTER - operating as SCbus Clock Fallback Master

Top Of PageCautions

This function will fail if an invalid device handle is specified.

Top Of PageExample

Top Of PageErrors

If the function returns -1, use the SRL Standard Attribute function ATDV_LASTERR( ) to obtain the error code, or you can use the ATDV_ERRMSGP( ) function to obtain a descriptive error message. The error codes returned by ATDV_LASTERR( ) function are listed in Chapter 7.  Errors.


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