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

S3C24xxPkg/vivi/drivers/serial/xmodem.c File Reference

#include "config.h"
#include "machine.h"
#include "serial.h"
#include "priv_data.h"
#include <types.h>

Go to the source code of this file.

Defines

#define BLOCK_SIZE   128
#define RETRIES   20
#define SOH   0x01
#define ACK   0x06
#define NAK   0x15
#define CAN   0x18
#define EOT   0x04
#define GET_BYTE_TIMEOUT   10000000

Enumerations

enum  { SAC_SEND_NAK = 0, SAC_SENT_NAK = 1, SAC_PAST_START_NAK = 2 }

Functions

int get_record (void)
__u8 get_byte (void)
void bufputs (char *s)
void reset_debugbuf (void)
__u32 xmodem_receive (char *dldaddr, size_t len)

Variables

char * xmodem_errtxt = NULL
int get_byte_err = 0
__u8 volatile rbuffer [BLOCK_SIZE]
char debugbuf [4096]
int db_idx = 0

Define Documentation

#define ACK   0x06

Definition at line 31 of file xmodem.c.

#define BLOCK_SIZE   128

Definition at line 26 of file xmodem.c.

#define CAN   0x18

Definition at line 33 of file xmodem.c.

#define EOT   0x04

Definition at line 34 of file xmodem.c.

#define GET_BYTE_TIMEOUT   10000000

Definition at line 36 of file xmodem.c.

#define NAK   0x15

Definition at line 32 of file xmodem.c.

#define RETRIES   20

Definition at line 27 of file xmodem.c.

#define SOH   0x01

Definition at line 30 of file xmodem.c.


Enumeration Type Documentation

anonymous enum
Enumerator:
SAC_SEND_NAK 
SAC_SENT_NAK 
SAC_PAST_START_NAK 

Definition at line 47 of file xmodem.c.


Function Documentation

void bufputs ( char *  s)

Definition at line 62 of file xmodem.c.

__u8 get_byte ( void  )

Definition at line 218 of file xmodem.c.

int get_record ( void  )

Definition at line 161 of file xmodem.c.

void reset_debugbuf ( void  )

Definition at line 75 of file xmodem.c.

__u32 xmodem_receive ( char *  dldaddr,
size_t  len 
)

Definition at line 81 of file xmodem.c.


Variable Documentation

int db_idx = 0

Definition at line 60 of file xmodem.c.

char debugbuf[4096]

Definition at line 59 of file xmodem.c.

int get_byte_err = 0

Definition at line 40 of file xmodem.c.

__u8 volatile rbuffer[BLOCK_SIZE]

Definition at line 41 of file xmodem.c.

char* xmodem_errtxt = NULL

Definition at line 39 of file xmodem.c.

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