Zerocat Chipflasher  v0.4.3 (board-edition-1)
Flash free firmware to BIOS chips, kick the Manageability Engine.
Classes | Macros | Functions
common.h File Reference

This file is useful for both, kick and connect. More...

Go to the source code of this file.

Classes

struct  tag_motline
 
struct  tag_hexdumpline
 

Macros

#define VERSION   "v0.4.3"
 
#define ON   1
 
#define OFF   0
 
#define MENUWIDTH   95
 width of menu headlines (in chars) More...
 
#define HEX_DATA   0
 
#define BIN_DATA   1
 
#define LOWER_CASE   0
 
#define UPPER_CASE   1
 
#define BINMODE   0
 
#define HEXMODE   1
 

Functions

signed char hexdigit2bin (unsigned char hexdigit)
 Convert a hexadecimal digit into a binary value. More...
 
char bin2hexdigit (unsigned char vbin, unsigned char mode)
 
signed char MOT_addrlen (char SREC_type)
 Return the address length in bytes that corresponds to a known S-record type. More...
 
int MOT_ispayload (char file_format, int *linepos, char c, struct tag_motline *motline, int hexmode)
 

Detailed Description

Zerocat Chipflasher — Flash free firmware to BIOS chips, kick the Manageability Engine.

Copyright (C) 2015, 2016, 2017, 2018 Kai Mertens kmx@p.nosp@m.oste.nosp@m.o.net

The Zerocat Chipflasher is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.

The Zerocat Chipflasher is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.

You should have received a copy of the GNU General Public License along with this program. If not, see http://www.gnu.org/licenses/.

This file is part of the Zerocat Chipflasher.

Definition in file common.h.

Macro Definition Documentation

◆ BIN_DATA

#define BIN_DATA   1

Definition at line 44 of file common.h.

◆ BINMODE

#define BINMODE   0

Definition at line 47 of file common.h.

◆ HEX_DATA

#define HEX_DATA   0

Definition at line 43 of file common.h.

◆ HEXMODE

#define HEXMODE   1

Definition at line 48 of file common.h.

◆ LOWER_CASE

#define LOWER_CASE   0

Definition at line 45 of file common.h.

◆ MENUWIDTH

#define MENUWIDTH   95

Definition at line 42 of file common.h.

◆ OFF

#define OFF   0

Definition at line 41 of file common.h.

◆ ON

#define ON   1

Definition at line 40 of file common.h.

◆ UPPER_CASE

#define UPPER_CASE   1

Definition at line 46 of file common.h.

◆ VERSION

#define VERSION   "v0.4.3"

Version according to doc/version-history.md. Should match PROJECT_NUMBER tags in *.orig files in doc/doxygen-resources/.

Definition at line 38 of file common.h.

Function Documentation

◆ bin2hexdigit()

char bin2hexdigit ( unsigned char  vbin,
unsigned char  mode 
)

Definition at line 27 of file bin2hexdigit.c.

◆ hexdigit2bin()

signed char hexdigit2bin ( unsigned char  hexdigit)
Parameters
hexdigitHex value to convert.
Returns
Returns the decimal binary value, or -1 if hexdigit was not an hexadecimal digit.

Definition at line 39 of file hexdigit2bin.c.

◆ MOT_ispayload()

int MOT_ispayload ( char  file_format,
int *  linepos,
char  c,
struct tag_motline motline,
int  hexmode 
)