S.F.T. XMODEM Library  1.0
_XMODEM_ Struct Reference

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

Detailed Description

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;

Definition at line 119 of file xmodem.c.


The documentation for this struct was generated from the following file: