Zerocat Chipflasher
v0.4.3 (board-edition-1)
Flash free firmware to BIOS chips, kick the Manageability Engine.
|
Objects that are needed to deal with the Motorola S-record format. More...
Classes | |
union | tag_typeS |
Motorola S-Record Type Infos. More... | |
Functions | |
void | MOT_mkline (struct tag_linedat *linedat, union tag_typeS *typeS, char *linebuf) |
This function wraps a binary payload into a Motorola S-record frame. More... | |
void | MOT_header (char *header, char *linebuf) |
This function invokes MOT_mkline(), but initializes parameters first with apropriate header data. More... | |
void | MOT_data (struct tag_linedat *linedat, char *linebuf) |
void | MOT_summary (unsigned int lines, char *linebuf) |
void | MOT_typeS_fillup (union tag_typeS *typeS) |
Generating and parsing a Motorola S-record line needs to have some specs available about the line in question. This function fills a struct, based on some data that can be provided during runtime, to have all specs available when needed. More... | |
char | MOT_rxline (struct tag_xcog0 *px, unsigned int *lines, int hexmode) |
Receive and parse a line in Motorola S-Record format. This func finishes successfully after having parsed the line's checksum data, thus not evaluating any line ending characters. More... | |
int | line_info (char file_format, int *linepos, char c, struct tag_hexdumpline *hexdumpline, struct tag_motline *motline, int hexmode) |
Helps to detect wether the byte in question is part of the line’s S-record frame or if it is part of the (binary) payload. More... | |
signed char | MOT_addrlen (char SREC_type) |
Return the address length in bytes that corresponds to a known S-record type. More... | |
int line_info | ( | char | file_format, |
int * | linepos, | ||
char | c, | ||
struct tag_hexdumpline * | hexdumpline, | ||
struct tag_motline * | motline, | ||
int | hexmode | ||
) |
Definition at line 38 of file line_info.c.
signed char MOT_addrlen | ( | char | SREC_type | ) |
Definition at line 38 of file MOT_addrlen.c.
void MOT_data | ( | struct tag_linedat * | linedat, |
char * | linebuf | ||
) |
void MOT_mkline | ( | struct tag_linedat * | linedat, |
union tag_typeS * | typeS, | ||
char * | linebuf | ||
) |
The result including line ending characters is stored in a buffer. The frame size (without control chars like STX/ETX) depends on the used address lenght, it is...
Inline 0xff blobs of that size (or less) should not be filtered in order to prevent additional transmission overhead when reading chip content.
char MOT_rxline | ( | struct tag_xcog0 * | px, |
unsigned int * | lines, | ||
int | hexmode | ||
) |
void MOT_typeS_fillup | ( | union tag_typeS * | typeS | ) |
Basically, we have two situations:
Zerocat’s note on JavaScript licenses: All JavaScript files of this page are free software. Generated files (dynsections.js, menu.js, menudata.js) carry doxygen’s GNU GPLv2 license header. File jquery.js is minified code but points to corresponding source files, which in turn provide their own license infos. In case the GNU LibreJS Browser Extension complains about these scripts being non-free – please whitelist them manually and reload the page.