ISIX-RTOS - small operating system for ARM microcontrollers 1.2
|
The C++ class wrapper for the queue. More...
#include <fifo.h>
Public Member Functions | |
fifo (std::size_t n_elem) | |
~fifo () | |
Destruct fifo object. | |
bool | is_valid () |
int | push (const T &c, tick_t timeout=0) |
int | push_isr (const T &c) |
int | size () const |
int | pop (T &c, tick_t timeout=0) |
int | pop_isr (T &c) |
Private Member Functions | |
fifo (const fifo &) | |
fifo & | operator= (const fifo &) |
The C++ class wrapper for the queue.
Definition at line 98 of file isix/fifo.h.
isix::fifo< T >::fifo | ( | std::size_t | n_elem | ) | [inline, explicit] |
Construct fifo object with the selected elements
n_elem | Number of elements in the fifo |
Definition at line 104 of file isix/fifo.h.
isix::fifo< T >::~fifo | ( | ) | [inline] |
Destruct fifo object.
Definition at line 109 of file isix/fifo.h.
References isix::fifo_base::hwnd, and isix::isix_fifo_destroy().
isix::fifo< T >::fifo | ( | const fifo< T > & | ) | [private] |
bool isix::fifo< T >::is_valid | ( | ) | [inline] |
Check if the fifo object is in valid state
Definition at line 116 of file isix/fifo.h.
References isix::fifo_base::hwnd.
fifo& isix::fifo< T >::operator= | ( | const fifo< T > & | ) | [private] |
int isix::fifo< T >::pop | ( | T & | c, |
tick_t | timeout = 0 |
||
) | [inline] |
Pop the element from the queue
[in] | c | Reference to the buffer |
[in] | timeout | Max waiting time |
Definition at line 147 of file isix/fifo.h.
References isix::fifo_base::hwnd, and isix::isix_fifo_read().
int isix::fifo< T >::pop_isr | ( | T & | c | ) | [inline] |
Pop the element from the queue. Called from the ISR
[in] | c | Reference to the buffer |
[in] | timeout | Max waiting time |
Definition at line 156 of file isix/fifo.h.
References isix::fifo_base::hwnd, and isix::isix_fifo_read_isr().
int isix::fifo< T >::push | ( | const T & | c, |
tick_t | timeout = 0 |
||
) | [inline] |
Definition at line 122 of file isix/fifo.h.
References isix::fifo_base::hwnd, and isix::isix_fifo_write().
int isix::fifo< T >::push_isr | ( | const T & | c | ) | [inline] |
Definition at line 131 of file isix/fifo.h.
References isix::fifo_base::hwnd, and isix::isix_fifo_write_isr().
int isix::fifo< T >::size | ( | ) | const [inline] |
Get available elements in the fifo
Definition at line 138 of file isix/fifo.h.
References isix::fifo_base::hwnd, and isix::isix_fifo_count().