Definition in file xmodem.c.
#include <string.h>
#include "rprintf.h"
#include "timer.h"
#include "xmodem.h"
Go to the source code of this file.
Defines | |
| #define | XMODEM_BUFFER_SIZE 1024 |
Functions | |
| void | xmodemInit (void(*sendbyte_func)(unsigned char c), int(*getbyte_func)(void)) |
| initialize xmodem stream I/O routines | |
| long | xmodemReceive (int(*write)(unsigned char *buffer, int size)) |
| xmodem receive | |
| long | xmodemTransmit (int(*read)(unsigned char *buffer, int size)) |
| xmodem transmit | |
| uint16_t | crc_xmodem_update (uint16_t crc, uint8_t data) |
| int | xmodemCrcCheck (int crcflag, const unsigned char *buffer, int size) |
| xmodem CRC/checksum error checking | |
| int | xmodemInTime (unsigned short timeout) |
| get incoming character (wait for timeout) | |
| void | xmodemInFlush (void) |
| flush incoming character stream | |
1.4.2