/* Reads a message from the receive buffer. If no message is available, the function returns immediately with return code canERR_NOMSG.  */
static canStatus LeafLightLibFuncRead(const CanHandle hnd, int32_t *id, void *msg, uint32_t *dlc, uint32_t *flag, uint32_t *time)
/* Reads a message from the receive buffer. If no message is available, the function returns immediately with return code canERR_NOMSG.  */
static canStatus LeafLightLibFuncRead(const CanHandle hnd, int32_t *id, void *msg, uint32_t *dlc, uint32_t *flag, uint32_t *time)
{
  canStatus result = canERR_NOTINITIALIZED;
  assert(leafLightLibFuncReadPtr != NULL);
  assert(leafLightDllHandle != NULL);
  if ((leafLightLibFuncReadPtr != NULL) && (leafLightDllHandle != NULL))
  {
    result = leafLightLibFuncReadPtr(hnd, id, msg, dlc, flag, time);
  }
  return result;
}