xmodem.c File Reference

X-Modem serial transmission protocol (implementation). More...

#include "xmodem.h"
#include <cfg/debug.h>
#include "cfg/cfg_xmodem.h"
#include <drv/ser.h>
#include <algo/crc.h>
#include <string.h>

Go to the source code of this file.


Defines

#define XM_BUFSIZE   128
 128 bytes of block buffer
Protocol control codes
#define XM_SOH   0x01
 Start Of Header (128-byte block).
#define XM_STX   0x02
 Start Of Header (1024-byte block).
#define XM_EOT   0x04
 End Of Transmission.
#define XM_ACK   0x06
 Acknowledge block.
#define XM_NAK   0x15
 Negative Acknowledge.
#define XM_C   0x43
 Request CRC-16 transmission.
#define XM_CAN   0x18
 CANcel transmission.

Detailed Description

X-Modem serial transmission protocol (implementation).

Supports the CRC-16 and 1K-blocks variants of the standard.

See also:
ymodem.txt for the protocol description.
Version:
Id
xmodem.c 1917 2008-11-10 14:44:52Z batt

Author:
Bernie Innocenti <bernie@codewiz.org>

Francesco Sacchi <batt@develer.com>

Definition in file xmodem.c.