MDX-15,20の制御用library

Revision:
2:8446eb1774c4
Parent:
1:1751fee99a0d
Child:
3:3bf2936b8d9b
--- a/MDX20.h	Sat Oct 15 23:32:34 2016 +0000
+++ b/MDX20.h	Sun Oct 16 12:42:34 2016 +0000
@@ -1,24 +1,37 @@
 #ifndef MBED_MDX20_H
 #define MBED_MDX20_H
- 
+
 #include "mbed.h"
 #include "BufferedSerial.h"
 class MDX20
 {
 public:
     MDX20(PinName tx, PinName rx, PinName cts);
-    
+
     ~MDX20();
 
-    uint8_t sendData(char* data);
+    void clearPositon(void);
+    void answerPositon(int16_t *position);
+    void integralPosition(char *data);
     
+    uint8_t sendData(char* data);
+
     int putc(int c);
+    uint8_t initial(void);
+    uint8_t final(void);
+    uint8_t zeroSetting(void);
+    uint8_t XYZMove(int16_t x, int16_t y, int16_t z);
 
 private:
     BufferedSerial _serial; // tx, rx(NC)
     DigitalIn _cts;
 
     char B_masterTx[0xff];
+    int16_t D_position[3]; //[0]:x, [1]:y, [2]:z
+
+#define Z_x (0)
+#define Z_y (1)
+#define Z_z (2)
 };
 
 #endif  //  MBED_MDX20_H
\ No newline at end of file