3.4.11 tmcRpc_Input_s Struct

C

/* Data structure for Rotor Position Calculation (RPC) module input ports */
typedef struct
{
    uint16_t encPulseCount;      /* Encoder pulse count value */
<#if __PROCESSOR?matches(".*PIC32MK.*") == true>
    int16_t encVelocityCount;    /* Difference in encoder counts between cycles */
</#if>
}tmcRpc_Input_s;

Summary

RPC module input parameter structure.

Description

This structure holds the input parameters for the Rotor Position Calculation (RPC) module, including the current encoder pulse count value and difference in encoder counts between cycles.

Remarks

Refer the generated header file for the exact typedef signature.