Bluetooth LE state module
In nRF Desktop, the Bluetooth® LE state module is responsible for the following actions:
Enabling Bluetooth (
bt_enable()
).Handling Zephyr connection callbacks (
bt_conn_cb
).Propagating information about the connection state and parameters by using Application Event Manager events.
Module events
Source Module |
Input Event |
This Module |
Output Event |
Sink Module |
---|---|---|---|---|
|
|
|||
|
||||
|
||||
|
||||
|
Note
See the Overview: Firmware architecture for more information about the event-based communication in the nRF Desktop application and about how to read this table.
Configuration
nRF Desktop uses the Bluetooth LE state module from Common Application Framework (CAF).
The CONFIG_DESKTOP_BLE_STATE Kconfig option selects the CONFIG_CAF_BLE_STATE
option.
For more information about Bluetooth configuration in nRF Desktop, see Bluetooth in nRF Desktop.
Implementation details
The Bluetooth LE state module handles, among others, Zephyr’s connection parameters update request callback.
The module rejects a connection parameters update request and submits the ble_peer_conn_params_event
event.
The event is handled by the Bluetooth LE connection parameters module, which updates the connection parameters.
For information on implementation details, see the CAF Bluetooth LE state page.