git-svn-id: http://moon:8086/svn/projects/HendiControl@165 fda53097-d464-4ada-af97-ba876c37ca34
46 lines
677 B
C
46 lines
677 B
C
/*
|
|
* To change this license header, choose License Headers in Project Properties.
|
|
* To change this template file, choose Tools | Templates
|
|
* and open the template in the editor.
|
|
*/
|
|
|
|
/*
|
|
* File: srec.h
|
|
* Author: jens
|
|
*
|
|
* Created on 22. Januar 2017, 14:10
|
|
*/
|
|
|
|
#ifndef SREC_H
|
|
#define SREC_H
|
|
|
|
#include <stdint.h>
|
|
|
|
typedef struct _ssrec_t
|
|
{
|
|
uint32_t addr;
|
|
uint16_t size;
|
|
uint8_t type;
|
|
uint8_t *data;
|
|
|
|
} srec_t;
|
|
|
|
enum srec_type
|
|
{
|
|
srec_err, srec_sob, srec_data, srec_rec, srec_eob
|
|
};
|
|
|
|
#ifdef __cplusplus
|
|
extern "C" {
|
|
#endif
|
|
|
|
int srec_decode(srec_t *pRec, uint8_t *pBuf, int buflen);
|
|
int srec_getline(uint8_t *pLine);
|
|
|
|
#ifdef __cplusplus
|
|
}
|
|
#endif
|
|
|
|
#endif /* SREC_H */
|
|
|