nrfxlib API 2.8.99
Loading...
Searching...
No Matches

◆ sdc_hci_cmd_vs_peripheral_latency_mode_set()

uint8_t sdc_hci_cmd_vs_peripheral_latency_mode_set ( const sdc_hci_cmd_vs_peripheral_latency_mode_set_t * p_params)

#include <softdevice_controller/include/sdc_hci_vs.h>

Set peripheral latency mode.

This vendor specific command is used to disable/enable peripheral latency. Three modes of disable/enable are supported.

In enable mode, the peripheral will wake up every time it has data to send, and/or every peripheral latency number of connection events.

In disable mode, the peripheral will wake up on every connection event regardless of the requested peripheral latency. This option consumes the most power.

In wait_for_ack mode, the peripheral will wake up on every connection event if it has not received an ACK from the master for at least peripheral latency events. This configuration may increase the power consumption in environments with a lot of radio activity.

Note
Shall only be called on peripheral links.

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.