mirror of
https://github.com/Next-Flip/Momentum-Firmware.git
synced 2026-05-19 04:44:47 -07:00
Improve furi_hal_serial API
This commit is contained in:
@@ -130,6 +130,16 @@ void furi_hal_serial_async_rx_start(
|
||||
*/
|
||||
void furi_hal_serial_async_rx_stop(FuriHalSerialHandle* handle);
|
||||
|
||||
/** Check if there is data available for reading
|
||||
*
|
||||
* @warning This function must be called only from the callback
|
||||
* FuriHalSerialAsyncRxCallback
|
||||
*
|
||||
* @param handle Serial handle
|
||||
* @return true if data is available for reading, false otherwise
|
||||
*/
|
||||
bool furi_hal_serial_async_rx_available(FuriHalSerialHandle* handle);
|
||||
|
||||
/** Get data Serial receive
|
||||
*
|
||||
* @warning This function must be called only from the callback
|
||||
|
||||
Reference in New Issue
Block a user