/* * 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 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 */