MDX-15,20の制御用library

MDX20.h

Committer:
suupen
Date:
2016-10-15
Revision:
1:1751fee99a0d
Parent:
0:46f110f747c6
Child:
2:8446eb1774c4

File content as of revision 1:1751fee99a0d:

#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