/*

  Zerocat Chipflasher --- Flash free firmware, kick the Management Engine.

  Copyright (C) 2026  Kai Mertens <kmx@posteo.net>

  This file is part of Zerocat Chipflasher.

  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.

  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 Zerocat Chipflasher.
  If not, see <http://www.gnu.org/licenses/>.


***/


# ifndef __BIN2HEXDIGIT_H__
#   define __BIN2HEXDIGIT_H__


#   define UPPER_CASE          0x20     // will be used as a complemented bitmask
#   define LOWER_CASE          0x00
#   define CASE_MODE           UPPER_CASE

signed char bin2hexdigit (
  unsigned char vbin,
  unsigned char mode
);


# endif   // __BIN2HEXDIGIT_H__
