LibTiePie
0.9.16
Library for interfacing TiePie engineering instruments
|
Functions to initialize and exit the library and retrieve information from the library itself.
After loading the library, it must be initialized first, before functions in the library can be used. Before closing the library, when the application using the library no longer requires it, LibExit() must be called, to clear and free resources used by the library.
The library has a version number and a configuration number that can be queried. These can be used when requesting support from TiePie engineering.
On each library function call a status flag is set, indicating how the function was executed. When a function call behaves different than expected, check the status for possible causes.
Functions | |
void | LibInit (void) |
Create and initialize internal resources used by the library. More... | |
bool8_t | LibIsInitialized (void) |
Check whether the library's internal resources are initialized. More... | |
void | LibExit (void) |
Clear and free internal resources used by the library. More... | |
TpVersion_t | LibGetVersion (void) |
Get the library version number. More... | |
const char * | LibGetVersionExtra (void) |
Get the library version postfix. More... | |
uint32_t | LibGetConfig (uint8_t *pBuffer, uint32_t dwBufferLength) |
Get the library configuration number. More... | |
LibTiePieStatus_t | LibGetLastStatus (void) |
Get the last status value. More... | |
const char * | LibGetLastStatusStr (void) |
Get the last status value as text. More... | |
void LibInit | ( | void | ) |
Create and initialize internal resources used by the library.
This function must be called after loading the library, before non library related functions in the library can be used. Calling non library related functions before the library is initialized will set the status flag to LIBTIEPIESTATUS_LIBRARY_NOT_INITIALIZED.
bool8_t LibIsInitialized | ( | void | ) |
Check whether the library's internal resources are initialized.
void LibExit | ( | void | ) |
Clear and free internal resources used by the library.
This function must be called before closing the library, when the application using the library no longer requires it.
TpVersion_t LibGetVersion | ( | void | ) |
Get the library version number.
const char* LibGetVersionExtra | ( | void | ) |
Get the library version postfix.
uint32_t LibGetConfig | ( | uint8_t * | pBuffer, |
uint32_t | dwBufferLength | ||
) |
Get the library configuration number.
[out] | pBuffer | A pointer to the buffer to write to. |
[in] | dwBufferLength | The length of the buffer, in bytes. |
LibTiePieStatus_t LibGetLastStatus | ( | void | ) |
Get the last status value.
After each call to a library function, a status flag is set, indicating how the function was executed.
const char* LibGetLastStatusStr | ( | void | ) |
Get the last status value as text.
After each call to a library function, a status flag is set, indicating how the function was executed.