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 mbed-dev by
Diff: drivers/UARTSerial.h
- Revision:
- 186:707f6e361f3e
- Parent:
- 180:96ed750bd169
--- a/drivers/UARTSerial.h Thu Apr 19 17:12:19 2018 +0100 +++ b/drivers/UARTSerial.h Fri Jun 22 16:45:37 2018 +0100 @@ -142,6 +142,15 @@ return 0; } + /** Check current blocking or non-blocking mode for file operations. + * + * @return true for blocking mode, false for non-blocking mode. + */ + virtual bool is_blocking() const + { + return _blocking; + } + /** Register a callback on state change of the file. * * The specified callback will be called on state changes such as when