Skip to content

Commit c4fafa4

Browse files
MarekPietakapi-no
authored andcommitted
applications: nrf_desktop: Align HID providers' documentation
Change slightly aligns documentation pages of HID keyboard, system control and consumer control report providers to improve consistency. Jira: NCSDK-35470 Signed-off-by: Marek Pieta <[email protected]> Signed-off-by: Pekka Niskanen <[email protected]>
1 parent 5999ecf commit c4fafa4

File tree

3 files changed

+11
-8
lines changed

3 files changed

+11
-8
lines changed

applications/nrf_desktop/doc/hid_provider_consumer_ctrl.rst

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ This option is enabled by default if the device uses HID provider events (:ref:`
3434
The default implementation of the HID provider uses a predefined format of HID reports, which is aligned with the default HID report map in the common configuration (:ref:`CONFIG_DESKTOP_HID_REPORT_DESC <config_desktop_app_options>`).
3535

3636
Alternatively, you can substitute the module with a custom HID consumer control report provider implementation.
37-
Using the custom provider allows you to modify sources of user input and the HID report format.
37+
Using the custom provider allows you to modify the sources of user input and the HID report format.
3838
Enable the :ref:`CONFIG_DESKTOP_HID_REPORT_PROVIDER_CONSUMER_CTRL_ALT <config_desktop_app_options>` Kconfig option to use a custom HID consumer control report provider.
3939
The option disables the default HID consumer control report provider.
4040
Make sure to introduce the custom HID consumer control report provider if you enable this option.
@@ -58,7 +58,8 @@ See the following sections for the configuration details of the used application
5858
HID keymap
5959
----------
6060

61-
The module uses the :ref:`nrf_desktop_hid_keymap` to map an application-specific key ID to a HID report ID and HID usage ID pair.
61+
Since the keys on the board can be associated with a HID usage ID and thus be part of different HID reports, the first step is to identify if the key belongs to a HID report that is provided by this module.
62+
This is done by obtaining the key mapping from the :ref:`nrf_desktop_hid_keymap`.
6263
The module selects the :ref:`CONFIG_DESKTOP_HID_KEYMAP <config_desktop_app_options>` Kconfig option to enable the utility.
6364
Make sure to configure the HID keymap utility.
6465
See the utility's documentation for details.

applications/nrf_desktop/doc/hid_provider_keyboard.rst

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ HID provider keyboard module
77
:local:
88
:depth: 2
99

10-
The HID provider keyboard module is a HID report provider integrated with :ref:`nrf_desktop_hid_state`.
10+
The HID provider keyboard module is a HID report provider integrated with the :ref:`nrf_desktop_hid_state`.
1111
The module is responsible for providing the HID keyboard input report and the HID boot keyboard input report.
1212

1313
The module listens to the user input (:c:struct:`button_event`) and communicates with the :ref:`nrf_desktop_hid_state`.
@@ -31,13 +31,14 @@ Configuration
3131

3232
You can enable the default implementation of the HID provider using the :ref:`CONFIG_DESKTOP_HID_REPORT_PROVIDER_KEYBOARD <config_desktop_app_options>` Kconfig option.
3333
This option is enabled by default if the device uses HID provider events (:ref:`CONFIG_DESKTOP_HID_REPORT_PROVIDER_EVENT <config_desktop_app_options>`) and supports HID keyboard reports (:ref:`CONFIG_DESKTOP_HID_REPORT_KEYBOARD_SUPPORT <config_desktop_app_options>`).
34+
The default implementation of the HID provider uses a predefined format of HID reports, which is aligned with the default HID report map in the common configuration (:ref:`CONFIG_DESKTOP_HID_REPORT_DESC <config_desktop_app_options>`).
3435
The module also provides HID boot keyboard input report if it is supported (:ref:`CONFIG_DESKTOP_HID_BOOT_INTERFACE_KEYBOARD <config_desktop_app_options>`).
3536

3637
Alternatively, you can substitute the module with a custom HID keyboard report provider implementation.
38+
Using the custom provider allows you to modify the sources of user input and the HID report format.
3739
Enable the :ref:`CONFIG_DESKTOP_HID_REPORT_PROVIDER_KEYBOARD_ALT <config_desktop_app_options>` Kconfig option to use a custom HID keyboard report provider.
3840
The option disables the default HID keyboard report provider.
3941
Make sure to introduce the custom HID keyboard report provider if you enable this option.
40-
See the :ref:`nrf_desktop_hid_state_providing_hid_input_reports` documentation section of the HID state module for details.
4142

4243
Default implementation
4344
======================
@@ -58,7 +59,7 @@ See the following sections for the configuration details of the used application
5859
HID keymap
5960
----------
6061

61-
Since keys on the board can be associated with a HID usage ID and thus be part of different HID reports, the first step is to identify if the key belongs to a HID report that is provided by this module.
62+
Since the keys on the board can be associated with a HID usage ID and thus be part of different HID reports, the first step is to identify if the key belongs to a HID report that is provided by this module.
6263
This is done by obtaining the key mapping from the :ref:`nrf_desktop_hid_keymap`.
6364
The module selects the :ref:`CONFIG_DESKTOP_HID_KEYMAP <config_desktop_app_options>` Kconfig option to enable the utility.
6465
Make sure to configure the HID keymap utility.
@@ -111,7 +112,7 @@ The subsequent requests lead to providing subsequent keypresses as HID report ev
111112
All key state changes still go through the HID event queue until the queue is empty.
112113

113114
Once the queue is empty, a key state change results in an instant update of the tracked state of pressed keys.
114-
If the state of pressed keys changes, the module calls the ``trigger_report_send`` callback from the :c:struct:`hid_state_api` to notify the :ref:`nrf_desktop_hid_state` about the new data.
115+
If the state of pressed keys changes, the module calls the :c:member:`hid_state_api.trigger_report_send` callback to notify the :ref:`nrf_desktop_hid_state` about the new data.
115116
The module also remembers that the HID subscriber needs to be updated.
116117

117118
Discarding queued events

applications/nrf_desktop/doc/hid_provider_system_ctrl.rst

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ This option is enabled by default if the device uses HID provider events (:ref:`
3434
The default implementation of the HID provider uses a predefined format of HID reports, which is aligned with the default HID report map in the common configuration (:ref:`CONFIG_DESKTOP_HID_REPORT_DESC <config_desktop_app_options>`).
3535

3636
Alternatively, you can substitute the module with a custom HID system control report provider implementation.
37-
Using the custom provider allows you to modify sources of user input and the HID report format.
37+
Using the custom provider allows you to modify the sources of user input and the HID report format.
3838
Enable the :ref:`CONFIG_DESKTOP_HID_REPORT_PROVIDER_SYSTEM_CTRL_ALT <config_desktop_app_options>` Kconfig option to use a custom HID system control report provider.
3939
The option disables the default HID system control report provider.
4040
Make sure to introduce the custom HID system control report provider if you enable this option.
@@ -58,7 +58,8 @@ See the following sections for the configuration details of the used application
5858
HID keymap
5959
----------
6060

61-
The module uses the :ref:`nrf_desktop_hid_keymap` to map an application-specific key ID to a HID report ID and HID usage ID pair.
61+
Since the keys on the board can be associated with a HID usage ID and thus be part of different HID reports, the first step is to identify if the key belongs to a HID report that is provided by this module.
62+
This is done by obtaining the key mapping from the :ref:`nrf_desktop_hid_keymap`.
6263
The module selects the :ref:`CONFIG_DESKTOP_HID_KEYMAP <config_desktop_app_options>` Kconfig option to enable the utility.
6364
Make sure to configure the HID keymap utility.
6465
See the utility's documentation for details.

0 commit comments

Comments
 (0)