Main Page   Modules   Data Structures   File List   Data Fields   Globals  

stxetx.c File Reference

STX/ETX Packet Protocol Implementation Library. More...

#include "global.h"
#include "stxetx.h"

Go to the source code of this file.

Functions

void stxetxInit (void(*dataout_func)(unsigned char data))
 Initialize STX/ETX packet protocol library.

void stxetxSend (unsigned char status, unsigned char type, unsigned char datalength, unsigned char *dataptr)
 Send/Create STX/ETX packet.

unsigned char stxetxProcess (cBuffer *rxBuffer)
 Process a buffer containing STX/ETX packets.

unsigned char stxetxGetRxPacketStatus (void)
 Returns the received packet's status.

unsigned char stxetxGetRxPacketType (void)
 Returns the received packet's type.

unsigned char stxetxGetRxPacketDatalength (void)
 Returns the received packet's datalength.

unsigned char * stxetxGetRxPacketData (void)
 Returns pointer to the received packet's data.


Variables

unsigned char stxetxRxPacket [STXETX_MAXRXPACKETSIZE]


Detailed Description

STX/ETX Packet Protocol Implementation Library.

Definition in file stxetx.c.


Generated on Sun Feb 22 19:12:32 2004 for Procyon AVRlib by doxygen1.3-rc2