Aruna
|
endpoint type of a comm channel More...
#include <commTypes.h>
Classes | |
struct | compare_refrence |
struct | compare_value |
Public Member Functions | |
channel_t (port_t port) | |
~channel_t () | |
err_t | send (port_t to_port, uint8_t *data, size_t data_size, bool wait_for_ack=false) |
bool | receive (transmitpackage_t *tpp) |
handeler to handle incomming connections More... | |
bool | receive_clear () |
bool | operator< (const channel_t &b) const |
bool | operator== (const uint8_t port) const |
Public Attributes | |
pthread_cond_t | in_buffer_not_empty |
pthread_mutex_t | in_buffer_lock |
std::queue< transmitpackage_t > | in_buffer |
err_t | register_err = err_t::NOT_STARTED |
const port_t | port |
port nr. More... | |
endpoint type of a comm channel
Definition at line 150 of file commTypes.h.
aruna::comm::channel_t::channel_t | ( | port_t | port | ) |
Definition at line 507 of file comm.cpp.
aruna::comm::channel_t::~channel_t | ( | ) |
Definition at line 517 of file comm.cpp.
|
inline |
Definition at line 188 of file commTypes.h.
|
inline |
Definition at line 192 of file commTypes.h.
|
inline |
handeler to handle incomming connections
DATA_SIZE
in length. Could be smaller. Definition at line 171 of file commTypes.h.
|
inline |
Definition at line 182 of file commTypes.h.
err_t aruna::comm::channel_t::send | ( | port_t | to_port, |
uint8_t * | data, | ||
size_t | data_size, | ||
bool | wait_for_ack = false |
||
) |
Definition at line 513 of file comm.cpp.
std::queue<transmitpackage_t> aruna::comm::channel_t::in_buffer |
Definition at line 153 of file commTypes.h.
pthread_mutex_t aruna::comm::channel_t::in_buffer_lock |
Definition at line 152 of file commTypes.h.
pthread_cond_t aruna::comm::channel_t::in_buffer_not_empty |
Definition at line 151 of file commTypes.h.
const port_t aruna::comm::channel_t::port |
err_t aruna::comm::channel_t::register_err = err_t::NOT_STARTED |
Definition at line 154 of file commTypes.h.