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 SerialHalfDuplex by
SerialHalfDuplex.h@2:242a54f3629b, 2018-04-25 (annotated)
- Committer:
- cpotron
- Date:
- Wed Apr 25 17:13:38 2018 +0000
- Revision:
- 2:242a54f3629b
- Parent:
- 0:7802a25daf3b
Commande des AX12 sur F303K8
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
mbed_unsupported | 0:7802a25daf3b | 1 | #ifndef MBED_SERIALHALFDUPLEX_H |
mbed_unsupported | 0:7802a25daf3b | 2 | #define MBED_SERIALHALFDUPLEX_H |
mbed_unsupported | 0:7802a25daf3b | 3 | |
cpotron | 2:242a54f3629b | 4 | #include "mbed.h" |
mbed_unsupported | 0:7802a25daf3b | 5 | |
cpotron | 2:242a54f3629b | 6 | class SerialHalfDuplex { |
mbed_unsupported | 0:7802a25daf3b | 7 | |
mbed_unsupported | 0:7802a25daf3b | 8 | public: |
mbed_unsupported | 0:7802a25daf3b | 9 | |
cpotron | 2:242a54f3629b | 10 | SerialHalfDuplex(PinName tx, PinName rx); |
cpotron | 2:242a54f3629b | 11 | int putc(int byte); |
mbed_unsupported | 0:7802a25daf3b | 12 | int getc(); |
mbed_unsupported | 0:7802a25daf3b | 13 | |
mbed_unsupported | 0:7802a25daf3b | 14 | |
cpotron | 2:242a54f3629b | 15 | private: |
cpotron | 2:242a54f3629b | 16 | Serial in; |
cpotron | 2:242a54f3629b | 17 | Serial out; |
cpotron | 2:242a54f3629b | 18 | |
cpotron | 2:242a54f3629b | 19 | }; |
mbed_unsupported | 0:7802a25daf3b | 20 | |
cpotron | 2:242a54f3629b | 21 | #endif |