Main Page | Class Hierarchy | Alphabetical List | Data Structures | Directories | File List | Data Fields | Globals

srec.h

Go to the documentation of this file.
00001 /*
00002  *  Copyright (C) 1998, 1999, Kekoa Proudfoot.  All Rights Reserved.
00003  *
00004  *  License to copy, use, and modify this software is granted provided that
00005  *  this notice is retained in any copies of any part of this software.
00006  *
00007  *  The author makes no guarantee that this software will compile or
00008  *  function correctly.  Also, if you use this software, you do so at your
00009  *  own risk.
00010  *
00011  *  Kekoa Proudfoot
00012  *  kekoa@graphics.stanford.edu
00013  *  10/3/98
00014  */
00015 
00016 /* S-record routines */
00017 
00018 /* srec.h */
00019 
00020 typedef struct {
00021     unsigned char type;
00022     unsigned long addr;
00023     unsigned char count;
00024     unsigned char data[32];
00025 } srec_t;
00026 
00027 #define S_OK               0
00028 #define S_NULL            -1
00029 #define S_INVALID_HDR     -2
00030 #define S_INVALID_CHAR    -3
00031 #define S_INVALID_TYPE    -4
00032 #define S_TOO_SHORT       -5
00033 #define S_TOO_LONG        -6
00034 #define S_INVALID_CKSUM   -7
00035 
00036 extern int srec_decode(srec_t *srec, char *line);
00037 extern int srec_encode(srec_t *srec, char *line);
00038 

Generated on Fri Feb 25 08:02:40 2005 for brickos by  doxygen 1.3.9.1