/* This function sends a CAN message. The call returns immediately after queuing the message to the driver.  */
static canStatus LeafLightLibFuncWrite(const CanHandle hnd, int32_t id, void *msg, uint32_t dlc, uint32_t flag)
/* This function sends a CAN message. The call returns immediately after queuing the message to the driver.  */
static canStatus LeafLightLibFuncWrite(const CanHandle hnd, int32_t id, void *msg, uint32_t dlc, uint32_t flag)
{
  canStatus result = canERR_NOTINITIALIZED;
  assert(leafLightLibFuncWritePtr != NULL);
  assert(leafLightDllHandle != NULL);
  if ((leafLightLibFuncWritePtr != NULL) && (leafLightDllHandle != NULL))
  {
    result = leafLightLibFuncWritePtr(hnd, id, msg, dlc, flag);
  }
  return result;
}