git-svn-id: http://moon:8086/svn/software/trunk/libsrc/ihexparse@1 b431acfa-c32f-4a4a-93f1-934dc6c82436
34 lines
1.0 KiB
C
Executable File
34 lines
1.0 KiB
C
Executable File
/*************************************************************************/
|
|
/* ihexparse.h
|
|
/*************************************************************************/
|
|
|
|
/*************************************************************************/
|
|
/* Function prototypes
|
|
/*************************************************************************/
|
|
#ifndef IHEX_H
|
|
#define IHEX_H
|
|
|
|
typedef struct _sHEXREC
|
|
{
|
|
UINT8 length;
|
|
UINT16 dataStart;
|
|
UINT8 type;
|
|
UINT8 recData[255];
|
|
UINT8 checksum;
|
|
FILE *pFile;
|
|
#define HEXREC_MAXLEN 16
|
|
#define HEXREC_END 0
|
|
#define HEXREC_ERROR 0x80000000
|
|
} HEXREC;
|
|
|
|
/*************************************************************************/
|
|
/* Function prototypes
|
|
/*************************************************************************/
|
|
UINT32 HexCreate(HEXREC *pRec, char *name);
|
|
UINT32 HexOpen(HEXREC *pRec, char *name);
|
|
UINT32 HexReadRecord(HEXREC *pRec);
|
|
UINT8 HexCalcChecksum(HEXREC *pRec);
|
|
UINT32 HexWriteRecord(HEXREC *pRec);
|
|
UINT32 HexClose(HEXREC *pRec);
|
|
|
|
#endif /* IHEX_H */ |