aboutsummaryrefslogtreecommitdiff
path: root/sm485.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 /sm485.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 'sm485.h')
-rw-r--r--sm485.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/sm485.h b/sm485.h
index 2d79815..93b7bbe 100644
--- a/sm485.h
+++ b/sm485.h
@@ -46,6 +46,11 @@
#define SMCMD_BUFFERED_RETURN_DATA SMCMD_ID(7,SMCMD_MASK_0_PARAMS)
#define SMCMD_BUFFERED_RETURN_DATA_RET SMCMD_ID(7,SMCMD_MASK_N_PARAMS|SMCMD_MASK_RETURN)
+//fast buffered commands
+#define SMCMD_FAST_BUFFERED_CMD SMCMD_ID(8,SMCMD_MASK_N_PARAMS)
+#define SMCMD_FAST_BUFFERED_CMD_RET SMCMD_ID(8,SMCMD_MASK_N_PARAMS|SMCMD_MASK_RETURN)
+#define SMCMD_FAST_BUFFERED_CMD_RET_SHORT SMCMD_ID(9,SMCMD_MASK_N_PARAMS|SMCMD_MASK_RETURN)
+
//cmd 20,u8 toaddr, u8 crc
//ret 21, u8=2, u8 fromaddr, u16 clock,u16 crc, muut clientit lukee t?n
//oldret 21, u8 fromaddr, u16 clock,u16 crc, muut clientit lukee t?n
@@ -60,6 +65,7 @@
#define SMCMD_FAST_UPDATE_CYCLE_RET SMCMD_ID(2,SMCMD_MASK_0_PARAMS|SMCMD_MASK_RETURN)
+
#ifdef PROCESS_IMAGE_SUPPORT
//PROCESS_IMAGE communication not supported by SM V2.0.0. placeholders here