OkoLib
library for accessing Okolab devices
|
Functions | |
oko_res_type | oko_LibInit (const char *db_path) |
Initialize the library. More... | |
oko_res_type | oko_LibShutDown () |
Deallocates any resource that were allocated by oko_LibInitialize. More... | |
oko_res_type | oko_LibGetVersion (char *version) |
Print the version of Okolib library on a string passed by reference. More... | |
oko_res_type | oko_LibGetLastError (char *errmsg, unsigned int maxsize) |
Return a text message that describes the error for the most recent failed call on general library functions. More... | |
oko_res_type | oko_LibSetSuggestedUSBOnly (bool use) |
Turn on/off the filter on the USB serial ports. More... | |
oko_res_type | oko_LibGetSuggestedUSBOnly (bool *use) |
Get the usage status of the USB serial ports filter. More... | |
oko_res_type oko_LibGetLastError | ( | char * | errmsg, |
unsigned int | maxsize | ||
) |
Return a text message that describes the error for the most recent failed call on general library functions.
[out] | errmsg | A pointer to a valid string, pre-allocated by the caller, where the error message will be stored in. |
[in] | maxsize | Maximum size of the error message. If bigger, the message will be truncated. |
oko_res_type oko_LibGetSuggestedUSBOnly | ( | bool * | use | ) |
Get the usage status of the USB serial ports filter.
[out] | use | filter in use (true/false) |
oko_res_type oko_LibGetVersion | ( | char * | version | ) |
Print the version of Okolib library on a string passed by reference.
[out] | version | A pointer to a valid string, pre-allocated by the caller, where the version will be stored in. |
oko_res_type oko_LibInit | ( | const char * | db_path | ) |
Initialize the library.
[in] | db_path | The path where okolib.db file is installed. The specified path can be absolute or relative to the current working directory. If it is null or an empty string, the db file is looked for in the same path of okolib.dll |
oko_res_type oko_LibSetSuggestedUSBOnly | ( | bool | use | ) |
Turn on/off the filter on the USB serial ports.
[in] | use | true to turn on the filter, false to torn off it |
oko_res_type oko_LibShutDown | ( | ) |
Deallocates any resource that were allocated by oko_LibInitialize.