diff options
| author | Tero Kontkanen <tero.kontkanen@granitedevices.fi> | 2017-01-28 19:04:49 +0200 |
|---|---|---|
| committer | Tero Kontkanen <tero.kontkanen@granitedevices.fi> | 2017-01-28 19:04:49 +0200 |
| commit | f065efc4607c8adcc31266748bd1e20ca39090b9 (patch) | |
| tree | d67d10ff71848620021b294e176b72270113fc9f /simplemotion_private.h | |
| parent | f629f3a69e092a9299fd0d70dddd2efa6bbee2e7 (diff) | |
| parent | dcd4a255d2d0650d054aa4fd38d35fdc71126e02 (diff) | |
| download | SimpleMotionV2-f065efc4607c8adcc31266748bd1e20ca39090b9.tar.gz SimpleMotionV2-f065efc4607c8adcc31266748bd1e20ca39090b9.zip | |
Merge branch 'develop'
Diffstat (limited to 'simplemotion_private.h')
| -rw-r--r-- | simplemotion_private.h | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/simplemotion_private.h b/simplemotion_private.h index e46dc1c..e0f70f3 100644 --- a/simplemotion_private.h +++ b/simplemotion_private.h @@ -19,7 +19,7 @@ #include "busdevice.h"
#include <stdio.h>
-#define SM_VERSION 0x020001
+#define SM_VERSION 0x020100
//max number of simultaneously opened buses. change this and recompiple SMlib if
//necessary (to increase channels or reduce to save memory)
#define SM_MAX_BUSES 10
@@ -43,6 +43,10 @@ extern const smuint8 table_crc8[]; extern FILE *smDebugOut; //such as stderr or file handle. if NULL, debug info disbled
extern smuint16 readTimeoutMs;
+//smDebug: prints debug info to smDebugOut stream. If no handle availab, set it to -1.
+//set verbositylevel according to frequency of prints made.
+//I.e Low=low frequency, so it gets displayed when global verbosity level is set to at least Low or set it to Trace which gets filtered
+//out if global verbisity level is set less than Trace
void smDebug( smbus handle, smVerbosityLevel verbositylevel, char *format, ...);
SM_STATUS smRawCmd( const char *axisname, smuint8 cmd, smuint16 val, smuint32 *retdata );
|
