#include <modm/platform/uart/uart_buffer.hpp>
|
using | Index = std::conditional_t< (N >=254), uint16_t, uint8_t > |
|
using | Size = Index |
|
|
const uint8_t & | get () const |
|
Size | getMaxSize () const |
|
Size | getSize () const |
|
bool | isEmpty () const |
|
bool | isFull () const |
|
bool | isNearlyEmpty () const |
|
bool | isNearlyFull () const |
|
bool | isNotEmpty () const |
|
bool | isNotFull () const |
|
void | pop () |
|
bool | push (const uint8_t &value) |
|
|
static constexpr bool | HasRxBuffer = true |
|
template<size_t SIZE>
class modm::platform::UartRxBuffer< SIZE >
Universal asynchronous receiver transmitter (implementation based on modm::atomic::Queue)
- Author
- Kevin Laeufer
-
Niklas Hauser
-
Dima Barsky
Check if the queue is nearly empty.
- Returns
true
if less than three elements are stored in the queue, false
otherwise.
Only works with queue with more than three elements. TODO: calculations are approximate and may include off-by-one errors.
- Returns
false
if less than three elements can be stored in queue.
Only works with queue with more than three elements.
The documentation for this class was generated from the following file: