Public Types | Public Member Functions | Protected Member Functions | Protected Attributes
rp::arch::net::raw_serial Class Reference

#include <net_serial.h>

Inheritance diagram for rp::arch::net::raw_serial:
Inheritance graph
[legend]

List of all members.

Public Types

enum  { SERIAL_RX_BUFFER_SIZE = 512, SERIAL_TX_BUFFER_SIZE = 128 }
enum  { SERIAL_RX_BUFFER_SIZE = 512, SERIAL_TX_BUFFER_SIZE = 128 }
enum  { SERIAL_RX_BUFFER_SIZE = 512, SERIAL_TX_BUFFER_SIZE = 128, SERIAL_RX_TIMEOUT = 2000, SERIAL_TX_TIMEOUT = 2000 }

Public Member Functions

virtual bool bind (const char *portname, uint32_t baudrate, uint32_t flags=0)
virtual bool bind (const char *portname, uint32_t baudrate, uint32_t flags=0)
virtual bool bind (const char *portname, _u32 baudrate, _u32 flags=0)
virtual void clearDTR ()
virtual void clearDTR ()
virtual void clearDTR ()
virtual void close ()
virtual void close ()
virtual void close ()
virtual void flush (_u32 flags)
virtual void flush (_u32 flags)
virtual void flush (_u32 flags)
_u32 getTermBaudBitmap (_u32 baud)
_u32 getTermBaudBitmap (_u32 baud)
virtual bool open ()
virtual bool open ()
virtual bool open ()
 raw_serial ()
 raw_serial ()
 raw_serial ()
virtual int recvdata (unsigned char *data, size_t size)
virtual int recvdata (unsigned char *data, _word_size_t size)
virtual int recvdata (unsigned char *data, size_t size)
virtual size_t rxqueue_count ()
virtual size_t rxqueue_count ()
virtual size_t rxqueue_count ()
virtual int senddata (const unsigned char *data, size_t size)
virtual int senddata (const unsigned char *data, _word_size_t size)
virtual int senddata (const unsigned char *data, size_t size)
virtual void setDTR ()
virtual void setDTR ()
virtual void setDTR ()
virtual int waitfordata (_word_size_t data_count, _u32 timeout=-1, _word_size_t *returned_size=NULL)
virtual int waitfordata (size_t data_count, _u32 timeout=-1, size_t *returned_size=NULL)
virtual int waitfordata (size_t data_count, _u32 timeout=-1, size_t *returned_size=NULL)
virtual int waitforrecv (_u32 timeout=-1, size_t *returned_size=NULL)
virtual int waitforrecv (_u32 timeout=-1, _word_size_t *returned_size=NULL)
virtual int waitforrecv (_u32 timeout=-1, size_t *returned_size=NULL)
virtual int waitforsent (_u32 timeout=-1, _word_size_t *returned_size=NULL)
virtual int waitforsent (_u32 timeout=-1, size_t *returned_size=NULL)
virtual int waitforsent (_u32 timeout=-1, size_t *returned_size=NULL)
virtual ~raw_serial ()
virtual ~raw_serial ()
virtual ~raw_serial ()

Protected Member Functions

void _init ()
void _init ()
void _init ()
bool open (const char *portname, uint32_t baudrate, uint32_t flags=0)
bool open (const char *portname, uint32_t baudrate, uint32_t flags=0)
bool open (const char *portname, _u32 baudrate, _u32 flags)

Protected Attributes

uint32_t _baudrate
COMMTIMEOUTS _co
DCB _dcb
uint32_t _flags
char _portName [200]
OVERLAPPED _ro
volatile HANDLE _serial_handle
OVERLAPPED _wait_o
OVERLAPPED _wo
size_t required_rx_cnt
size_t required_tx_cnt
int serial_fd

Detailed Description

Definition at line 41 of file linux/net_serial.h.


Member Enumeration Documentation

anonymous enum
Enumerator:
SERIAL_RX_BUFFER_SIZE 
SERIAL_TX_BUFFER_SIZE 

Definition at line 44 of file linux/net_serial.h.

anonymous enum
Enumerator:
SERIAL_RX_BUFFER_SIZE 
SERIAL_TX_BUFFER_SIZE 

Definition at line 44 of file macOS/net_serial.h.

anonymous enum
Enumerator:
SERIAL_RX_BUFFER_SIZE 
SERIAL_TX_BUFFER_SIZE 
SERIAL_RX_TIMEOUT 
SERIAL_TX_TIMEOUT 

Definition at line 44 of file win32/net_serial.h.


Constructor & Destructor Documentation

Definition at line 42 of file linux/net_serial.cpp.

Definition at line 51 of file linux/net_serial.cpp.


Member Function Documentation

void rp::arch::net::raw_serial::_init ( ) [protected]

Definition at line 289 of file linux/net_serial.cpp.

void rp::arch::net::raw_serial::_init ( ) [protected]
void rp::arch::net::raw_serial::_init ( ) [protected]
virtual bool rp::arch::net::raw_serial::bind ( const char *  portname,
uint32_t  baudrate,
uint32_t  flags = 0 
) [virtual]

Implements rp::hal::serial_rxtx.

bool rp::arch::net::raw_serial::bind ( const char *  portname,
uint32_t  baudrate,
uint32_t  flags = 0 
) [virtual]

Implements rp::hal::serial_rxtx.

Definition at line 62 of file linux/net_serial.cpp.

virtual bool rp::arch::net::raw_serial::bind ( const char *  portname,
_u32  baudrate,
_u32  flags = 0 
) [virtual]

Implements rp::hal::serial_rxtx.

virtual void rp::arch::net::raw_serial::clearDTR ( ) [virtual]

Implements rp::hal::serial_rxtx.

Implements rp::hal::serial_rxtx.

Definition at line 281 of file linux/net_serial.cpp.

virtual void rp::arch::net::raw_serial::clearDTR ( ) [virtual]

Implements rp::hal::serial_rxtx.

virtual void rp::arch::net::raw_serial::close ( ) [virtual]

Implements rp::hal::serial_rxtx.

Implements rp::hal::serial_rxtx.

Definition at line 133 of file linux/net_serial.cpp.

virtual void rp::arch::net::raw_serial::close ( ) [virtual]

Implements rp::hal::serial_rxtx.

void rp::arch::net::raw_serial::flush ( _u32  flags) [virtual]

Implements rp::hal::serial_rxtx.

Definition at line 177 of file linux/net_serial.cpp.

virtual void rp::arch::net::raw_serial::flush ( _u32  flags) [virtual]

Implements rp::hal::serial_rxtx.

virtual void rp::arch::net::raw_serial::flush ( _u32  flags) [virtual]

Implements rp::hal::serial_rxtx.

Definition at line 298 of file linux/net_serial.cpp.

bool rp::arch::net::raw_serial::open ( ) [virtual]

Implements rp::hal::serial_rxtx.

Definition at line 57 of file linux/net_serial.cpp.

virtual bool rp::arch::net::raw_serial::open ( ) [virtual]

Implements rp::hal::serial_rxtx.

virtual bool rp::arch::net::raw_serial::open ( ) [virtual]

Implements rp::hal::serial_rxtx.

bool rp::arch::net::raw_serial::open ( const char *  portname,
uint32_t  baudrate,
uint32_t  flags = 0 
) [protected]
bool rp::arch::net::raw_serial::open ( const char *  portname,
uint32_t  baudrate,
uint32_t  flags = 0 
) [protected]

Definition at line 70 of file linux/net_serial.cpp.

bool rp::arch::net::raw_serial::open ( const char *  portname,
_u32  baudrate,
_u32  flags 
) [protected]
int rp::arch::net::raw_serial::recvdata ( unsigned char *  data,
_word_size_t  size 
) [virtual]

Definition at line 167 of file macOS/net_serial.cpp.

int rp::arch::net::raw_serial::recvdata ( unsigned char *  data,
size_t  size 
) [virtual]

Implements rp::hal::serial_rxtx.

Definition at line 165 of file linux/net_serial.cpp.

virtual int rp::arch::net::raw_serial::recvdata ( unsigned char *  data,
size_t  size 
) [virtual]

Implements rp::hal::serial_rxtx.

Implements rp::hal::serial_rxtx.

Definition at line 264 of file linux/net_serial.cpp.

virtual size_t rp::arch::net::raw_serial::rxqueue_count ( ) [virtual]

Implements rp::hal::serial_rxtx.

virtual size_t rp::arch::net::raw_serial::rxqueue_count ( ) [virtual]

Implements rp::hal::serial_rxtx.

int rp::arch::net::raw_serial::senddata ( const unsigned char *  data,
_word_size_t  size 
) [virtual]

Definition at line 143 of file macOS/net_serial.cpp.

int rp::arch::net::raw_serial::senddata ( const unsigned char *  data,
size_t  size 
) [virtual]

Implements rp::hal::serial_rxtx.

Definition at line 142 of file linux/net_serial.cpp.

virtual int rp::arch::net::raw_serial::senddata ( const unsigned char *  data,
size_t  size 
) [virtual]

Implements rp::hal::serial_rxtx.

Implements rp::hal::serial_rxtx.

Definition at line 273 of file linux/net_serial.cpp.

virtual void rp::arch::net::raw_serial::setDTR ( ) [virtual]

Implements rp::hal::serial_rxtx.

virtual void rp::arch::net::raw_serial::setDTR ( ) [virtual]

Implements rp::hal::serial_rxtx.

int rp::arch::net::raw_serial::waitfordata ( _word_size_t  data_count,
_u32  timeout = -1,
_word_size_t returned_size = NULL 
) [virtual]

Definition at line 198 of file macOS/net_serial.cpp.

int rp::arch::net::raw_serial::waitfordata ( size_t  data_count,
_u32  timeout = -1,
size_t *  returned_size = NULL 
) [virtual]

Implements rp::hal::serial_rxtx.

Definition at line 196 of file linux/net_serial.cpp.

virtual int rp::arch::net::raw_serial::waitfordata ( size_t  data_count,
_u32  timeout = -1,
size_t *  returned_size = NULL 
) [virtual]

Implements rp::hal::serial_rxtx.

int rp::arch::net::raw_serial::waitforrecv ( _u32  timeout = -1,
_word_size_t returned_size = NULL 
) [virtual]

Definition at line 190 of file macOS/net_serial.cpp.

int rp::arch::net::raw_serial::waitforrecv ( _u32  timeout = -1,
size_t *  returned_size = NULL 
) [virtual]

Implements rp::hal::serial_rxtx.

Definition at line 188 of file linux/net_serial.cpp.

virtual int rp::arch::net::raw_serial::waitforrecv ( _u32  timeout = -1,
size_t *  returned_size = NULL 
) [virtual]

Implements rp::hal::serial_rxtx.

int rp::arch::net::raw_serial::waitforsent ( _u32  timeout = -1,
size_t *  returned_size = NULL 
) [virtual]

Implements rp::hal::serial_rxtx.

Definition at line 182 of file linux/net_serial.cpp.

int rp::arch::net::raw_serial::waitforsent ( _u32  timeout = -1,
_word_size_t returned_size = NULL 
) [virtual]

Definition at line 184 of file macOS/net_serial.cpp.

virtual int rp::arch::net::raw_serial::waitforsent ( _u32  timeout = -1,
size_t *  returned_size = NULL 
) [virtual]

Implements rp::hal::serial_rxtx.


Member Data Documentation

Definition at line 75 of file linux/net_serial.h.

COMMTIMEOUTS rp::arch::net::raw_serial::_co [protected]

Definition at line 83 of file win32/net_serial.h.

Definition at line 82 of file win32/net_serial.h.

uint32_t rp::arch::net::raw_serial::_flags [protected]

Definition at line 76 of file linux/net_serial.h.

Definition at line 74 of file linux/net_serial.h.

OVERLAPPED rp::arch::net::raw_serial::_ro [protected]

Definition at line 79 of file win32/net_serial.h.

volatile HANDLE rp::arch::net::raw_serial::_serial_handle [protected]

Definition at line 81 of file win32/net_serial.h.

OVERLAPPED rp::arch::net::raw_serial::_wait_o [protected]

Definition at line 80 of file win32/net_serial.h.

OVERLAPPED rp::arch::net::raw_serial::_wo [protected]

Definition at line 79 of file win32/net_serial.h.

Definition at line 81 of file linux/net_serial.h.

Definition at line 80 of file linux/net_serial.h.

Definition at line 78 of file linux/net_serial.h.


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


rplidar_ros
Author(s):
autogenerated on Fri Dec 16 2016 03:59:16