![]() |
nrfxlib API 3.3.99
|
| uint8_t sdc_hci_cmd_le_cs_set_procedure_params | ( | const sdc_hci_cmd_le_cs_set_procedure_params_t * | p_params, |
| sdc_hci_cmd_le_cs_set_procedure_params_return_t * | p_return ) |
#include <softdevice_controller/include/sdc_hci_cmd_le.h>
LE CS Set Procedure Parameters.
The description below is extracted from Core_v6.3, Vol 4, Part E, Section 7.8.140
This command is used by a Host to set the parameters for the scheduling of one or more CS procedures by the local Controller, with the remote device for the CS configuration identified by Config_ID and the connection identified by the Connection_Handle parameter.
The Max_Procedure_Len parameter indicates the maximum duration of each CS procedure. The Min_Procedure_Interval and Max_Procedure_Interval parameters indicate the minimum and maximum interval period between consecutive CS procedures. The Max_Procedure_Count parameter indicates the maximum number of consecutive CS procedures to be scheduled as part of this measurement. If Max_Procedure_Count is set to 1, then Min_Procedure_Interval and Max_Procedure_Interval shall be ignored.
The Min_Subevent_Len and Max_Subevent_Len parameters indicate the minimum and maximum duration of each CS subevent during the CS procedure.
The values for Min_Procedure_Interval, Max_Procedure_Interval, Min_Subevent_Len, and Max_Subevent_Len are recommendations to the Controller which it may ignore.
The Tone_Antenna_Config_Selection parameter indicates the Antenna Configuration Index to be used in the CS procedure. The power delta value Tx_Power_Delta indicates the recommended difference between the remote device’s power level for the CS tones and CS_SYNC packets, and the power level for the PHY indicated by the PHY parameter. If the resulting power level goes below the minimum or goes above the maximum supported transmit power levels of the remote device, then the Controller may adjust the requested power delta value.
The Preferred_Peer_Antenna parameter indicates the preferred peer-ordered antenna elements to be used by the remote device for the antenna configuration denoted by the Tone_Antenna_Config_Selection parameter. The number of bits set in this field shall be greater than or equal to the number of antenna elements denoted by the Tone_Antenna_Config_Selection parameter.
The SNR_Control_Initiator parameter indicates the SNR control adjustment for the CS_SYNC transmissions of the initiator.
The SNR_Control_Reflector parameter indicates the SNR control adjustment for the CS_SYNC transmissions of the reflector.
The parameters specified by this command for the CS configuration identified by the Config_ID parameter become invalid after the Host issues the HCI_LE_CS_Remove_Config command for the given Config_ID.
Errors:
See Section 4.5.2 for a list of error types and descriptions.
Type Condition Error code
MC The parameters exceed the CS capabilities or any coexistence Rejected Due To
constraints. Limited Resources
(0x0D).
MC Config_ID does not identify a CS configuration. Invalid HCI Command
Parameters (0x12)
MC Config_ID identifies a CS configuration that has been removed. Invalid HCI Command
Parameters (0x12)
MC A CS procedure measurement is already enabled for Config_ID in Command Disallowed
the Controller. (0x0C)
MC The number of channels available for Channel Sounding before the Insufficient Channels
start of a new CS procedure measurement is less than 15. (0x48)
MC Connection_Handle does not identify an ACL. Unknown Connection
Identifier (0x02)
Event(s) generated (unless masked away):
When the HCI_LE_CS_Set_Procedure_Parameters command has completed, an HCI_Command_Complete event shall be generated.
| [in] | p_params | Input parameters. |
| [out] | p_return | Extra return parameters. |
| 0 | if success. |