/* This function checks the 8-bit BCD value specified by Value. If valid, the function converts it to an 8-bit value and returns it. Otherwise, return 0xff. */
UINT8 CheckAndConvertBcd8ToDecimal8(IN UINT8 Value)
/* This function checks the 8-bit BCD value specified by Value. If valid, the function converts it to an 8-bit value and returns it. Otherwise, return 0xff. */
UINT8 CheckAndConvertBcd8ToDecimal8(IN UINT8 Value)
{
  if ((Value < 0xa0) && ((Value & 0xf) < 0xa)) {
    return BcdToDecimal8 (Value);
  }
  return 0xff;
}