/* Reads a CAN message from the receive queue of a PCAN Channel.  */
static TPCANStatus PCanUsbLibFuncRead(TPCANHandle Channel, TPCANMsg *MessageBuffer, TPCANTimestamp *TimestampBuffer)
/* Reads a CAN message from the receive queue of a PCAN Channel.  */
static TPCANStatus PCanUsbLibFuncRead(TPCANHandle Channel, TPCANMsg *MessageBuffer, TPCANTimestamp *TimestampBuffer)
{
  TPCANStatus result = PCAN_ERROR_INITIALIZE;
  assert(pCanUsbLibFuncReadPtr != NULL);
  assert(pCanUsbDllHandle != NULL);
  if ((pCanUsbLibFuncReadPtr != NULL) && (pCanUsbDllHandle != NULL))
  {
    result = pCanUsbLibFuncReadPtr(Channel, MessageBuffer, TimestampBuffer);
  }
  return result;
}