Skip to content

include: drivers: haptics: add Doxygen docs for drv2605 #93740

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

kartben
Copy link
Contributor

@kartben kartben commented Jul 25, 2025

Aim for full coverage for the drv2605 device-specific haptics API.
Also added a macro for generating delay values in the sequencer (and yeah, not in love with its long name but I wanted to be consistent with the other macro)

https://builds.zephyrproject.io/zephyr/pr/93740/docs/doxygen/html/group__drv2605__interface.html

@kartben kartben force-pushed the drv2605_docs branch 2 times, most recently from 041a88d to 8ed2bb5 Compare July 25, 2025 21:19
kartben added 2 commits July 25, 2025 23:47
Aim for full coverage for the drv2605 device-specific haptics API.

Signed-off-by: Benjamin Cabé <[email protected]>
Add a macro to simplify the creation of wait/delay values for the
waveform sequencer.

Signed-off-by: Benjamin Cabé <[email protected]>
Copy link

* 10 to 1270.
* @return A byte literal representing the wait time for the sequencer.
*/
#define DRV2605_WAVEFORM_SEQUENCER_WAIT_MS(ms) (0x80 | ((ms) / 10))
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

would it be a good idea to add a CLAMP so ms stays in range?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants