rxdelay.h


Headers Index Help      Within this page: Functions Constants Variables


Overview

This function is used by the SerialPort server, spd and included in the C client interface library, libspd.a.

It calculates the time needed to receive a character.

SerialPort - serial connections for Java
Copyright (C) 2005 Martin C Gregorie

This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version.

This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.

You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.

Contact Martin Gregorie at martin@gregorie.org

Functions


rxdelay

#include "rxdelay.h"

int rxdelay(int baud,
            int databits,
            char parity,
            int stopbits,
            int txdelay,
            int debug);

Calculate the single character receive time out value. The parameters are:

It returns the time to receive one character, rounded up to the next millisecond.

In: rxdelay.c

Return to the top

Public constants were not declared.
Public variables were not declared.
Return to the top