From 6ce53fb1222a91d3e709e4a604a44a8ca33bc00c Mon Sep 17 00:00:00 2001 From: Tero Kontkanen Date: Thu, 29 Dec 2016 18:36:22 +0200 Subject: Replaced RS232 library by customized code, not tested yet (win or linux) --- simplemotion_private.h | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'simplemotion_private.h') diff --git a/simplemotion_private.h b/simplemotion_private.h index e46dc1c..85e54f9 100644 --- a/simplemotion_private.h +++ b/simplemotion_private.h @@ -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 ); -- cgit v1.2.3