Myserial Library extends RawSerial
Diff: MySerial.h
- Revision:
- 10:930d325f3d31
- Parent:
- 9:981384455445
- Child:
- 11:34ae126807a0
--- a/MySerial.h Tue Jun 24 08:58:43 2014 +0000 +++ b/MySerial.h Fri Jun 27 15:33:01 2014 +0000 @@ -13,7 +13,7 @@ #define MBED_MYSERIAL_H #include "mbed.h" - + /** MySerial control class, based on a RawSerial * * Example: @@ -54,7 +54,7 @@ */ void SetRxWait(float _fRxStartWait, float _fRxEachWait); - /** function to get chars after received shars by serial + /** function to get chars after received chars by serial * * @param int size for get chars * @param *cWord returns got chars by pointer @@ -62,10 +62,10 @@ */ virtual int GetString(int size, char *cWord); - /** override function to get chars after received shars by serial + /** overload function to get chars after received chars by serial * * @param int size for get chars - * @param (&cWord)[16] returns got chars by ref + * @param cWord returns got chars by ref * @param returns success by 0 */ template <class X> int GetString(int size, X cWord) @@ -76,6 +76,7 @@ protected: float fRxStartWait; float fRxEachWait; -}; + +}; /* class MySerial */ #endif \ No newline at end of file