![]() |
nrfxlib API 3.3.99
|
| uint8_t sdc_hci_cmd_le_set_scan_params | ( | const sdc_hci_cmd_le_set_scan_params_t * | p_params | ) |
#include <softdevice_controller/include/sdc_hci_cmd_le.h>
LE Set Scan Parameters.
The description below is extracted from Core_v6.3, Vol 4, Part E, Section 7.8.10
This command is used to set the scan parameters.
The LE_Scan_Type parameter controls the type of scan to perform.
The LE_Scan_Interval and LE_Scan_Window parameters are recommendations from the Host on how long (LE_Scan_Window) and how frequently (LE_Scan_Interval) the Controller should scan (See [Vol 6] Part B, Section 4.4.3). The LE_Scan_Window parameter shall always be set to a value smaller or equal to the value set for the LE_Scan_Interval parameter. If they are set to the same value scanning should be run continuously.
Own_Address_Type parameter indicates the type of address being used in the scan request packets.
Errors:
See Section 4.5.2 for a list of error types and descriptions.
Type Condition Error code MC Scanning is enabled in the Controller. Command Disallowed (0x0C)
Event(s) generated (unless masked away):
When the HCI_LE_Set_Scan_Parameters command has completed, an HCI_Command_Complete event shall be generated.
| [in] | p_params | Input parameters. |
| 0 | if success. |