f8prog/include/firmware_handling.h

12 lines
249 B
C

typedef struct fbuffer_t fbuffer_t;
struct fbuffer_t
{
char* buffer;
int size;
};
/* reads in the firmware file into a buffer */
fbuffer_t* get_firmware_buffer(char* filename);
void write_firmware_buffer(char* filename, fbuffer_t* p_fb);