Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Fork of BufferedSerial by
Revision 11:8037db39ea31, committed 2015-11-04
- Comitter:
- KillingJacky
- Date:
- Wed Nov 04 10:00:40 2015 +0000
- Parent:
- 10:9ee15ae3d1a3
- Commit message:
- init commit
Changed in this revision
BufferedSerial.h | Show annotated file Show diff for this revision Revisions of this file |
--- a/BufferedSerial.h Wed Jan 07 18:37:11 2015 +0000 +++ b/BufferedSerial.h Wed Nov 04 10:00:40 2015 +0000 @@ -75,7 +75,7 @@ { private: Buffer <char> _rxbuf; - Buffer <char> _txbuf; + uint32_t _buf_size; uint32_t _tx_multiple; @@ -84,6 +84,8 @@ void prime(void); public: + Buffer <char> _txbuf; + /** Create a BufferedSerial port, connected to the specified transmit and receive pins * @param tx Transmit pin * @param rx Receive pin @@ -107,6 +109,7 @@ * @return 1 always has room and can overwrite previous content if too small / slow */ virtual int writeable(void); + /** Get a single byte from the BufferedSerial Port. * Should check readable() before calling this.