|
Zephyr API Documentation 4.4.99
A Scalable Open Source RTOS
|
NXP HCI extended API. More...
#include <zephyr/device.h>Go to the source code of this file.
Functions | |
| int | bt_nxp_trigger_ir (const struct device *dev) |
| Trigger Independent Reset (IR) on NXP Bluetooth controllers. | |
NXP HCI extended API.
| int bt_nxp_trigger_ir | ( | const struct device * | dev | ) |
Trigger Independent Reset (IR) on NXP Bluetooth controllers.
This function initiates an Independent Reset sequence on the NXP Bluetooth controller. Independent Reset allows the Bluetooth controller to be reset and re-initialized without requiring a full system reset. After triggering the IR, the firmware is re-downloaded to the controller.
CONFIG_HCI_NXP_CONFIG_IR is enabled.Example usage:
| dev | Pointer to the UART device structure used for HCI communication. |
| 0 | on success. |
| -EAGAIN | if Bluetooth is not disabled. Disable Bluetooth using bt_disable() before calling this function. |
| -ENODEV | if the UART device is not ready or feature is not enabled. |
| -EIO | if firmware download fails after IR trigger. |
| other | Negative error code on other failures. |