Main Page | Modules | Data Structures | Directories | File List | Data Fields | Globals | Related Pages

xmodem.c File Reference

Detailed Description

Definition in file xmodem.c.

#include <string.h>
#include "rprintf.h"
#include "timer.h"
#include "xmodem.h"

Go to the source code of this file.


#define XMODEM_BUFFER_SIZE   1024


void xmodemInit (void(*sendbyte_func)(unsigned char c), int(*getbyte_func)(void))
 initialize xmodem stream I/O routines
long xmodemReceive (int(*write)(unsigned char *buffer, int size))
 xmodem receive
long xmodemTransmit (int(*read)(unsigned char *buffer, int size))
 xmodem transmit
uint16_t crc_xmodem_update (uint16_t crc, uint8_t data)
int xmodemCrcCheck (int crcflag, const unsigned char *buffer, int size)
 xmodem CRC/checksum error checking
int xmodemInTime (unsigned short timeout)
 get incoming character (wait for timeout)
void xmodemInFlush (void)
 flush incoming character stream

Generated on Sun Oct 29 03:41:09 2006 for Procyon AVRlib by  doxygen 1.4.2