writeraw.c File Reference

#include <stdlib.h>
#include <stdio.h>
#include <unistd.h>
#include "sportident.h"

Go to the source code of this file.

Functions

int WriteRaw (const si_station *station, unsigned char *buffer, int len)
 This writes to the station the exact data you send it.

Detailed Description

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

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 implemention of the function to write directly to the device

Definition in file writeraw.c.


Function Documentation

int WriteRaw ( const si_station station,
unsigned char *  buffer,
int  len 
)

This writes to the station the exact data you send it.

it prepends '0xff 0x02 0x02' and appends the crc and '0x03' must

Parameters:
station the device to write to
buffer the buffer to be written to device
len length of buffer to write
Returns:
number of bytes written.
Todo:
make sure legacy mode adds delimeters

Definition at line 36 of file writeraw.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