/* Remove one pre-fetched key out of the Raw Data FIFO. */
BOOLEAN RawFiFoRemoveOneKey(TERMINAL_DEV *TerminalDevice, UINT8 *Output)
/* Remove one pre-fetched key out of the Raw Data FIFO. */
BOOLEAN RawFiFoRemoveOneKey(TERMINAL_DEV *TerminalDevice, UINT8 *Output)
{
  UINT8  Head;
  Head = TerminalDevice->RawFiFo->Head;
  if (IsRawFiFoEmpty (TerminalDevice)) {
    *Output = 0;
    return FALSE;
  }
  *Output = TerminalDevice->RawFiFo->Data[Head];
  TerminalDevice->RawFiFo->Head = (UINT8)((Head + 1) % (RAW_FIFO_MAX_NUMBER + 1));
  return TRUE;
}