Zerocat Chipflasher  v0.4.3 (board-edition-1)
Flash free firmware to BIOS chips, kick the Manageability Engine.
common.h
Go to the documentation of this file.
1 /******************************************************************/
30 #ifndef __COMMON_H__
31 #define __COMMON_H__
32 
38 #define VERSION "v0.4.3"
39 
40 #define ON 1
41 #define OFF 0
42 #define MENUWIDTH 95
43 #define HEX_DATA 0
44 #define BIN_DATA 1
45 #define LOWER_CASE 0
46 #define UPPER_CASE 1
47 #define BINMODE 0
48 #define HEXMODE 1
49 
50 struct tag_motline {
51  int addrlen;
52  int linelen;
55  int payload;
56  int length;
57  unsigned char checksum;
58  unsigned char chksum_rx;
59 };
60 
64  char is_first;
65 };
66 
67 signed char hexdigit2bin (
68  unsigned char hexdigit
69  );
70 
71 char bin2hexdigit(
72  unsigned char vbin,
73  unsigned char mode
74  );
75 
76 signed char MOT_addrlen (
77  char SREC_type
78  );
79 
80 int MOT_ispayload(
81  char file_format,
82  int *linepos,
83  char c,
84  struct tag_motline *motline,
85  int hexmode
86  );
87 
88 
89 #endif
90 /* __COMMON_H__ */
91 
tag_hexdumpline::is_comment_line
char is_comment_line
Definition: common.h:62
tag_motline::payload_orig
int payload_orig
Definition: common.h:53
MOT_ispayload
int MOT_ispayload(char file_format, int *linepos, char c, struct tag_motline *motline, int hexmode)
tag_motline::pos_addrlsb
int pos_addrlsb
Definition: common.h:54
MOT_addrlen
signed char MOT_addrlen(char SREC_type)
Return the address length in bytes that corresponds to a known S-record type.
Definition: MOT_addrlen.c:38
bin2hexdigit
char bin2hexdigit(unsigned char vbin, unsigned char mode)
Definition: bin2hexdigit.c:27
tag_motline::chksum_rx
unsigned char chksum_rx
Definition: common.h:58
tag_motline
Definition: common.h:50
tag_hexdumpline::is_first
char is_first
Definition: common.h:64
hexdigit2bin
signed char hexdigit2bin(unsigned char hexdigit)
Convert a hexadecimal digit into a binary value.
Definition: hexdigit2bin.c:39
tag_motline::addrlen
int addrlen
Definition: common.h:51
tag_motline::payload
int payload
Definition: common.h:55
tag_motline::checksum
unsigned char checksum
Definition: common.h:57
tag_motline::length
int length
Definition: common.h:56
tag_motline::linelen
int linelen
Definition: common.h:52
tag_hexdumpline::is_charset_print
char is_charset_print
Definition: common.h:63
tag_hexdumpline
Definition: common.h:61