git-svn-id: http://moon:8086/svn/projects/HendiControl@165 fda53097-d464-4ada-af97-ba876c37ca34
This commit is contained in:
2019-03-30 01:04:04 +00:00
parent 54ac3a2834
commit ef0daf1143
8 changed files with 0 additions and 0 deletions
+45
View File
@@ -0,0 +1,45 @@
/*
* 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 */