123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354 |
- #ifndef __RJLHEX_H__
- #define __RJLHEX_H__
- #include <stdio.h>
- typedef struct _hex_record {
- unsigned char datlen;
- unsigned int addr;
- unsigned char type;
- unsigned char checksum;
- unsigned char data[0];
- } hex_record;
- typedef struct _hex_file {
- FILE *f;
- unsigned long addr;
- } hex_file;
- hex_file *hex_open(FILE *f);
- hex_record *hex_read(hex_file *f);
- #endif
|