beautypg.com

Software design, Interface mechanism, Functions exported by smtdrv.dll – Sundance SMT6025 v.2.9 User Manual

Page 12: Smtopen, Smtgetboardcount, 9 software design, 10 functions exported by smtdrv.dll

background image

Version 2.9

Page 12 of 45

SMT6025 User Manual

9 Software design

9.1 Interface

mechanism

The design makes use of a C++ style interface pointer to the hardware.
SmtDrv.dll exports functions that gather information about the installed boards
and provide an interface pointer for later use.
To use the SMT6025, you need to:

• Obtain an interface pointer to the hardware by calling SmtOpenBoard().
• Use the interface pointer to call functions related to the hardware.

Example:

IFHw *pBoard = SmtOpenBoard(0); // open the first board found

pBoard->ResetTIMs();

pBoard->BinaryLoad("MyFile.app");

10 Functions exported by SmtDrv.dll

This section describes each of the functions exported by SmtDrv.dll. These
functions are described in the header file SmtDrv.h.

10.1 SmtOpen

Initialise the SMT6025 library. Applications must call this function before using
any other features of the library.

Prototype

SMTRet SmtOpen( void );

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.

10.2 SmtGetBoardCount

Return the number of Sundance carrier boards found in the system.

Prototype

DWORD SmtGetBoardCount(void);

Return value

The number of Sundance carrier boards found in the system.

User Manual (QCF42); Version 2.9, 22/02/02; © Sundance Multiprocessor Technology Ltd. 2002

This manual is related to the following products: