63 int read_hex_string(const char *src, uint8_t *buffer, int maxlen)
Parses a hex text string 'src' of at max 'maxlen' characters, decodes it into 'buffer'.
Definition: sim_hex.c:57
struct ihex_chunk_t * ihex_chunk_p
void hdump(const char *w, uint8_t *b, size_t l)
Hex dump from pointer 'b' for 'l' bytes with string prefix 'w'.
Definition: sim_hex.c:28
uint32_t baseaddr
offset it started at in the .hex file
Definition: sim_hex.h:41
uint8_t * data
read data
Definition: sim_hex.h:42
struct ihex_chunk_t ihex_chunk_t
A .hex file chunk (base address + size)
A .hex file chunk (base address + size)
Definition: sim_hex.h:39
int read_ihex_chunks(const char *fname, ihex_chunk_p *chunks)
Read a .hex file, detects the various different chunks in it from their starting addresses and alloca...
Definition: sim_hex.c:174
uint32_t size
read data size
Definition: sim_hex.h:43
uint8_t * read_ihex_file(const char *fname, uint32_t *dsize, uint32_t *start)
Reads IHEX file 'fname', puts it's decoded size in *'dsize' and returns a newly allocated buffer with...
Definition: sim_hex.c:97