EDK2 doxygen online documents - Firmware Encoding Index 1
EDK2 doxygen online documents - Firmware Encoding Index
Defines | Functions

S3C24xxPkg/Sec/include/ymodem.h File Reference

Go to the source code of this file.

Defines

#define PACKET_SEQNO_INDEX   (1)
#define PACKET_SEQNO_COMP_INDEX   (2)
#define PACKET_HEADER   (3)
#define PACKET_TRAILER_CRC   (2)
#define PACKET_TRAILER   (1)
#define PACKET_OVERHEAD_CRC   (PACKET_HEADER + PACKET_TRAILER_CRC)
#define PACKET_OVERHEAD   (PACKET_HEADER + PACKET_TRAILER)
#define PACKET_SIZE   (128)
#define PACKET_1K_SIZE   (1024)
#define FILE_NAME_LENGTH   (255)
#define FILE_SIZE_LENGTH   (16)
#define SOH   (0x01)
#define STX   (0x02)
#define EOT   (0x04)
#define ACK   (0x06)
#define NAK   (0x15)
#define CAN   (0x18)
#define CRC   (0x43)
#define INITIAL_TIMEOUT   (15)
#define CRC_TIMEOUT   (3)
#define NAK_TIMEOUT   (10)
#define MAX_CRC_TRIES   (5)
#define MAX_ERRORS   (5)

Functions

int ymodem_receive (char *buf, unsigned int length)

Define Documentation

#define ACK   (0x06)

Definition at line 54 of file ymodem.h.

#define CAN   (0x18)

Definition at line 56 of file ymodem.h.

#define CRC   (0x43)

Definition at line 57 of file ymodem.h.

#define CRC_TIMEOUT   (3)

Definition at line 60 of file ymodem.h.

#define EOT   (0x04)

Definition at line 53 of file ymodem.h.

#define FILE_NAME_LENGTH   (255)

Definition at line 47 of file ymodem.h.

#define FILE_SIZE_LENGTH   (16)

Definition at line 48 of file ymodem.h.

#define INITIAL_TIMEOUT   (15)

Definition at line 59 of file ymodem.h.

#define MAX_CRC_TRIES   (5)

Definition at line 66 of file ymodem.h.

#define MAX_ERRORS   (5)

Definition at line 71 of file ymodem.h.

#define NAK   (0x15)

Definition at line 55 of file ymodem.h.

#define NAK_TIMEOUT   (10)

Definition at line 61 of file ymodem.h.

#define PACKET_1K_SIZE   (1024)

Definition at line 45 of file ymodem.h.

#define PACKET_HEADER   (3)

Definition at line 39 of file ymodem.h.

#define PACKET_OVERHEAD   (PACKET_HEADER + PACKET_TRAILER)

Definition at line 43 of file ymodem.h.

#define PACKET_OVERHEAD_CRC   (PACKET_HEADER + PACKET_TRAILER_CRC)

Definition at line 42 of file ymodem.h.

#define PACKET_SEQNO_COMP_INDEX   (2)

Definition at line 37 of file ymodem.h.

#define PACKET_SEQNO_INDEX   (1)

Definition at line 36 of file ymodem.h.

#define PACKET_SIZE   (128)

Definition at line 44 of file ymodem.h.

#define PACKET_TRAILER   (1)

Definition at line 41 of file ymodem.h.

#define PACKET_TRAILER_CRC   (2)

Definition at line 40 of file ymodem.h.

#define SOH   (0x01)

Definition at line 51 of file ymodem.h.

#define STX   (0x02)

Definition at line 52 of file ymodem.h.


Function Documentation

int ymodem_receive ( char *  buf,
unsigned int  length 
)

Definition at line 142 of file ymodem.c.

 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Defines