MDX-15,20の制御用library
Diff: MDX20.h
- Revision:
- 1:1751fee99a0d
- Parent:
- 0:46f110f747c6
- Child:
- 2:8446eb1774c4
diff -r 46f110f747c6 -r 1751fee99a0d MDX20.h --- a/MDX20.h Sat Oct 15 22:23:18 2016 +0000 +++ b/MDX20.h Sat Oct 15 23:32:34 2016 +0000 @@ -0,0 +1,24 @@ +#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); + + int putc(int c); + +private: + BufferedSerial _serial; // tx, rx(NC) + DigitalIn _cts; + + char B_masterTx[0xff]; +}; + +#endif // MBED_MDX20_H \ No newline at end of file