mbed library sources. Supersedes mbed-src.
Dependents: Nucleo_Hello_Encoder BLE_iBeaconScan AM1805_DEMO DISCO-F429ZI_ExportTemplate1 ... more
Diff: drivers/UARTSerial.h
- Revision:
- 186:707f6e361f3e
- Parent:
- 180:96ed750bd169
- Child:
- 187:0387e8f68319
--- 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