Info module
The Info module provides the following device information through the configuration channel:
Highest ID of configuration channel listener
Board name
Hardware ID (HW ID)
The data provided by Info module is required by HID configurator for nRF Desktop to identify, discover, and configure the device.
Module events
Source Module |
Input Event |
This Module |
Output Event |
Sink Module |
|---|---|---|---|---|
|
|
|||
|
||||
|
||||
|
Note
See the Application overview for more information about the event-based communication in the nRF Desktop application and about how to read this table.
Configuration
To enable the module, use the CONFIG_DESKTOP_CONFIG_CHANNEL_ENABLE Kconfig option.
The same option enables the Configuration channel.
The module selects the CONFIG_DESKTOP_HWID Kconfig option to make sure that nRF Desktop Hardware ID utility is enabled.
The utility uses Zephyr’s Hardware Information to obtain the hardware ID and selects the CONFIG_HWINFO Kconfig option to automatically enable the required driver.
Implementation details
Providing the highest ID of the configuration channel listener is based on the number of elements in the config_channel_modules section.
GEN_CONFIG_EVENT_HANDLERS adds an element to the section for every registered configuration channel listener.
The board name provided by the module through the Configuration channel is a part of the Zephyr board name (CONFIG_BOARD), ending with the predefined character (BOARD_NAME_SEPARATOR).