Smtgetboardindex, Smtgetboardinfo – Sundance SMT6035 v.2.2 User Manual
Page 13

Version 2.2
Page 13 of 39
SMT6035 User Manual
10.5 SmtGetBoardIndex
Finds the zero based index for the board at the specified base address.
Prototype
INT SmtGetBoardIndex( UINT nBaseAddress );
Parameters
nBaseAddress The board base address. The base address is the PCI
address that the host operating system has assigned to
the carrier board.
Return value
The zero based index of the board at base address is nBaseAddress.
The function returns -1 when no board is found.
10.6 SmtGetBoardInfo
Returns information about a carrier board. For a description of the information
returned see the remarks.
Prototype
SMTRet SmtGetBoardInfo( UINT nIndex, SMTBI& info );
Parameters
nIndex
The zero based index of the board.
info
The structure that is to be filled with the board
information.
Return value
The function returns SMT_OK on successful completion; other return values
indicate failure. SmtGetError() can be used to translate error values into
descriptive strings.
Remarks
The information is stored in the SMTBI structure described below:
struct SMTBI {
SMTBoardType Type;
char cszType[32];
UINT nBase;
UINT nRange;
SMTHWStatus HwStatus;
SMTLock LockStatus;
User Manual - Version 2.2, 04/01/07; © Sundance Italia S.R.L.