xmodem.h File Reference
X-Modem serial transmission protocol. More...
#include <cfg/compiler.h>#include <kern/kfile.h>Go to the source code of this file.
|
| |
| #define | XMODEM_CHECK_ABORT (false) |
| Called to know if we want to abort data tranfer. | |
| #define | XMODEM_PROGRESS(msg,...) kprintf(msg, ## __VA_ARGS__) |
| Called to printf progress messages. | |
| 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.
- Version:
- Id
- xmodem.h 2933 2009-09-14 10:44:12Z asterix
Definition in file xmodem.h.
Define Documentation
| #define XMODEM_CHECK_ABORT (false) |
| #define XMODEM_PROGRESS | ( | msg, | |||
| ... | ) | kprintf(msg, ## __VA_ARGS__) |
Function Documentation
Receive a file using the XModem protocol.
- 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).
