Zerocat Chipflasher  v0.4.3 (board-edition-1)
Flash free firmware to BIOS chips, kick the Manageability Engine.
Functions
hexdigit2bin.c File Reference

Go to the source code of this file.

Functions

signed char hexdigit2bin (unsigned char hexdigit)
 Convert a hexadecimal digit into a binary value. More...
 

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
Copyright (C) 2016 Tomás Zerolo tomas.nosp@m.@tux.nosp@m.team..nosp@m.de

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 hexdigit2bin.c.

Function Documentation

◆ 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.