Feature/direct register access #5
Merged
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.
By creating this pull request you agree to the terms in CONTRIBUTING.md.
https://github.com/Infineon/.github/blob/master/CONTRIBUTING.md
--- DO NOT DELETE ANYTHING ABOVE THIS LINE ---
CONTRIBUTING.md also tells you what to expect in the PR process.
Description
This pull request introduces a new example for motor control, updates the library version, and adds enhancements to the
Tle94112
library. The most significant changes include the addition of a new example demonstrating direct register control for motors, the introduction of new constructors and methods for theTle94112
class, and the definition of additional register constants. These changes aim to improve functionality and flexibility for motor control applications.New Example for Motor Control:
examples/directRegisterControl/directRegisterControl.ino
demonstrating how to control two motors via direct register settings. It includes motor direction and speed control functions, setup configurations, and a loop for motor operation.Enhancements to the
Tle94112
Library:Tle94112Ino
to support individual pin assignment for both CS (chip select) and EN (enable) pins. [1] [2]directWriteReg
method in theTle94112
class for directly writing data to a specific register, enabling more efficient motor control. [1] [2]REG_ACT_1
,REG_PWM_DC_1
,HH_LL
,LL_HH
) insrc/tle94112-types.hpp
to facilitate direct register operations.Version Updates:
4.1.1
to4.2.0
in bothlibrary.json
andlibrary.properties
to reflect the new features and improvements. [1] [2]Documentation Improvements:
Tle94112Ino
constructors to clarify the purpose of the CS and EN pins.Related Issue