#include <sl_async_transceiver.h>
Classes | |
struct | Buffer |
Public Types | |
enum | working_flag_t { WORKING_FLAG_RX_DISABLED = 0x1L << 0, WORKING_FLAG_TX_DISABLED = 0x1L << 1, WORKING_FLAG_ERROR = 0x1L << 31 } |
Public Member Functions | |
AsyncTransceiver (IAsyncProtocolCodec &codec) | |
IChannel * | getBindedChannel () const |
u_result | openChannelAndBind (IChannel *channel) |
u_result | sendMessage (message_autoptr_t &msg) |
void | unbindAndClose () |
~AsyncTransceiver () | |
Protected Member Functions | |
sl_result | _proc_decoderThread () |
sl_result | _proc_rxThread () |
Protected Attributes | |
IChannel * | _bindedChannel |
IAsyncProtocolCodec & | _codec |
rp::hal::Event | _dataEvt |
rp::hal::Thread | _decoderThread |
bool | _isWorking |
rp::hal::Locker | _opLocker |
rp::hal::Locker | _rxLocker |
std::list< Buffer * > | _rxQueue |
rp::hal::Thread | _rxThread |
_u32 | _workingFlag |
Definition at line 101 of file sl_async_transceiver.h.
Enumerator | |
---|---|
WORKING_FLAG_RX_DISABLED | |
WORKING_FLAG_TX_DISABLED | |
WORKING_FLAG_ERROR |
Definition at line 104 of file sl_async_transceiver.h.
sl::internal::AsyncTransceiver::AsyncTransceiver | ( | IAsyncProtocolCodec & | codec | ) |
Definition at line 179 of file sl_async_transceiver.cpp.
sl::internal::AsyncTransceiver::~AsyncTransceiver | ( | ) |
Definition at line 188 of file sl_async_transceiver.cpp.
|
protected |
Definition at line 372 of file sl_async_transceiver.cpp.
|
protected |
Definition at line 299 of file sl_async_transceiver.cpp.
|
inline |
Definition at line 121 of file sl_async_transceiver.h.
Definition at line 193 of file sl_async_transceiver.cpp.
u_result sl::internal::AsyncTransceiver::sendMessage | ( | message_autoptr_t & | msg | ) |
Definition at line 261 of file sl_async_transceiver.cpp.
void sl::internal::AsyncTransceiver::unbindAndClose | ( | ) |
Definition at line 233 of file sl_async_transceiver.cpp.
|
protected |
Definition at line 139 of file sl_async_transceiver.h.
|
protected |
Definition at line 140 of file sl_async_transceiver.h.
|
protected |
Definition at line 137 of file sl_async_transceiver.h.
|
protected |
Definition at line 147 of file sl_async_transceiver.h.
|
protected |
Definition at line 143 of file sl_async_transceiver.h.
|
protected |
Definition at line 135 of file sl_async_transceiver.h.
|
protected |
Definition at line 136 of file sl_async_transceiver.h.
|
protected |
Definition at line 163 of file sl_async_transceiver.h.
|
protected |
Definition at line 146 of file sl_async_transceiver.h.
|
protected |
Definition at line 144 of file sl_async_transceiver.h.