Framework for reading and writing variables in real time on any MBED platform.

DistantIO

This is the C implementation of the DistantIO slave framework.

Library is working but slight API breaks may occur in the future. C++ version is also in development.

To get the master-side implementation, see https://github.com/Overdrivr/DistantIO

Revision:
3:135f55b5334e
Parent:
2:f2c816b681e3
Child:
4:d675ad9c57ff
--- a/distantio.h	Thu Oct 08 13:14:32 2015 +0000
+++ b/distantio.h	Mon Oct 12 13:29:40 2015 +0000
@@ -10,10 +10,12 @@
 
 #include <stdint.h>
 
-#define PAYLOAD_SIZE 14
-#define DATA_SIZE 8
+#define FRAMESIZE 20
+#define DATASIZE 8
+#define DATASTART 10
 #define VARIABLES_AMOUNT 256
 #define GROUPS_AMOUNT 128
+#define NAMESIZE 14
 
 typedef enum dio_type dio_type;
 enum dio_type
@@ -35,7 +37,7 @@
 	uint8_t writeable;
 	uint16_t id;
 	dio_type type;
-	char name[8];
+	char name[NAMESIZE];
 	uint8_t send;
 	uint8_t groupID;
 	float refresh_rate;
@@ -45,7 +47,7 @@
 typedef struct group group;
 struct group
 {
-	char name[8];
+	char name[NAMESIZE];
 	uint8_t groupID;
 };