/* Compares two buffers in 24 bits data format.  */
TestStatus Buffercmp24bits(uint16_t *pBuffer1, uint16_t *pBuffer2, uint16_t BufferLength)
/* Compares two buffers in 24 bits data format.  */
TestStatus Buffercmp24bits(uint16_t *pBuffer1, uint16_t *pBuffer2, uint16_t BufferLength)
{
  while (BufferLength--)
  {
    if (*pBuffer1 != *pBuffer2)
    {
      if (*pBuffer1 != (*pBuffer2 & 0xFF00))
      {
        return FAILED;
      }
    }
    pBuffer1++;
    pBuffer2++;
  }
  return PASSED;
}