EE445M RTOS
Taken at the University of Texas Spring 2015
|
#include <bufferpp.hpp>
Public Member Functions | |
buffer () | |
buffer (semaphore *sem) | |
void | clear () |
void | init () |
void | notify (const T data) |
bool | add (const T data) |
T | peek () |
T | get (bool &ok) |
bool | full () |
bool | empty () |
uint32_t | length () |
Public Attributes | |
uint32_t | pos |
uint32_t | len |
semaphore * | sem |
T | buf [N] |
uint32_t | error_overflow |
uint32_t | error_underflow |
Definition at line 16 of file bufferpp.hpp.
Definition at line 20 of file bufferpp.hpp.
Sem is only incremented on successful add
Definition at line 26 of file bufferpp.hpp.
|
inline |
warning: drops Ts if buffer is full
Definition at line 56 of file bufferpp.hpp.
Referenced by buffer< int32_t, N >::notify(), and shell::type().
|
inline |
Definition at line 33 of file bufferpp.hpp.
Referenced by shell::clear_buffer(), buffer< int32_t, N >::init(), and shell::print_ps1().
|
inline |
Definition at line 101 of file bufferpp.hpp.
|
inline |
Definition at line 96 of file bufferpp.hpp.
Referenced by buffer< int32_t, N >::add(), and shell::type().
|
inline |
warning: returns 0 if no more Ts in buffer
Definition at line 76 of file bufferpp.hpp.
Referenced by shell::backspace(), and shell_handler().
|
inline |
Definition at line 40 of file bufferpp.hpp.
Referenced by buffer< int32_t, N >::buffer().
|
inline |
Definition at line 106 of file bufferpp.hpp.
Referenced by shell::execute_command().
|
inline |
Definition at line 48 of file bufferpp.hpp.
Referenced by UART0_Handler().
|
inline |
Definition at line 66 of file bufferpp.hpp.
T buffer< T, N >::buf[N] |
Definition at line 115 of file bufferpp.hpp.
Referenced by circularbuffer< int16_t, 32 >::add(), buffer< int32_t, N >::add(), ir::average(), ping::average(), buffer< int32_t, N >::clear(), shell::execute_command(), circularbuffer< int16_t, 32 >::get(), buffer< int32_t, N >::get(), circularbuffer< int16_t, 32 >::peek(), and buffer< int32_t, N >::peek().
uint32_t buffer< T, N >::error_overflow |
Definition at line 117 of file bufferpp.hpp.
Referenced by buffer< int32_t, N >::add(), and buffer< int32_t, N >::init().
uint32_t buffer< T, N >::error_underflow |
Definition at line 118 of file bufferpp.hpp.
Referenced by buffer< int32_t, N >::get(), and buffer< int32_t, N >::init().
uint32_t buffer< T, N >::len |
Definition at line 113 of file bufferpp.hpp.
Referenced by circularbuffer< int16_t, 32 >::add(), ping::average(), ir::average(), buffer< int32_t, N >::full(), circularbuffer< int16_t, 32 >::get(), buffer< int32_t, N >::init(), and buffer< int32_t, N >::peek().
uint32_t buffer< T, N >::pos |
Definition at line 112 of file bufferpp.hpp.
Referenced by circularbuffer< int16_t, 32 >::add(), buffer< int32_t, N >::add(), buffer< int32_t, N >::clear(), buffer< int32_t, N >::empty(), buffer< int32_t, N >::full(), circularbuffer< int16_t, 32 >::get(), buffer< int32_t, N >::get(), buffer< int32_t, N >::init(), buffer< int32_t, N >::length(), circularbuffer< int16_t, 32 >::peek(), and buffer< int32_t, N >::peek().
Definition at line 114 of file bufferpp.hpp.
Referenced by buffer< int32_t, N >::buffer(), and buffer< int32_t, N >::notify().