FastArduino v1.10
C++ library to build fast but small Arduino/AVR projects
|
Holder of latest UART errors. More...
#include <fastarduino/uart_commons.h>
Public Member Functions | |
void | clear_errors () |
Reset UART errors to no error. More... | |
uint8_t | has_errors () const |
Indicate if there are UART errors pending. More... | |
bool | frame_error () const |
Indicate if a frame error has occurred. More... | |
bool | data_overrun () const |
Indicate if a data overrun has occurred. More... | |
bool | queue_overflow () const |
Indicate if a queue overflow has occurred. More... | |
bool | parity_error () const |
Indicate if a parity error has occurred. More... | |
Holder of latest UART errors.
Used as public interface to check what errors occurred lately on UATX/UARX/UART devices.
Definition at line 95 of file uart_commons.h.
|
inline |
Reset UART errors to no error.
Definition at line 107 of file uart_commons.h.
|
inline |
Indicate if there are UART errors pending.
true | if some errors are pending; other methods will indicate the exact error(s). |
false | if no error is pending |
Definition at line 118 of file uart_commons.h.
|
inline |
Indicate if a frame error has occurred.
true | if a frame error has occurred |
false | if no frame error has occurred |
Definition at line 128 of file uart_commons.h.
|
inline |
Indicate if a data overrun has occurred.
true | if a data overrun has occurred |
false | if no data overrun has occurred |
Definition at line 138 of file uart_commons.h.
|
inline |
Indicate if a queue overflow has occurred.
true | if a queue overflow has occurred |
false | if no queue overflow has occurred |
Definition at line 148 of file uart_commons.h.
|
inline |
Indicate if a parity error has occurred.
true | if a parity error has occurred |
false | if no parity error has occurred |
Definition at line 158 of file uart_commons.h.