xmodem.h File Reference

X-Modem serial transmission protocol. More...

#include <cfg/compiler.h>
#include <io/kfile.h>

Go to the source code of this file.

Functions

false bool xmodem_recv (KFile *ch, KFile *fd)
 Called to know if we want to abort data tranfer.
bool xmodem_send (KFile *ch, KFile *fd)
 Transmit some data using the XModem protocol.

Detailed Description

X-Modem serial transmission protocol.

Author:
Bernie Innocenti <bernie@codewiz.org>
Francesco Sacchi <batt@develer.com>

Definition in file xmodem.h.


Function Documentation

false bool xmodem_recv ( KFile ch,
KFile fd 
)

Called to know if we want to abort data tranfer.

Redefine to whatever you need.

Called to know if we want to abort data tranfer.

Parameters:
ch Channel to use for transfer
fd Destination file
Note:
This function allocates a large amount of stack (
See also:
XM_BUFSIZE).

Definition at line 90 of file xmodem.c.

bool xmodem_send ( KFile ch,
KFile fd 
)

Transmit some data using the XModem protocol.

Parameters:
ch Channel to use for transfer
fd Source file
Note:
This function allocates a large amount of stack for the XModem transfer buffer (
See also:
XM_BUFSIZE).

Definition at line 316 of file xmodem.c.