/* This function sets the nominal bus timing parameters for the specified CAN controller. The library provides default values for tseg1, tseg2, sjw and noSamp when freq is specified to one of the pre-defined constants, canBITRATE_xxx for classic CAN and canFD_BITRATE_xxx for CAN FD.  */
static canStatus LeafLightLibFuncSetBusParams(const CanHandle hnd, int32_t freq, uint32_t tseg1, uint32_t tseg2, uint32_t sjw, uint32_t noSamp, uint32_t syncmode)
/* This function sets the nominal bus timing parameters for the specified CAN controller. The library provides default values for tseg1, tseg2, sjw and noSamp when freq is specified to one of the pre-defined constants, canBITRATE_xxx for classic CAN and canFD_BITRATE_xxx for CAN FD.  */
static canStatus LeafLightLibFuncSetBusParams(const CanHandle hnd, int32_t freq, uint32_t tseg1, uint32_t tseg2, uint32_t sjw, uint32_t noSamp, uint32_t syncmode)
{
  canStatus result = canERR_NOTINITIALIZED;
  assert(leafLightLibFuncSetBusParamsPtr != NULL);
  assert(leafLightDllHandle != NULL);
  if ((leafLightLibFuncSetBusParamsPtr != NULL) && (leafLightDllHandle != NULL))
  {
    result = leafLightLibFuncSetBusParamsPtr(hnd, freq, tseg1, tseg2, sjw, noSamp, syncmode);
  }
  return result;
}