nrfxlib API 3.3.99
Loading...
Searching...
No Matches

◆ sdc_hci_cmd_le_set_default_subrate()

uint8_t sdc_hci_cmd_le_set_default_subrate ( const sdc_hci_cmd_le_set_default_subrate_t * p_params)

#include <softdevice_controller/include/sdc_hci_cmd_le.h>

LE Set Default Subrate.

The description below is extracted from Core_v6.3, Vol 4, Part E, Section 7.8.123

This command is used by the Host to set the initial values for the acceptable parameters for subrating requests, as defined by the HCI_LE_Subrate_Request command (see Section 7.8.124), for all future ACL connections where the Controller is the Central. This command does not affect any existing connection.

The parameters have the same meanings as those in the HCI_LE_Subrate_Request command.

Errors:

See Section 4.5.2 for a list of error types and descriptions.

Type   Condition                                              Error code
MC     Subrate_Max × (Max_Latency + 1) is greater than 500.   Invalid HCI Command Parameters
                                                              (0x12)
MC     Subrate_Max is less than Subrate_Min.                  Invalid HCI Command Parameters
                                                              (0x12)
MC     Continuation_Number is greater than or equal to        Invalid HCI Command Parameters
       Subrate_Max.                                           (0x12)

Event(s) generated (unless masked away):

When the Controller receives the HCI_LE_Set_Default_Subrate command, the Controller sends the HCI_Command_Complete event to the Host.

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.