INTRODUCTION
Overview
Download and Install
Quick Start
Documentation
Publications

NONFRAMEWORK CODE
Driver Interfaces
Drivers
Libraries
Utilities

FRAMEWORK CODE
Interfaces
Components
Libraries
Utilities

Full Software Listings

DEVELOPER
Tutorials
Examples
Dev Guide
Dashboard

PEOPLE
Contributors
Users

SourceForge.net Logo
Project
Download
Mailing lists

 

         

serial.h

00001 /*
00002  * Orca-Robotics Project: Components for robotics 
00003  *               http://orca-robotics.sf.net/
00004  * Copyright (c) 2004-2009 Alex Brooks, Alexei Makarenko, Tobias Kaupp
00005  *
00006  * This distribution is licensed to you under the terms described in
00007  * the LICENSE file included in this distribution.
00008  *
00009  */
00010 /* AlexB: This code was copied directly from CARMEN, but may have diverged over time. */
00011 
00012 #ifndef SERIAL_H
00013 #define SERIAL_H
00014 
00015 #ifdef __cplusplus
00016 extern "C" {
00017 #endif
00018 
00019 int carmen_serial_connect(int *dev_fd, char *dev_name);
00020 
00021 void carmen_serial_configure(int dev_fd, int baudrate, char *parity);
00022 
00023 // Returns the number of characters available for reading from this fd.
00024 long carmen_serial_numChars(int dev_fd);
00025 
00026 int carmen_serial_ClearInputBuffer(int dev_fd);
00027 
00028 int carmen_serial_writen(int dev_fd, char *buf, int nChars);
00029 
00030 int carmen_serial_readn(int dev_fd, char *buf, int nChars);
00031 
00032 #ifdef __cplusplus
00033 }
00034 #endif
00035 
00036 #endif
 

Webmaster: Tobias Kaupp (tobasco at users.sourceforge.net)


Generated for Orca Robotics by  doxygen 1.4.5