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

◆ sdc_hci_cmd_le_set_host_feature_v2()

uint8_t sdc_hci_cmd_le_set_host_feature_v2 ( const sdc_hci_cmd_le_set_host_feature_v2_t * p_params)

#include <softdevice_controller/include/sdc_hci_cmd_le.h>

LE Set Host Feature [v2].

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

This command is used by the Host to set or clear a bit controlled by the Host in the Link Layer FeatureSet stored in the Controller (see [Vol 6] Part B, Section 4.6).

The Bit_Number parameter specifies the bit position in the FeatureSet.

The Bit_Value parameter specifies whether the feature is enabled or disabled.

Errors:

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

Type   Condition                                                          Error code
MC     Bit_Number specifies a feature bit that is not controlled by the   Unsupported Feature
       Host.                                                              or Parameter Value
                                                                          (0x11)
MC     Bit_Value is set to 0x01 and Bit_Number specifies a feature bit    Unsupported Feature
       that requires support of a feature that the Controller does not    or Parameter Value
       support.                                                           (0x11)
MC     The Controller has a connection to another device.                 Command Disallowed
                                                                          (0x0C)

Event(s) generated (unless masked away):

When the HCI_LE_Set_Host_Feature 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.