Software design, Interface mechanism, Functions exported by libsmtdrv.so – Sundance SMT6035 v.2.2 User Manual
Page 11: Smtopen, 9 software design, 10 functions exported by libsmtdrv.so

Version 2.2
Page 11 of 39
SMT6035 User Manual
9 Software design
9.1 Interface
mechanism
The software implementation has a C++ style interface, which provides pointers
to the hardware.
libsmtdrv.so exports functions that gather information about the installed boards
and provide interface pointers for later use.
To use the SMT6035, you have 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 libsmtdrv.so
This section describes each of the functions exported by Libsmtdrv.so. These
functions are described in the header file SmtDrv.h.
10.1 SmtOpen
Initialize the SMT6035 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.
User Manual - Version 2.2, 04/01/07; © Sundance Italia S.R.L.