blob: 06a131dd0ad997a6e2b5b44a7eb88e05d79978ec [file] [log] [blame]
/*
* Copyright (c) 2020 Nordic Semiconductor ASA
*
* SPDX-License-Identifier: Apache-2.0
*/
/* @brief Configuration of Constant Tone Extension for connectionless
* transmission.
*/
struct lll_df_adv_cfg {
uint8_t is_enabled:1;
uint8_t is_started:1;
uint8_t cte_length:6; /* Length of CTE in 8us units */
uint8_t cte_type:2;
uint8_t cte_count:6;
uint8_t ant_sw_len:6;
uint8_t ant_ids[CONFIG_BT_CTLR_DF_MAX_ANT_SW_PATTERN_LEN];
};
/* @brief Max supported CTE length in 8us units */
#define LLL_DF_MAX_CTE_LEN 20
/* @brief Min supported CTE length in 8us units */
#define LLL_DF_MIN_CTE_LEN 2
/* @brief Min supported length of antenna switching pattern */
#define LLL_DF_MIN_ANT_PATTERN_LEN 3
/* Provides number of available antennae for Direction Finding */
uint8_t lll_df_ant_num_get(void);