Main Page   Modules   Namespace List   Class Hierarchy   Alphabetical List   Compound List   File List   Compound Members   File Members   Related Pages  

dsSerial Class Reference

#include <dsSerial.h>

Inheritance diagram for dsSerial:

dsModem List of all members.

Public Methods

 dsSerial ()
 dsSerial (const char *tty, int speed, int flags)
 ~dsSerial ()
void Open (const char *tty, int speed, int flags)
void Open ()
void Close ()
void Lock (const char *tty, const char *lockdir="/var/run")
void UnLock (const char *tty, const char *lockdir="/var/run")
void setDtr (bool set=true)
void setRts (bool set=true)
bool testCts ()
int readQueueSize ()
void changeSpeed (int speed)
int Select (struct timeval *timeout, int op=OP_READ)
size_t Read (char *buf, size_t nbytes, int sec=10, int usec=0)
int ReadLine (std::ostream &os, int sec=10, int usec=0)
size_t Write (const char *buf, size_t nbytes)
int fd ()

Protected Attributes

int _flags
int _speed
char * _dev
termios * _oldtio
termios * _newtio
int _hSerial

Constructor & Destructor Documentation

dsSerial::dsSerial  
 

dsSerial::dsSerial const char *    tty,
int    speed,
int    flags
 

dsSerial::~dsSerial  
 


Member Function Documentation

void dsSerial::changeSpeed int    speed
 

void dsSerial::Close  
 

int dsSerial::fd  
 

void dsSerial::Lock const char *    tty,
const char *    lockdir = "/var/run"
 

void dsSerial::Open  
 

void dsSerial::Open const char *    tty,
int    speed,
int    flags
 

size_t dsSerial::Read char *    buf,
size_t    nbytes,
int    sec = 10,
int    usec = 0
 

int dsSerial::ReadLine std::ostream &    os,
int    sec = 10,
int    usec = 0
 

int dsSerial::readQueueSize  
 

int dsSerial::Select struct timeval *    timeout,
int    op = OP_READ
 

void dsSerial::setDtr bool    set = true
 

void dsSerial::setRts bool    set = true
 

bool dsSerial::testCts  
 

void dsSerial::UnLock const char *    tty,
const char *    lockdir = "/var/run"
 

size_t dsSerial::Write const char *    buf,
size_t    nbytes
 


Member Data Documentation

char* dsSerial::_dev [protected]
 

int dsSerial::_flags [protected]
 

int dsSerial::_hSerial [protected]
 

termios* dsSerial::_newtio [protected]
 

termios* dsSerial::_oldtio [protected]
 

int dsSerial::_speed [protected]
 


The documentation for this class was generated from the following files:
Generated on Mon May 16 18:27:00 2005 for libdms4 by doxygen1.3-rc2