BeRTOS
Functions
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.

Defines

#define XMODEM_CHECK_ABORT   (false)
 Called to know if we want to abort data tranfer.

Functions

bool xmodem_recv (KFile *ch, KFile *fd)
 Receive a file using the XModem protocol.
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.


Define Documentation

#define XMODEM_CHECK_ABORT   (false)

Called to know if we want to abort data tranfer.

Redefine to whatever you need.

Definition at line 56 of file xmodem.h.


Function Documentation

bool xmodem_recv ( KFile ch,
KFile fd 
)

Receive a file using the XModem protocol.

Parameters:
chChannel to use for transfer
fdDestination 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:
chChannel to use for transfer
fdSource 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.