srecLoad.h
资源名称:bcm4702.rar [点击查看]
上传用户:yuanda199
上传日期:2022-06-26
资源大小:412k
文件大小:1k
源码类别:
VxWorks
开发平台:
C/C++
- /*
- * srecLoad
- *
- * by Curt McDowell, 09-05-99
- */
- #ifndef _SRECLOAD_H
- #define _SRECLOAD_H
- #include <stdio.h>
- /*
- * Return codes for srecLoad()
- */
- #define SREC_ERROR_NONE -0 /* Success */
- #define SREC_ERROR_FORMAT -1 /* File format error */
- #define SREC_ERROR_CHECKSUM -2 /* Checksum mismatch */
- #define SREC_ERROR_NRECORDS -3 /* Incorrect number of records */
- #define SREC_ERROR_TRUNC -4 /* Truncated line */
- #define SREC_ERROR_ADDR -5 /* Address out of range */
- extern int srecLoad(FILE *fp, char *buf, int bufLen, int *entry);
- extern char *srecErrmsg(int code);
- #endif /* _SRECLOAD_H */