/* Function for configuring advanced burst settings according to encryption requirements.  */
static ret_code_t ant_enc_advance_burs_config_apply(ant_encrypt_adv_burst_settings_t const *const p_adv_burst_set)
/* Function for configuring advanced burst settings according to encryption requirements.  */
static ret_code_t ant_enc_advance_burs_config_apply(ant_encrypt_adv_burst_settings_t const *const p_adv_burst_set)
{
    uint8_t adv_burst_conf_str[ADV_BURST_CFG_MIN_SIZE] =
    { ADV_BURST_MODE_ENABLE, 0, 0, 0, 0, 0, 0, 0 };
    adv_burst_conf_str[ADV_BURST_CFG_PACKET_SIZE_INDEX] = p_adv_burst_set->packet_length;
    adv_burst_conf_str[ADV_BURST_CFG_REQUIRED_FEATURES] = p_adv_burst_set->required_feature;
    adv_burst_conf_str[ADV_BURST_CFG_OPTIONAL_FEATURES] = p_adv_burst_set->optional_feature;
    return sd_ant_adv_burst_config_set(adv_burst_conf_str, sizeof(adv_burst_conf_str));
}