openstation.c File Reference

#include <stdlib.h>
#include <stdio.h>
#include <fcntl.h>
#include <termios.h>
#include "sportident.h"

Go to the source code of this file.

Functions

int OpenStation (const char *fd, si_station *station)
 A function to open a station connected to a tty device and initilize a si_control struct.

Detailed Description

Author:
Dylan (smellyfis) Thies <dylan.thies@lostorienteerer.net>
Version:
0.0.3

LICENSE

This Program/Library is open source software; you may redistribute and/or modify it as long as the resulting program/library is under a FOSS license or with the approval of the authors or owning group

This Program is distributed in hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE

DESCRIPTION

This is a file is the implementtion of a OpenStation().

Definition in file openstation.c.


Function Documentation

int OpenStation ( const char *  fd,
si_station station 
)

A function to open a station connected to a tty device and initilize a si_control struct.

Be careful you must call MakeStation() on station or you must properly malloc() it.

See also:
malloc(), MakeStation()
Parameters:
fd a character string of the fully qualified path
station a pointer to a si_station struct to be saved to or initilized
Returns:
integer if success -1 on failure
Todo:

add more information to failure cases

implement test to check baud rate and extended mode

populate the rest of station

Definition at line 39 of file openstation.c.

All Data Structures Files Functions Variables Enumerations Defines
Generated on Sat May 22 20:28:32 2010 for LibSportIdent by  doxygen 1.6.3