Skip to content

usb: hid: Define sensor page usages IDs #91480

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

Merged
merged 1 commit into from
Jun 27, 2025

Conversation

zessadaoui
Copy link
Contributor

@zessadaoui zessadaoui commented Jun 12, 2025

This commit adds the following:
* A subset of usage IDs defined in the Sensors' page of the HID standard.
* A HID usage macro that works with IDs of 2 bytes.
* A macro to define the exponent in a report descriptor.

The values and naming came from the following document: https://www.usb.org/sites/default/files/hutrr39b_0.pdf

Signed-off-by: Zak Essadaoui [email protected]

Copy link

Hello @zessadaoui, and thank you very much for your first pull request to the Zephyr project!
Our Continuous Integration pipeline will execute a series of checks on your Pull Request commit messages and code, and you are expected to address any failures by updating the PR. Please take a look at our commit message guidelines to find out how to format your commit messages, and at our contribution workflow to understand how to update your Pull Request. If you haven't already, please make sure to review the project's Contributor Expectations and update (by amending and force-pushing the commits) your pull request if necessary.
If you are stuck or need help please join us on Discord and ask your question there. Additionally, you can escalate the review when applicable. 😊

@zessadaoui zessadaoui force-pushed the usb_hid_sensor_usage branch 4 times, most recently from 7c3c64e to 4ca4c3d Compare June 12, 2025 21:40
@kartben kartben marked this pull request as ready for review June 12, 2025 21:42
@kartben kartben marked this pull request as draft June 12, 2025 21:42
@github-actions github-actions bot added the area: USB Universal Serial Bus label Jun 12, 2025
@kartben
Copy link
Contributor

kartben commented Jun 12, 2025

(misclicked, sorry, only meant to trigger your CI)

@zessadaoui zessadaoui force-pushed the usb_hid_sensor_usage branch 4 times, most recently from bdde0f7 to f941a59 Compare June 13, 2025 23:26
@zessadaoui zessadaoui marked this pull request as ready for review June 13, 2025 23:48
@zessadaoui zessadaoui force-pushed the usb_hid_sensor_usage branch 3 times, most recently from fe065d6 to 5796d0b Compare June 17, 2025 17:49
@zessadaoui zessadaoui force-pushed the usb_hid_sensor_usage branch from 5796d0b to 5a2cf15 Compare June 24, 2025 20:48
@zessadaoui zessadaoui force-pushed the usb_hid_sensor_usage branch from 5a2cf15 to e20c765 Compare June 24, 2025 20:49
@carlescufi carlescufi requested a review from jfischer-no June 25, 2025 10:26
This commit adds the following:
    * Sensor related usage IDs in the Sensors' page of the HID standard.
    * A HID usage macro that works with IDs of 2 bytes.
    * A macro to define the exponent in a report descriptor.

The values and naming came from the following document: https://www.usb.org/sites/default/files/hutrr39b_0.pdf

Signed-off-by: Zak Essadaoui <[email protected]>
@zessadaoui zessadaoui force-pushed the usb_hid_sensor_usage branch from e20c765 to 9369666 Compare June 26, 2025 22:19
Copy link

Copy link
Contributor

@jfischer-no jfischer-no left a comment

Choose a reason for hiding this comment

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

Thanks

@jfischer-no jfischer-no added this to the v4.2.0 milestone Jun 27, 2025
@kartben kartben merged commit 41a83bd into zephyrproject-rtos:main Jun 27, 2025
26 checks passed
Copy link

Hi @zessadaoui!
Congratulations on getting your very first Zephyr pull request merged 🎉🥳. This is a fantastic achievement, and we're thrilled to have you as part of our community!

To celebrate this milestone and showcase your contribution, we'd love to award you the Zephyr Technical Contributor badge. If you're interested, please claim your badge by filling out this form: Claim Your Zephyr Badge.

Thank you for your valuable input, and we look forward to seeing more of your contributions in the future! 🪁

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area: USB Universal Serial Bus
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants