Jump to main content

##

# 3.3.23.7 tmcRef_Parameters_s Struct

## C

    typedef struct
    {
    <#if ( MCPMSMFOC_CONTROL_TYPE == 'SPEED_LOOP' ) >
        float32_t minimumRpm;               /* Minimum RPM */
        float32_t maximumRpm;               /* Maximum RPM */
      <#if MCPMSMFOC_RAMP_PROFILES == 'Linear'>
        float32_t rpmPerSecond;              /* RPM change per second */
        float32_t dt;                        /* Sample time */
      </#if>
    <#elseif ( MCPMSMFOC_CONTROL_TYPE == 'POSITION_LOOP' ) >
        float32_t minimum;                   /* Minimum position value */
        float32_t maximum;                   /* Maximum position value */
      <#if MCPMSMFOC_RAMP_PROFILES == 'Linear'>
        float32_t rampRate;                  /* Rate of change in position value  */
        float32_t dt;                        /* Sample time */
      </#if>
    </#if>
        void * pStatePointer;                /* Pointer to the state structure */
    }tmcRef_Parameters_s;

## Summary

Reference control module parameter structure.

## Description

This structure holds the parameters for the reference control module, which includes the configuration and state necessary to manage RPM (Revolutions Per Minute) or position control. It includes the operational limits, the rate of change, the timing, and the current state of the control loop.

## Remarks

None.