As you see in the datasheet of this device or HAL_getQepPosnCounts() in hal.h, the QPOSCNT register shows the current position count from QEP for the encoder, but it's an incremental count, especially there are multi turns rotation, so you need to know the trigger event from index also.
↧