Public Member Functions | Private Attributes
SerialPort Class Reference

#include <serial_port.h>

List of all members.

Public Member Functions

void close ()
bool init (char *param)
bool isOpen () const
int read (char *buf, unsigned count)
int readByte ()
 SerialPort ()
template<typename Duration >
int waitData (const Duration &duration)
bool write (uint8_t *data, int length)
bool write (const std::string &line)
 ~SerialPort ()

Private Attributes

int ser_port

Detailed Description

Definition at line 27 of file serial_port.h.


Constructor & Destructor Documentation

SerialPort::SerialPort ( ) [inline]

Definition at line 69 of file serial_port.h.

Definition at line 70 of file serial_port.h.


Member Function Documentation

void SerialPort::close ( ) [inline]

Definition at line 66 of file serial_port.h.

bool SerialPort::init ( char *  param) [inline]

Definition at line 33 of file serial_port.h.

bool SerialPort::isOpen ( ) const [inline]

Definition at line 30 of file serial_port.h.

int SerialPort::read ( char *  buf,
unsigned  count 
) [inline]

Definition at line 56 of file serial_port.h.

int SerialPort::readByte ( ) [inline]

Definition at line 53 of file serial_port.h.

template<typename Duration >
int SerialPort::waitData ( const Duration &  duration) [inline]

Definition at line 45 of file serial_port.h.

bool SerialPort::write ( uint8_t *  data,
int  length 
) [inline]

Definition at line 59 of file serial_port.h.

bool SerialPort::write ( const std::string &  line) [inline]

Definition at line 63 of file serial_port.h.


Member Data Documentation

int SerialPort::ser_port [private]

Definition at line 28 of file serial_port.h.


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


cob_hand_bridge
Author(s): Mathias Lüdtke
autogenerated on Thu Jun 6 2019 20:43:57