Zephyr API Documentation 4.0.0-rc3
A Scalable Open Source RTOS
|
#include <stdint.h>
Go to the source code of this file.
Data Structures | |
struct | bt_df_adv_cte_tx_param |
Constant Tone Extension parameters for connectionless transmission. More... | |
struct | bt_df_per_adv_sync_cte_rx_param |
Constant Tone Extension parameters for connectionless reception. More... | |
struct | bt_df_per_adv_sync_iq_samples_report |
struct | bt_df_conn_cte_rx_param |
struct | bt_df_conn_iq_samples_report |
struct | bt_df_conn_cte_tx_param |
Constant Tone Extension parameters for CTE transmission in connected mode. More... | |
struct | bt_df_conn_cte_req_params |
Enumerations | |
enum | bt_df_cte_type { BT_DF_CTE_TYPE_NONE = 0 , BT_DF_CTE_TYPE_AOA = BIT(0) , BT_DF_CTE_TYPE_AOD_1US = BIT(1) , BT_DF_CTE_TYPE_AOD_2US = BIT(2) , BT_DF_CTE_TYPE_ALL = (BT_DF_CTE_TYPE_AOA | BT_DF_CTE_TYPE_AOD_1US | BT_DF_CTE_TYPE_AOD_2US) } |
Constant Tone Extension (CTE) types. More... | |
enum | bt_df_antenna_switching_slot { BT_DF_ANTENNA_SWITCHING_SLOT_1US = 0x1 , BT_DF_ANTENNA_SWITCHING_SLOT_2US = 0x2 } |
Allowed antenna switching slots: 1 us or 2 us. More... | |
enum | bt_df_packet_status { BT_DF_CTE_CRC_OK = 0x0 , BT_DF_CTE_CRC_ERR_CTE_BASED_TIME = 0x1 , BT_DF_CTE_CRC_ERR_CTE_BASED_OTHER = 0x2 , BT_DF_CTE_INSUFFICIENT_RESOURCES = 0xFF } |
Possible statuses of PDU that contained reported CTE. More... | |
enum | bt_df_iq_sample { BT_DF_IQ_SAMPLE_8_BITS_INT , BT_DF_IQ_SAMPLE_16_BITS_INT } |
enum | bt_df_conn_iq_report_err { BT_DF_IQ_REPORT_ERR_SUCCESS , BT_DF_IQ_REPORT_ERR_NO_CTE , BT_DF_IQ_REPORT_ERR_PEER_REJECTED } |
Functions | |
int | bt_df_set_adv_cte_tx_param (struct bt_le_ext_adv *adv, const struct bt_df_adv_cte_tx_param *params) |
Set or update the Constant Tone Extension parameters for periodic advertising set. | |
int | bt_df_adv_cte_tx_enable (struct bt_le_ext_adv *adv) |
Enable transmission of Constant Tone Extension for the given advertising set. | |
int | bt_df_adv_cte_tx_disable (struct bt_le_ext_adv *adv) |
Disable transmission of Constant Tone Extension for the given advertising set. | |
int | bt_df_per_adv_sync_cte_rx_enable (struct bt_le_per_adv_sync *sync, const struct bt_df_per_adv_sync_cte_rx_param *params) |
Enable receive and sampling of Constant Tone Extension for the given sync set. | |
int | bt_df_per_adv_sync_cte_rx_disable (struct bt_le_per_adv_sync *sync) |
Disable receive and sampling of Constant Tone Extension for the given sync set. | |
int | bt_df_conn_cte_rx_enable (struct bt_conn *conn, const struct bt_df_conn_cte_rx_param *params) |
Enable receive and sampling of Constant Tone Extension for the connection object. | |
int | bt_df_conn_cte_rx_disable (struct bt_conn *conn) |
Disable receive and sampling of Constant Tone Extension for the connection object. | |
int | bt_df_set_conn_cte_tx_param (struct bt_conn *conn, const struct bt_df_conn_cte_tx_param *params) |
Set Constant Tone Extension transmission parameters for a connection. | |
int | bt_df_conn_cte_req_enable (struct bt_conn *conn, const struct bt_df_conn_cte_req_params *params) |
Enable Constant Tone Extension request procedure for a connection. | |
int | bt_df_conn_cte_req_disable (struct bt_conn *conn) |
Disable Constant Tone Extension request procedure for a connection. | |
int | bt_df_conn_cte_rsp_enable (struct bt_conn *conn) |
Enable Constant Tone Extension response procedure for a connection. | |
int | bt_df_conn_cte_rsp_disable (struct bt_conn *conn) |
Disable Constant Tone Extension response procedure for a connection. | |
enum bt_df_cte_type |
Constant Tone Extension (CTE) types.
enum bt_df_iq_sample |
enum bt_df_packet_status |
Possible statuses of PDU that contained reported CTE.
int bt_df_adv_cte_tx_disable | ( | struct bt_le_ext_adv * | adv | ) |
Disable transmission of Constant Tone Extension for the given advertising set.
[in] | adv | Advertising set object. |
int bt_df_adv_cte_tx_enable | ( | struct bt_le_ext_adv * | adv | ) |
Enable transmission of Constant Tone Extension for the given advertising set.
Transmission of Constant Tone Extension may be enabled only after setting periodic advertising parameters (bt_le_per_adv_set_param) and Constant Tone Extension parameters (bt_df_set_adv_cte_tx_param).
[in] | adv | Advertising set object. |
int bt_df_conn_cte_req_disable | ( | struct bt_conn * | conn | ) |
Disable Constant Tone Extension request procedure for a connection.
The function is available if
CONFIG_BT_DF_CONNECTION_CTE_REQ
is enabled.
conn | Connection object. |
int bt_df_conn_cte_req_enable | ( | struct bt_conn * | conn, |
const struct bt_df_conn_cte_req_params * | params ) |
Enable Constant Tone Extension request procedure for a connection.
The function is available if
CONFIG_BT_DF_CONNECTION_CTE_REQ
is enabled.
conn | Connection object. |
params | CTE receive and sampling parameters. |
int bt_df_conn_cte_rsp_disable | ( | struct bt_conn * | conn | ) |
Disable Constant Tone Extension response procedure for a connection.
The function is available if
CONFIG_BT_DF_CONNECTION_CTE_RSP
is enabled.
conn | Connection object. |
int bt_df_conn_cte_rsp_enable | ( | struct bt_conn * | conn | ) |
Enable Constant Tone Extension response procedure for a connection.
The function is available if
CONFIG_BT_DF_CONNECTION_CTE_RSP
is enabled.
conn | Connection object. |
int bt_df_conn_cte_rx_disable | ( | struct bt_conn * | conn | ) |
Disable receive and sampling of Constant Tone Extension for the connection object.
conn | Connection object. |
int bt_df_conn_cte_rx_enable | ( | struct bt_conn * | conn, |
const struct bt_df_conn_cte_rx_param * | params ) |
Enable receive and sampling of Constant Tone Extension for the connection object.
conn | Connection object. |
params | CTE receive and sampling parameters. |
int bt_df_per_adv_sync_cte_rx_disable | ( | struct bt_le_per_adv_sync * | sync | ) |
Disable receive and sampling of Constant Tone Extension for the given sync set.
sync | Periodic advertising sync object. |
int bt_df_per_adv_sync_cte_rx_enable | ( | struct bt_le_per_adv_sync * | sync, |
const struct bt_df_per_adv_sync_cte_rx_param * | params ) |
Enable receive and sampling of Constant Tone Extension for the given sync set.
Receive and sampling of Constant Tone Extension may be enabled only after periodic advertising sync is established.
sync | Periodic advertising sync object. |
params | CTE receive and sampling parameters. |
int bt_df_set_adv_cte_tx_param | ( | struct bt_le_ext_adv * | adv, |
const struct bt_df_adv_cte_tx_param * | params ) |
Set or update the Constant Tone Extension parameters for periodic advertising set.
[in] | adv | Advertising set object. |
[in] | params | Constant Tone Extension parameters. |
int bt_df_set_conn_cte_tx_param | ( | struct bt_conn * | conn, |
const struct bt_df_conn_cte_tx_param * | params ) |
Set Constant Tone Extension transmission parameters for a connection.
The function is available if
CONFIG_BT_DF_CONNECTION_CTE_TX
is enabled.
conn | Connection object. |
params | CTE transmission parameters. |