Comunication_1

Dependents:   MX106-finaltest dynamixel Arm_dynamixel_can Arm_dynamixel_can_procedurale

Revision:
2:b4d1f5424448
Child:
3:33d025a403d5
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/communication_1.h	Sun Jun 26 21:14:44 2016 +0000
@@ -0,0 +1,21 @@
+#ifndef MBED_communication_1_H
+#define MBED_communication_1_H
+#include "mbed.h"
+#include "SerialHalfDuplex.h"
+
+
+class communication_1{
+
+public:
+   
+    communication_1(PinName tx, PinName rx, int baud_rate);
+    
+    int read(int ID, int start, int length, char* data);
+    int write(int ID, int start, int length, char* data, int flag=0);
+
+private :
+
+    SerialHalfDuplex _SerialHalfDuplex;
+    
+};
+#endif
\ No newline at end of file