/* Insert one byte raw data into the Raw Data FIFO. */
BOOLEAN RawFiFoInsertOneKey(TERMINAL_DEV *TerminalDevice, UINT8 Input)
/* Insert one byte raw data into the Raw Data FIFO. */
BOOLEAN RawFiFoInsertOneKey(TERMINAL_DEV *TerminalDevice, UINT8 Input)
{
  UINT8  Tail;
  Tail = TerminalDevice->RawFiFo->Tail;
  if (IsRawFiFoFull (TerminalDevice)) {
    return FALSE;
  }
  TerminalDevice->RawFiFo->Data[Tail] = Input;
  TerminalDevice->RawFiFo->Tail = (UINT8)((Tail + 1) % (RAW_FIFO_MAX_NUMBER + 1));
  return TRUE;
}