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.
Definition in file xmodem.h.
Function Documentation
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).
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).
