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

◆ sdc_hci_cmd_le_set_conn_cte_transmit_params()

uint8_t sdc_hci_cmd_le_set_conn_cte_transmit_params ( const sdc_hci_cmd_le_set_conn_cte_transmit_params_t * p_params,
sdc_hci_cmd_le_set_conn_cte_transmit_params_return_t * p_return )

#include <softdevice_controller/include/sdc_hci_cmd_le.h>

LE Set Connection CTE Transmit Parameters.

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

This command is used to set the antenna switching pattern and permitted Constant Tone Extension types used for transmitting Constant Tone Extensions requested by the peer device on the connection identified by the Connection_Handle parameter.

The Switching_Pattern_Length and Antenna_IDs[i] parameters are only used when transmitting an AoD Constant Tone Extension and shall be ignored when CTE_Types does not have a bit set for an AoD Constant Tone Extension; they do not affect the transmission of an AoA Constant Tone Extension.

Errors:

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

Type   Condition                                                              Error code
MC     Constant Tone Extension responses have been enabled on the             Command
       connection.                                                            Disallowed (0x0C)
MC     CTE_Types has a bit set for a type of Constant Tone Extension that     Unsupported
       the Controller does not support.                                       Feature or
                                                                              Parameter Value
                                                                              (0x11)
MC     Switching_Pattern_Length is greater than the maximum length of         Unsupported
       switching pattern supported.                                           Feature or
                                                                              Parameter Value
                                                                              (0x11)
MC     Any of the Antenna_IDs[i] values does not identify an antenna in the   Unsupported
       device’s antenna array (some Controllers might be unable to            Feature or
       determine which values do or do not identify an antenna).              Parameter Value
                                                                              (0x11)

Event(s) generated (unless masked away):

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

Parameters
[in]p_paramsInput 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.