/* Opens a CAN channel and returns a handle which is used in subsequent calls.  */
static CanHandle LeafLightLibFuncOpenChannel(int32_t channel, int32_t flags)
/* Opens a CAN channel and returns a handle which is used in subsequent calls.  */
static CanHandle LeafLightLibFuncOpenChannel(int32_t channel, int32_t flags)
{
  canHandle result = (canHandle)canERR_NOTINITIALIZED;
  assert(leafLightLibFuncOpenChannelPtr != NULL);
  assert(leafLightDllHandle != NULL);
  if ((leafLightLibFuncOpenChannelPtr != NULL) && (leafLightDllHandle != NULL))
  {
    result = leafLightLibFuncOpenChannelPtr(channel, flags);
  }
  return result;
}