Definition at line 42 of file abs_rxtx.h.
#include <rplidar/src/hal/abs_rxtx.h>
Public Types | |
enum | { ANS_OK = 0, ANS_TIMEOUT = -1, ANS_DEV_ERR = -2 } |
Public Member Functions | |
serial_rxtx () | |
virtual | ~serial_rxtx () |
virtual void | flush (_u32 flags)=0 |
virtual bool | bind (const char *portname, _u32 baudrate, _u32 flags=0)=0 |
virtual bool | open ()=0 |
virtual void | close ()=0 |
virtual int | waitfordata (size_t data_count, _u32 timeout=-1, size_t *returned_size=nullptr)=0 |
virtual int | senddata (const unsigned char *data, size_t size)=0 |
virtual int | recvdata (unsigned char *data, size_t size)=0 |
virtual int | waitforsent (_u32 timeout=-1, size_t *returned_size=nullptr)=0 |
virtual int | waitforrecv (_u32 timeout=-1, size_t *returned_size=nullptr)=0 |
virtual size_t | rxqueue_count ()=0 |
virtual void | setDTR ()=0 |
virtual void | clearDTR ()=0 |
virtual bool | isOpened () |
Static Public Member Functions | |
static serial_rxtx * | CreateRxTx () |
static void | ReleaseRxTx (serial_rxtx *) |
Protected Attributes | |
volatile bool | _is_serial_opened |
anonymous enum |
Enumerator | |
---|---|
ANS_OK | |
ANS_TIMEOUT | |
ANS_DEV_ERR |
Definition at line 45 of file abs_rxtx.h.
|
inline |
Definition at line 55 of file abs_rxtx.h.
|
inlinevirtual |
Definition at line 56 of file abs_rxtx.h.
|
pure virtual |
Implemented in rp::arch::net::raw_serial, rp::arch::net::raw_serial, and rp::arch::net::raw_serial.
Referenced by rp::standalone::rplidar::RPlidarDriverSerialImpl::connect().
|
pure virtual |
Implemented in rp::arch::net::raw_serial, rp::arch::net::raw_serial, and rp::arch::net::raw_serial.
Referenced by rp::standalone::rplidar::RPlidarDriverSerialImpl::startMotor().
|
pure virtual |
Implemented in rp::arch::net::raw_serial, rp::arch::net::raw_serial, and rp::arch::net::raw_serial.
Referenced by rp::standalone::rplidar::RPlidarDriverSerialImpl::disconnect().
|
static |
Definition at line 319 of file linux/net_serial.cpp.
Referenced by rp::standalone::rplidar::RPlidarDriverSerialImpl::RPlidarDriverSerialImpl().
Implemented in rp::arch::net::raw_serial, rp::arch::net::raw_serial, and rp::arch::net::raw_serial.
Referenced by rp::standalone::rplidar::RPlidarDriverSerialImpl::connect().
|
inlinevirtual |
Definition at line 80 of file abs_rxtx.h.
References _is_serial_opened.
Referenced by rp::arch::net::raw_serial::clearDTR(), rp::arch::net::raw_serial::open(), rp::arch::net::raw_serial::recvdata(), rp::arch::net::raw_serial::rxqueue_count(), rp::arch::net::raw_serial::senddata(), rp::arch::net::raw_serial::setDTR(), rp::arch::net::raw_serial::waitfordata(), and rp::arch::net::raw_serial::waitforrecv().
|
pure virtual |
Implemented in rp::arch::net::raw_serial, rp::arch::net::raw_serial, and rp::arch::net::raw_serial.
Referenced by rp::standalone::rplidar::RPlidarDriverSerialImpl::connect().
|
pure virtual |
Implemented in rp::arch::net::raw_serial, and rp::arch::net::raw_serial.
Referenced by rp::standalone::rplidar::RPlidarDriverSerialImpl::_waitCapsuledNode(), rp::standalone::rplidar::RPlidarDriverSerialImpl::_waitNode(), rp::standalone::rplidar::RPlidarDriverSerialImpl::_waitResponseHeader(), rp::standalone::rplidar::RPlidarDriverSerialImpl::checkMotorCtrlSupport(), rp::standalone::rplidar::RPlidarDriverSerialImpl::getDeviceInfo(), rp::standalone::rplidar::RPlidarDriverSerialImpl::getHealth(), and rp::standalone::rplidar::RPlidarDriverSerialImpl::getSampleDuration_uS().
|
static |
Definition at line 324 of file linux/net_serial.cpp.
Referenced by rp::standalone::rplidar::RPlidarDriverSerialImpl::~RPlidarDriverSerialImpl().
|
pure virtual |
Implemented in rp::arch::net::raw_serial, rp::arch::net::raw_serial, and rp::arch::net::raw_serial.
|
pure virtual |
Implemented in rp::arch::net::raw_serial, and rp::arch::net::raw_serial.
Referenced by rp::standalone::rplidar::RPlidarDriverSerialImpl::_sendCommand().
|
pure virtual |
Implemented in rp::arch::net::raw_serial, rp::arch::net::raw_serial, and rp::arch::net::raw_serial.
Referenced by rp::standalone::rplidar::RPlidarDriverSerialImpl::stopMotor().
|
pure virtual |
Implemented in rp::arch::net::raw_serial, and rp::arch::net::raw_serial.
Referenced by rp::standalone::rplidar::RPlidarDriverSerialImpl::_waitCapsuledNode(), rp::standalone::rplidar::RPlidarDriverSerialImpl::_waitNode(), rp::standalone::rplidar::RPlidarDriverSerialImpl::_waitResponseHeader(), rp::standalone::rplidar::RPlidarDriverSerialImpl::checkMotorCtrlSupport(), rp::standalone::rplidar::RPlidarDriverSerialImpl::getDeviceInfo(), rp::standalone::rplidar::RPlidarDriverSerialImpl::getHealth(), and rp::standalone::rplidar::RPlidarDriverSerialImpl::getSampleDuration_uS().
|
pure virtual |
Implemented in rp::arch::net::raw_serial, and rp::arch::net::raw_serial.
|
pure virtual |
Implemented in rp::arch::net::raw_serial, and rp::arch::net::raw_serial.
|
protected |
Definition at line 82 of file abs_rxtx.h.
Referenced by rp::arch::net::raw_serial::close(), isOpened(), and rp::arch::net::raw_serial::open().
Page generated by Doxygen 1.8.17 for MRPT 1.9.9 Git: ad3a9d8ae Tue May 1 23:10:22 2018 -0700 at miƩ 12 jul 2023 10:03:34 CEST |