Main MRPT website > C++ reference for MRPT 1.5.7
List of all members | Public Types | Public Member Functions | Static Public Member Functions | Protected Attributes
rp::hal::serial_rxtx Class Referenceabstract

Detailed Description

Definition at line 41 of file abs_rxtx.h.

#include <rplidar/src/hal/abs_rxtx.h>

Inheritance diagram for rp::hal::serial_rxtx:
Inheritance graph

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=NULL)=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=NULL)=0
 
virtual int waitforrecv (_u32 timeout=-1, size_t *returned_size=NULL)=0
 
virtual size_t rxqueue_count ()=0
 
virtual void setDTR ()=0
 
virtual void clearDTR ()=0
 
virtual bool isOpened ()
 

Static Public Member Functions

static serial_rxtxCreateRxTx ()
 
static void ReleaseRxTx (serial_rxtx *)
 

Protected Attributes

volatile bool _is_serial_opened
 

Member Enumeration Documentation

anonymous enum
Enumerator
ANS_OK 
ANS_TIMEOUT 
ANS_DEV_ERR 

Definition at line 44 of file abs_rxtx.h.

Constructor & Destructor Documentation

rp::hal::serial_rxtx::serial_rxtx ( )
inline

Definition at line 53 of file abs_rxtx.h.

Referenced by rp::arch::net::raw_serial::waitfordata().

virtual rp::hal::serial_rxtx::~serial_rxtx ( )
inlinevirtual

Member Function Documentation

virtual bool rp::hal::serial_rxtx::bind ( const char *  portname,
_u32  baudrate,
_u32  flags = 0 
)
pure virtual
virtual void rp::hal::serial_rxtx::clearDTR ( )
pure virtual
virtual void rp::hal::serial_rxtx::close ( )
pure virtual
serial_rxtx * rp::hal::serial_rxtx::CreateRxTx ( )
static
virtual void rp::hal::serial_rxtx::flush ( _u32  flags)
pure virtual
virtual bool rp::hal::serial_rxtx::isOpened ( )
inlinevirtual
virtual bool rp::hal::serial_rxtx::open ( )
pure virtual
virtual int rp::hal::serial_rxtx::recvdata ( unsigned char *  data,
size_t  size 
)
pure virtual
void rp::hal::serial_rxtx::ReleaseRxTx ( serial_rxtx rxtx)
static
virtual size_t rp::hal::serial_rxtx::rxqueue_count ( )
pure virtual
virtual int rp::hal::serial_rxtx::senddata ( const unsigned char *  data,
size_t  size 
)
pure virtual
virtual void rp::hal::serial_rxtx::setDTR ( )
pure virtual
virtual int rp::hal::serial_rxtx::waitfordata ( size_t  data_count,
_u32  timeout = -1,
size_t *  returned_size = NULL 
)
pure virtual
virtual int rp::hal::serial_rxtx::waitforrecv ( _u32  timeout = -1,
size_t *  returned_size = NULL 
)
pure virtual
virtual int rp::hal::serial_rxtx::waitforsent ( _u32  timeout = -1,
size_t *  returned_size = NULL 
)
pure virtual

Member Data Documentation

volatile bool rp::hal::serial_rxtx::_is_serial_opened
protected



Page generated by Doxygen 1.8.11 for MRPT 1.5.7 Git: 2190203 Tue May 15 02:01:15 2018 +0200 at miƩ may 16 12:40:16 CEST 2018