nrfxlib API 2.7.99
Loading...
Searching...
No Matches

◆ sdc_hci_cmd_vs_set_role_priority()

uint8_t sdc_hci_cmd_vs_set_role_priority ( const sdc_hci_cmd_vs_set_role_priority_t p_params)

#include <softdevice_controller/include/sdc_hci_vs.h>

Set priority of a BT role.

This vendor specific command changes the scheduling priority of a role running in the controller.

Note that unless documented otherwise, any non-default priorities are not tested. This means that there is no guarantee that the controller works as intended when non-tested priorities are used. The default values for the priorities of the different roles are listed in https://docs.nordicsemi.com/bundle/ncs- latest/page/nrfxlib/softdevice_controller/doc/scheduling.html

After HCI Reset, priority is set to the default value.

If the handle is not associated with an instance of the role_id type, the error code Unknown Connection Identifier (0x02) is returned.

If the role_id is set to an invalid or unsupported role, the error code Invalid HCI Command Parameters (0x12) is returned.

If the priority is set to an invalid or unsupported value, the error code Invalid HCI Command Parameters (0x12) is returned.

Event(s) generated (unless masked away): When the command has completed, an HCI_Command_Complete event shall be generated.

Parameters
[in]p_paramsInput parameters.
Return values
0if success.
Returns
Returns value between 0x01-0xFF in case of error. See Vol 2, Part D, Error for a list of error codes and descriptions.