Public Member Functions | Public Attributes | List of all members
rp::standalone::rplidar::SerialChannelDevice Class Reference

#include <rplidar_driver_serial.h>

Inheritance diagram for rp::standalone::rplidar::SerialChannelDevice:
Inheritance graph
[legend]

Public Member Functions

bool bind (const char *portname, uint32_t baudrate)
 
void clearDTR ()
 
void close ()
 
void flush ()
 
bool open ()
 
int recvdata (unsigned char *data, size_t size)
 
void ReleaseRxTx ()
 
int senddata (const _u8 *data, size_t size)
 
 SerialChannelDevice ()
 
void setDTR ()
 
bool waitfordata (size_t data_count, _u32 timeout=-1, size_t *returned_size=NULL)
 

Public Attributes

bool _closePending
 
rp::hal::serial_rxtx_rxtxSerial
 

Detailed Description

Definition at line 39 of file rplidar_driver_serial.h.

Constructor & Destructor Documentation

rp::standalone::rplidar::SerialChannelDevice::SerialChannelDevice ( )
inline

Definition at line 45 of file rplidar_driver_serial.h.

Member Function Documentation

bool rp::standalone::rplidar::SerialChannelDevice::bind ( const char *  portname,
uint32_t  baudrate 
)
inlinevirtual

Implements rp::standalone::rplidar::ChannelDevice.

Definition at line 47 of file rplidar_driver_serial.h.

void rp::standalone::rplidar::SerialChannelDevice::clearDTR ( )
inlinevirtual

Reimplemented from rp::standalone::rplidar::ChannelDevice.

Definition at line 85 of file rplidar_driver_serial.h.

void rp::standalone::rplidar::SerialChannelDevice::close ( )
inlinevirtual

Implements rp::standalone::rplidar::ChannelDevice.

Definition at line 56 of file rplidar_driver_serial.h.

void rp::standalone::rplidar::SerialChannelDevice::flush ( )
inlinevirtual

Reimplemented from rp::standalone::rplidar::ChannelDevice.

Definition at line 62 of file rplidar_driver_serial.h.

bool rp::standalone::rplidar::SerialChannelDevice::open ( )
inlinevirtual

Reimplemented from rp::standalone::rplidar::ChannelDevice.

Definition at line 52 of file rplidar_driver_serial.h.

int rp::standalone::rplidar::SerialChannelDevice::recvdata ( unsigned char *  data,
size_t  size 
)
inlinevirtual

Implements rp::standalone::rplidar::ChannelDevice.

Definition at line 75 of file rplidar_driver_serial.h.

void rp::standalone::rplidar::SerialChannelDevice::ReleaseRxTx ( )
inlinevirtual

Reimplemented from rp::standalone::rplidar::ChannelDevice.

Definition at line 89 of file rplidar_driver_serial.h.

int rp::standalone::rplidar::SerialChannelDevice::senddata ( const _u8 data,
size_t  size 
)
inlinevirtual

Implements rp::standalone::rplidar::ChannelDevice.

Definition at line 71 of file rplidar_driver_serial.h.

void rp::standalone::rplidar::SerialChannelDevice::setDTR ( )
inlinevirtual

Reimplemented from rp::standalone::rplidar::ChannelDevice.

Definition at line 81 of file rplidar_driver_serial.h.

bool rp::standalone::rplidar::SerialChannelDevice::waitfordata ( size_t  data_count,
_u32  timeout = -1,
size_t *  returned_size = NULL 
)
inlinevirtual

Implements rp::standalone::rplidar::ChannelDevice.

Definition at line 66 of file rplidar_driver_serial.h.

Member Data Documentation

bool rp::standalone::rplidar::SerialChannelDevice::_closePending

Definition at line 43 of file rplidar_driver_serial.h.

rp::hal::serial_rxtx* rp::standalone::rplidar::SerialChannelDevice::_rxtxSerial

Definition at line 42 of file rplidar_driver_serial.h.


The documentation for this class was generated from the following file:


rplidar_ros
Author(s):
autogenerated on Wed Jan 1 2020 04:01:40