#include <stdio.h>
#include <assert.h>
#include <stdlib.h>
#include "nsutil.h"
#include "nsser.h"
Go to the source code of this file.
Functions | |
ser_t | openSerialPort (const char *devname, unsigned int BaudRate) |
serial port communication for eeg devices NeuroServer | |
int | readSerial (ser_t s, char *buf, int size) |
int | writeSerial (ser_t s, char *buf, int size) |
int | set_port_options (int fd, unsigned int BaudRate) |
|
serial port communication for eeg devices NeuroServer A collection of programs to translate between EEG data and TCP network messages. This is a part of the OpenEEG project, see http://openeeg.sf.net for details. Copyright (C) 2003, 2004 Rudi Cilibrasi (cilibrar@ofb.net) This library is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation; either version 2.1 of the License, or (at your option) any later version. This library 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 Lesser General Public License for more details. You should have received a copy of the GNU Lesser General Public License along with this library; if not, write to the Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA Definition at line 33 of file nsser.c. References rexit(), rprintf(), ser_t, and set_port_options(). Referenced by main(). |
|
Returns number of bytes read, or -1 for error Definition at line 124 of file nsser.c. References buf. Referenced by main(). |
|
sets baudrate and other port options (unix only) Definition at line 144 of file nsser.c. Referenced by openSerialPort(). |
|
Definition at line 135 of file nsser.c. References buf. Referenced by decodeCommand(). |