Main Page | Modules | Data Structures | Directories | File List | Data Fields | Globals | Related Pages

# xmodem.h File Reference

## Detailed Description

Definition in file xmodem.h.

Go to the source code of this file.

## Defines
#define | SOH 0x01
#define | STX 0x02
#define | EOT 0x04
#define | ACK 0x06
#define | NAK 0x15
#define | CAN 0x18
#define | CTRLZ 0x1A
#define | XMODEM_TIMEOUT_DELAY 1000
#define | XMODEM_RETRY_LIMIT 16
#define | XMODEM_ERROR_REMOTECANCEL -1
#define | XMODEM_ERROR_OUTOFSYNC -2
#define | XMODEM_ERROR_RETRYEXCEED -3
## 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
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