SPRAC77E January 2022 – February 2022 TMS320F28379D , TMS320F28379D-Q1 , TMS320F28379S
Description
This function translates a change in absolute position into an equivalent PTO configuration to be loaded into the CLB FIFO. The information includes:
Definition
uint16_t
pto_abs2qep_translatePosition(
uint32_t positionNew
);
Parameters
Input:
Return: ptoDirection - Indicates the direction of the PTO.
Usage
// Call to sample a new absolute position
....
// Translate change from previous position to PTO configuration
ptoDirection = pto_abs2qep_translatePosition(absolutePosition);
....
// Start the last configuration
pto_abs2qep_runPulseGen(ptoDirection);