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

◆ sdc_hci_cmd_le_read_min_supported_conn_interval()

uint8_t sdc_hci_cmd_le_read_min_supported_conn_interval ( sdc_hci_cmd_le_read_min_supported_conn_interval_return_t * p_return)

#include <softdevice_controller/include/sdc_hci_cmd_le.h>

LE Read Minimum Supported Connection Interval.

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

This command is used by the Host to determine the minimum supported connection interval and which other connection intervals (see [Vol 6] Part B, Section 4.5.1) the Controller supports.

Each group shall represent a set of supported connection intervals forming an arithmetic sequence starting at Group_Min[i], ending at Group_Max[i], and in steps of Group_Stride[i]. For example, if Group_Min[i] = 0x0005, Group_Max[i] = 0x003C, and Group_Strides[i] = 0x000B, then this group indicates that the Controller supports the intervals 0.625 ms, 2.000 ms, 3.375 ms, 4.750 ms, 6.125 ms, and 7.500 ms.

The returned groups should include between them every supported value that is in ECV and not in RCV but may include values in RCV. A supported value may be in more than one group. The Controller shall not include any group that only contains values from RCV or the minimum supported. If it would require too many groups to represent all supported values, then the Controller should represent as many supported values as possible.

For example, if the Controller returns Num_Groups = 2, Group_Min[0] = 0x0005, Group_Max[0] = 0x0050, Group_Strides[0] = 0x0005, Group_Min[1] = 0x0050, Group_Max[1] = 0x0320, and Group_Strides[1] = 0x0008, then the Controller supports all connection interval values in RCV, all values up to 10 ms that are multiples of 625 μs, and all values between 10 ms and 100 ms that are multiples of 1 ms. If the Controller supports any other values, it should have included more groups.

If the Controller only supports values from RCV, then it shall set Num_Groups to zero.

Event(s) generated (unless masked away):

When the HCI_LE_Read_Minimum_Supported_Connection_Interval command has completed, an HCI_Command_Complete event shall be generated.

Parameters
[out]p_returnExtra return 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.