#include <sl_lidar_driver.h>
Abstract interface of communication channel
Definition at line 171 of file sl_lidar_driver.h.
◆ ~IChannel()
virtual sl::IChannel::~IChannel |
( |
| ) |
|
|
inlinevirtual |
◆ clearReadCache()
virtual void sl::IChannel::clearReadCache |
( |
| ) |
|
|
pure virtual |
◆ close()
virtual void sl::IChannel::close |
( |
| ) |
|
|
pure virtual |
◆ flush()
virtual void sl::IChannel::flush |
( |
| ) |
|
|
pure virtual |
◆ getChannelType()
virtual int sl::IChannel::getChannelType |
( |
| ) |
|
|
pure virtual |
◆ open()
virtual bool sl::IChannel::open |
( |
| ) |
|
|
pure virtual |
◆ read()
virtual int sl::IChannel::read |
( |
void * |
buffer, |
|
|
size_t |
size |
|
) |
| |
|
pure virtual |
◆ waitForData()
virtual bool sl::IChannel::waitForData |
( |
size_t |
size, |
|
|
sl_u32 |
timeoutInMs = -1 , |
|
|
size_t * |
actualReady = nullptr |
|
) |
| |
|
pure virtual |
◆ waitForDataExt()
virtual sl_result sl::IChannel::waitForDataExt |
( |
size_t & |
size_hint, |
|
|
sl_u32 |
timeoutInMs = 1000 |
|
) |
| |
|
pure virtual |
Wait for some data
- Parameters
-
size_hint | Byte count may available to retrieve without beening blocked |
timeoutInMs | Wait timeout (in microseconds, -1 for forever) |
- Returns
- RESULT_OK if there is data available for receiving RESULT_OPERATION_TIMEOUT if the given timeout duration is exceed RESULT_OPERATION_FAIL if there is something wrong with the channel
Implemented in sl::SerialPortChannel, sl::TcpChannel, and sl::UdpChannel.
◆ write()
virtual int sl::IChannel::write |
( |
const void * |
data, |
|
|
size_t |
size |
|
) |
| |
|
pure virtual |
The documentation for this class was generated from the following file: