aboutsummaryrefslogtreecommitdiff
path: root/simplemotion.h
diff options
context:
space:
mode:
authorTero K <tero.k@granitedevices.fi>2016-07-31 14:31:42 +0300
committerTero K <tero.k@granitedevices.fi>2016-07-31 14:31:42 +0300
commiteff5049a771de22826dd610fe923807a696dcf61 (patch)
tree464a83e3a0c68bd8daf3f82ad528a5f27d584718 /simplemotion.h
parent81a6bba3d855f77b7185b99f77250d8572127d75 (diff)
downloadSimpleMotionV2-feature/FastBufferedMotionProtocol.tar.gz
SimpleMotionV2-feature/FastBufferedMotionProtocol.zip
Fast buffered motion protocol under development (work in progress, not working at the moment)feature/FastBufferedMotionProtocol
Diffstat (limited to 'simplemotion.h')
-rw-r--r--simplemotion.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/simplemotion.h b/simplemotion.h
index 056c745..7f5b64a 100644
--- a/simplemotion.h
+++ b/simplemotion.h
@@ -43,6 +43,7 @@ extern "C"{
#define SM_ERR_COMMUNICATION 8
#define SM_ERR_PARAMETER 16
#define SM_ERR_LENGTH 32
+#define SM_ERR_MODE 64
///////////////////////////////////////////////////////////////////////////////////////
//TYPES & VALUES //////////////////////////////////////////////////////////////////////
@@ -131,6 +132,9 @@ LIB SM_STATUS smRead2Parameters( const smbus handle, const smaddr nodeAddress, c
LIB SM_STATUS smRead3Parameters( const smbus handle, const smaddr nodeAddress, const smint16 paramId1, smint32 *paramVal1,const smint16 paramId2, smint32 *paramVal2 ,const smint16 paramId3, smint32 *paramVal3 );
LIB SM_STATUS smSetParameter( const smbus handle, const smaddr nodeAddress, const smint16 paramId, smint32 paramVal );
+//fast method for buffered motion stream, this provides limited return data and feeds all drives simultaneously
+LIB SM_STATUS smTransmitAndReceiveFastBufferedCommand( const smbus handle, const smaddr nodeAddress, smint16 &clockOut, smint16 &bufferfreeOut );
+
LIB SM_STATUS smGetBufferClock( const smbus handle, const smaddr targetaddr, smuint16 *clock );