Headers Index Help Within this page: Functions Constants Variables
The functions in this group are used by the SerialPort server, spd and included in the C client interface library, libspd.a.
They are used by the interface library to validate serial port parameters prior to passing them to spd and within spd to validate serial port parameters in the configuration as well as to re-validate serial port parameters received from a client program.
SerialPort - serial connections for Java
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.
Copyright (C) 2005 Martin C Gregorie
Contact Martin Gregorie at martin@gregorie.org
#include "paramcheck.h"
char *paramcheck(int baud, int databits, char parity, int stopbits);
Sanity-check serial port parameters.
The function returns NULL if all values are acceptable and a pointer to a string containing the error message if errors were detected.
In: paramcheck.c
Return to the top
Public constants were not declared.
Public variables were not declared.
Return to the top