drivers/qencoder: add command to set the maximum encoder position #4312
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Summary
This PR introduce a new qencoder command that allows you to configure the maximum encoder position.
At the moment, only stm32 has been modified to support a new command.
I think that Tivia and IMXRT support this feature by not portable commands - QEIOC_RESETAT and QEIOC_RESETATMAXPOS but I don't have any hardware to verify this.
Depends on #4310
Impact
A new command to interact with the encoder device.
This can be useful for measuring the motor shaft angle.
Testing
stm32