#include <rplidar_driver_serial.h>
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 |
Definition at line 39 of file rplidar_driver_serial.h.
Definition at line 45 of file rplidar_driver_serial.h.
bool rp::standalone::rplidar::SerialChannelDevice::bind | ( | const char * | portname, |
uint32_t | baudrate | ||
) | [inline, virtual] |
Implements rp::standalone::rplidar::ChannelDevice.
Definition at line 47 of file rplidar_driver_serial.h.
void rp::standalone::rplidar::SerialChannelDevice::clearDTR | ( | ) | [inline, virtual] |
Reimplemented from rp::standalone::rplidar::ChannelDevice.
Definition at line 85 of file rplidar_driver_serial.h.
void rp::standalone::rplidar::SerialChannelDevice::close | ( | ) | [inline, virtual] |
Implements rp::standalone::rplidar::ChannelDevice.
Definition at line 56 of file rplidar_driver_serial.h.
void rp::standalone::rplidar::SerialChannelDevice::flush | ( | ) | [inline, virtual] |
Reimplemented from rp::standalone::rplidar::ChannelDevice.
Definition at line 62 of file rplidar_driver_serial.h.
bool rp::standalone::rplidar::SerialChannelDevice::open | ( | ) | [inline, virtual] |
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 | ||
) | [inline, virtual] |
Implements rp::standalone::rplidar::ChannelDevice.
Definition at line 75 of file rplidar_driver_serial.h.
void rp::standalone::rplidar::SerialChannelDevice::ReleaseRxTx | ( | ) | [inline, virtual] |
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 | ||
) | [inline, virtual] |
Implements rp::standalone::rplidar::ChannelDevice.
Definition at line 71 of file rplidar_driver_serial.h.
void rp::standalone::rplidar::SerialChannelDevice::setDTR | ( | ) | [inline, virtual] |
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 |
||
) | [inline, virtual] |
Implements rp::standalone::rplidar::ChannelDevice.
Definition at line 66 of file rplidar_driver_serial.h.
Definition at line 43 of file rplidar_driver_serial.h.
Definition at line 42 of file rplidar_driver_serial.h.