aboutsummaryrefslogtreecommitdiff
path: root/simplemotion_private.h
diff options
context:
space:
mode:
authorTero Kontkanen <tero.k@granitedevices.com>2017-08-23 14:44:10 +0300
committerTero Kontkanen <tero.k@granitedevices.com>2017-08-23 14:44:10 +0300
commit98a89371108bbcdedb201caf7be8b82a323e60cc (patch)
tree915a5596c632256ab77d5dc42236644307ea3b66 /simplemotion_private.h
parent5d21340928cd46b3cb97cae0b9c707a71ef9ced0 (diff)
parent4176d9358a526ff207bb5f4d127f4143a632d748 (diff)
downloadSimpleMotionV2-98a89371108bbcdedb201caf7be8b82a323e60cc.tar.gz
SimpleMotionV2-98a89371108bbcdedb201caf7be8b82a323e60cc.zip
Merge branch 'feature/port_driver_ftdi_d2xx' into develop
Diffstat (limited to 'simplemotion_private.h')
-rw-r--r--simplemotion_private.h16
1 files changed, 8 insertions, 8 deletions
diff --git a/simplemotion_private.h b/simplemotion_private.h
index 67128b7..676fe9f 100644
--- a/simplemotion_private.h
+++ b/simplemotion_private.h
@@ -9,7 +9,7 @@
#include "busdevice.h"
#include <stdio.h>
-#define SM_VERSION 0x020100
+#define SM_VERSION 0x020500
//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
@@ -58,7 +58,7 @@ typedef struct {
* ID=3 reserved
*/
long param :30; //LSB 30 bits
- long ID:2; //MSB 2 bits. when serailzied to bytestream byte4 must be transmitted first to contain ID
+ unsigned long ID:2; //MSB 2 bits. when serailzied to bytestream byte4 must be transmitted first to contain ID
} PACKED SMPayloadCommand32;
typedef struct {
@@ -68,7 +68,7 @@ typedef struct {
* ID=3 reserved
*/
long param :14; //LSB 30 bits
- long ID:2; //MSB 2 bits. when serailzied to bytestream byte4 must be transmitted first to contain ID
+ unsigned long ID:2; //MSB 2 bits. when serailzied to bytestream byte4 must be transmitted first to contain ID
} PACKED SMPayloadCommand16;
typedef struct {
@@ -78,7 +78,7 @@ typedef struct {
* ID=3 reserved
*/
long param :22; //MSB 30 bits
- long ID:2; //MSB 2 bits. when serailzied to bytestream byte4 must be transmitted first to contain ID
+ unsigned long ID:2; //MSB 2 bits. when serailzied to bytestream byte4 must be transmitted first to contain ID
} PACKED SMPayloadCommand24;
//SM payload command return data structure
@@ -89,7 +89,7 @@ typedef struct {
* ID=3 reserved
*/
long retData: 30; //LSB 30 bits
- long ID:2; //MSB 2 bits. when serailzied to bytestream byte4 must be transmitted first to contain ID
+ unsigned long ID:2; //MSB 2 bits. when serailzied to bytestream byte4 must be transmitted first to contain ID
} PACKED SMPayloadCommandRet32;
//SM payload command return data structure
@@ -100,7 +100,7 @@ typedef struct {
* ID=3 reserved
*/
long retData: 22; //LSB 30 bits
- long ID:2; //MSB 2 bits. when serailzied to bytestream byte4 must be transmitted first to contain ID
+ unsigned long ID:2; //MSB 2 bits. when serailzied to bytestream byte4 must be transmitted first to contain ID
} PACKED SMPayloadCommandRet24;
//SM payload command return data structure
@@ -111,7 +111,7 @@ typedef struct {
* ID=3 reserved
*/
long retData: 14; //LSB 30 bits
- long ID:2; //MSB 2 bits. when serailzied to bytestream byte4 must be transmitted first to contain ID
+ unsigned long ID:2; //MSB 2 bits. when serailzied to bytestream byte4 must be transmitted first to contain ID
} PACKED SMPayloadCommandRet16;
//SM payload command return data structure
@@ -122,7 +122,7 @@ typedef struct {
* ID=3 reserved
*/
long retData: 6; //LSB 30 bits
- long ID:2; //MSB 2 bits. when serailzied to bytestream byte4 must be transmitted first to contain ID
+ unsigned long ID:2; //MSB 2 bits. when serailzied to bytestream byte4 must be transmitted first to contain ID
} PACKED SMPayloadCommandRet8;
/*Workaround to have packed structs that compile on GCC and MSVC*/