Initial import
git-svn-id: http://moon:8086/svn/software/trunk/libsrc/ihexparse@1 b431acfa-c32f-4a4a-93f1-934dc6c82436
This commit is contained in:
Executable
+34
@@ -0,0 +1,34 @@
|
||||
/*************************************************************************/
|
||||
/* 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 */
|
||||
Reference in New Issue
Block a user