Myserial Library extends RawSerial
Diff: MySerial.h
- Revision:
- 11:34ae126807a0
- Parent:
- 10:930d325f3d31
- Child:
- 12:02b3877b48c6
--- a/MySerial.h Fri Jun 27 15:33:01 2014 +0000 +++ b/MySerial.h Thu Jul 03 02:37:41 2014 +0000 @@ -21,7 +21,8 @@ * #include "mbed.h" * #include "MySerial.h" * - * MySerial pc(USBTX,USBRX); //instance of MySerial Class + * char *name = "test"; + * MySerial pc(USBTX,USBRX,name); //instance of MySerial Class * char cWord[16]; //receive chars or cWord[256], cWord[1024] etc.. * * void readbuf() @@ -37,7 +38,7 @@ * } * @endcode */ -class MySerial : public RawSerial{ +class MySerial : public Serial{ public: /** constructor to get chars received by serial @@ -45,7 +46,7 @@ * @param PinName tx * @param PinName rx */ - MySerial(PinName tx, PinName rx); + MySerial(PinName tx, PinName rx, char *name); /** set wait getting chars after interrupted *