Smtgetboardinfo – Sundance SMT6025 v.2.9 User Manual
Page 14
Version 2.9
Page 14 of 45
SMT6025 User Manual
10.6 SmtGetBoardInfo
Return 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 in 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 returned in the SMTBI structure described below:
struct SMTBI {
SMTBoardType Type;
char cszType[32];
UINT nBase;
UINT nRange;
SMTHWStatus HwStatus;
SMTLock LockStatus;
SMTOpen OpenRes;
};
The information returned is summarized in the table below:
Field
Description
Type
Specify the type of carrier board.
cszType
String description of the type of carrier board. For example
“SMT310Q”
nBase
The PCI base address that the host operating system has assigned
to this carrier board.
nRange
The number of bytes from the base address that has been assigned
to this carrier board.
HwStatus
The hardware status of the carrier board. Valid values are SMT_On
and SMT_Off.
LockStatus If the carrier board could be opened successfully, this value will be
SMT_LOCK_OK.
User Manual (QCF42); Version 2.9, 22/02/02; © Sundance Multiprocessor Technology Ltd. 2002