Zerocat Chipflasher  v0.4.3 (board-edition-1)
Flash free firmware to BIOS chips, kick the Manageability Engine.
bin2hexdigit.c
Go to the documentation of this file.
1 /******************************************************************/
28  unsigned char vbin,
29  unsigned char mode
30  )
31 {
32  if(vbin <= 9)
33  return(vbin + '0');
34  else {
35  switch(mode) {
36  case UPPER_CASE:
37  return('A' + vbin - 10);
38  default:
39  return('a' + vbin - 10);
40  }
41  }
42 }
UPPER_CASE
#define UPPER_CASE
Definition: common.h:46
bin2hexdigit
char bin2hexdigit(unsigned char vbin, unsigned char mode)
Definition: bin2hexdigit.c:27