roboot/boot/xmodem.h File Reference


Detailed Description

XMODEM communication protocol.

License:
ROBOOT ver. 0.1.0 - Copyright (C) 2010 AGH UST
This file is part of the ROBOOT (RObus BOOTloader) project. ROBOOT is developed at the Department of Electronics, AGH University of Science and Technology in Krakow, Poland.

The ROBOOT project uses dual-licensing. You can use it for free for non-commercial, open source projects. See license.txt for details or visit project home page at http://www.wsn.agh.edu.pl/?q=roboot

THIS SOFTWARE IS PROVIDED 'AS IS'. NO WARRANTIES, WHETHER EXPRESS, IMPLIED OR STATUTORY, INCLUDING, BUT NOT LIMITED TO, IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE APPLY TO THIS SOFTWARE. AGH UST SHALL NOT, IN ANY CIRCUMSTANCES, BE LIABLE FOR SPECIAL, INCIDENTAL, OR CONSEQUENTIAL DAMAGES, FOR ANY REASON WHATSOEVER.

Author:
Artur Lipowski
Purpose:
ROBOOT
Compiler:
GCC
Hardware:
independent
Documented in:
doxygen
Comments:

Definition in file xmodem.h.

#include <stdint.h>

Go to the source code of this file.

Defines

#define XMODEM_BUFFER_SIZE   1024
#define XMODEM_TRANSMISSION_OK   0
#define XMODEM_ERROR_REMOTECANCEL   -1
#define XMODEM_ERROR_OUTOFSYNC   -2
#define XMODEM_ERROR_RETRYEXCEED   -3
#define XMODEM_ERROR_DATAPROCESSING   -4
#define XMODEM_TIMEOUT_DELAY   10
#define XMODEM_FLUSH_TIMEOUT   1
#define XMODEM_RETRY_LIMIT   6

Functions

void xmodemInit (uint8_t *buf, void(*sendbyte_func)(uint8_t c), int16_t(*getbyte_func)(void))
int8_t xmodemReceive (int8_t(*process_packet)(uint32_t size, uint8_t **new_buf))


Generated on Tue Mar 9 07:57:32 2010 for 'ROBOOT' by  doxygen 1.5.8