Public Member Functions | Private Attributes
SerialComm Class Reference

#include <serialcomm.hpp>

List of all members.

Public Member Functions

bool isConnected ()
int read (uint8_t *buf, int len)
uint8_t readOneByte ()
 SerialComm (const std::string &port, int baud=DEFAULT_BAUD)
int write (uint8_t *buf, int len)
 ~SerialComm ()

Private Attributes

bool connected
int fd
struct termios oldtio
fd_set rfds
struct timeval tv

Detailed Description

Definition at line 31 of file serialcomm.hpp.


Constructor & Destructor Documentation

SerialComm::SerialComm ( const std::string &  port,
int  baud = DEFAULT_BAUD 
)

Definition at line 20 of file serialcomm.cpp.

Definition at line 50 of file serialcomm.cpp.


Member Function Documentation

Definition at line 91 of file serialcomm.cpp.

int SerialComm::read ( uint8_t *  buf,
int  len 
)

Definition at line 62 of file serialcomm.cpp.

Definition at line 66 of file serialcomm.cpp.

int SerialComm::write ( uint8_t *  buf,
int  len 
)

Definition at line 57 of file serialcomm.cpp.


Member Data Documentation

bool SerialComm::connected [private]

Definition at line 45 of file serialcomm.hpp.

int SerialComm::fd [private]

Definition at line 43 of file serialcomm.hpp.

struct termios SerialComm::oldtio [private]

Definition at line 44 of file serialcomm.hpp.

fd_set SerialComm::rfds [private]

Definition at line 46 of file serialcomm.hpp.

struct timeval SerialComm::tv [private]

Definition at line 47 of file serialcomm.hpp.


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


elektron_base
Author(s): Konrad Banachowicz
autogenerated on Mon Oct 6 2014 10:26:31