/* Clarify whether Raw Data FIFO buffer is full. */
BOOLEAN IsRawFiFoFull(TERMINAL_DEV *TerminalDevice)
/* Clarify whether Raw Data FIFO buffer is full. */
BOOLEAN IsRawFiFoFull(TERMINAL_DEV *TerminalDevice)
{
  UINT8  Tail;
  UINT8  Head;
  Tail = TerminalDevice->RawFiFo->Tail;
  Head = TerminalDevice->RawFiFo->Head;
  if (((Tail + 1) % (RAW_FIFO_MAX_NUMBER + 1)) == Head) {
    return TRUE;
  }
  return FALSE;
}