nrfxlib API 0.1.0
Loading...
Searching...
No Matches

◆ sdc_hci_cmd_vs_periodic_adv_event_length_set()

uint8_t sdc_hci_cmd_vs_periodic_adv_event_length_set ( const sdc_hci_cmd_vs_periodic_adv_event_length_set_t p_params)

#include <softdevice_controller/include/sdc_hci_vs.h>

Set event length for periodic advertisers.

Set the allocated event length for new periodic advertisers. The SoftDevice Controller will ensure that the anchor points of periodic advertising events are spaced event_length_us apart. If the advertiser requires less time to transmit all the data, the distance to the next scheduling activity will still be equal to the configured event length. If the advertiser requires more time to transmit all the data, scheduling conflicts may occur.

This API must be called before configuring a periodic advertiser for the event length to be applied.

The default event length is 7500 us.

The configured value is retained after issuing an HCI Reset command.

Event(s) generated (unless masked away): When the 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.