#include "isisclient.h"
Functions | |
int | OpenSerialPort (char *ttydev) |
Open a serial port. | |
int | SetSerialPort (int ttyFD, int speed, int databits, int stopbits, int parity) |
Set the serial port attributes. | |
void | CloseSerialPort (int ttyFD) |
Close an open serial port. | |
int | WriteSerialPort (int ttyFD, char *msgstr) |
Write a message string to a serial port. | |
int | ReadSerialPort (int ttyFD, char *msgstr) |
Read data from a serial port. | |
void | FlushSerialPort (int ttyFD, int ntimes) |
Read data from a serial port. |
This is a set of simple functions for using serial (tty) ports in an ISIS client application. They encapsulate a number of useful basic functions for opening, closing, setting attributes, reading, writing, and flushing junk from serial ports, relieving writers of ISIS client applications from the pain of getting all the arcane fcntl and termios calls right.
|
Open a serial port.
|
|
Set the serial port attributes.
corresponding to speed=9600, databits=8, stopbits=2, parity=0. The port must have already been opened using OpenSerialPort().
|
|
Close an open serial port.
|
|
Write a message string to a serial port.
|
|
Read data from a serial port.
|
|
Read data from a serial port.
|