AnsweredAssumed Answered

DSC - generated BLDC support file error

Question asked by Ben on Oct 15, 2018
Latest reply on Oct 29, 2018 by Ben

While adding the MC_BLDCHallSensor from the component library I got a C error message:

illegal use of 'inline'    MC1.h     -    C/C++ Problem

The error ref. to generated file:

*
** ===================================================================
**     Method      :  MC1_bldchsCommHandlerComp (component MC_BldcHallSensor)
**     Description :
**         This function returns pointer on structure from the
**         commutation table. The table index is given by HallSensors
**         value. The table values represent which transistor is under
**         PWM control (enabled/disabled, swap/no swap).
**     Parameters  :
**         NAME            - DESCRIPTION
**         HallSensors     - State of Hall Sensors.
**       * pCommutationTable - Pointer to
**                           Commutation Table.
**     Returns     :
**         ---             - State of transistors (enabled/disabled,
**                           swap/no swap).
** ===================================================================
*/
#define bldchsCommHandlerComp(HallSensors, pCommutationTable) MC1_bldchsCommHandlerComp(HallSensors, pCommutationTable)
inline pwm_sChannelControl MC1_bldchsCommHandlerComp(UWord16 HallSensors,const pwm_sChannelControl *pCommutationTable)
{
  return(pCommutationTable[HallSensors]);
}
/* END MC1. */

 

What is the meaning of this error and how can I fix it?

 

Please advise

Benny

Outcomes