roboot/boot/xmodem.c File Reference
Detailed Description
Implementation of the 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.c.
#include "xmodem.h"
#include "roboot.h"
#include "roboot_if_comm.h"
Go to the source code of this file.
|
Defines |
#define | SOH 0x01 |
#define | STX 0x02 |
#define | EOT 0x04 |
#define | ACK 0x06 |
#define | NAK 0x15 |
#define | CAN 0x18 |
#define | CTRLZ 0x1A |
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)) |