/* Converts an ascii char to an LCD digit.  */
static void Convert(uint8_t *c, Point_Typedef point, Apostrophe_Typedef apostrophe)
/* Converts an ascii char to an LCD digit.  */
static void Convert(uint8_t *c, Point_Typedef point, Apostrophe_Typedef apostrophe)
{
  uint16_t ch = 0, tmp = 0;
  uint8_t i = 0;
  if ((*c < 0x5B) & (*c > 0x40))
  {
    ch = LetterMap[*c - 0x41];
  }
  if ((*c < 0x3A) & (*c > 0x2F))
  {
    ch = NumberMap[*c - 0x30];
  }
  if (*c == 0x20)
  {
    ch =0x00;
  }
  if (point == POINT_ON)
  {
    ch |= 0x0004;
  }
  if (apostrophe == APOSTROPHE_ON)
  {
    ch |= 0x1000;
  }
  for (i = 0; i < 4; i++)
  {
    tmp = ch & mask[i];
    digit[i] =(uint8_t)(tmp >> shift[i]);
  }
}