S.F.T. XMODEM Library
1.0
|
Structure that identifies the XMODEM communication state. More...
Data Fields | |
SERIAL_TYPE | ser |
identifies the serial connection, data type is OS-dependent | |
FILE_TYPE | file |
identifies the file handle, data type is OS-dependent | |
union { | |
XMODEM_BUF xbuf | |
XMODEM CHECKSUM buffer. | |
XMODEMC_BUF xcbuf | |
XMODEM CRC buffer. | |
} | buf |
union of both buffers, total length 133 bytes | |
unsigned char | bCRC |
non-zero for CRC, zero for checksum |
Structure that identifies the XMODEM communication state.
typedef struct _XMODEM_ { SERIAL_TYPE ser; // identifies the serial connection, data type is OS-dependent FILE_TYPE file; // identifies the file handle, data type is OS-dependent union { XMODEM_BUF xbuf; // XMODEM CHECKSUM buffer XMODEMC_BUF xcbuf; // XMODEM CRC buffer } buf; // union of both buffers, total length 133 bytes unsigned char bCRC; // non-zero for CRC, zero for checksum } XMODEM;