7#ifndef ZEPHYR_INCLUDE_BLUETOOTH_DF_H_
8#define ZEPHYR_INCLUDE_BLUETOOTH_DF_H_
Bluetooth subsystem core APIs.
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.
bt_df_iq_sample
Definition direction.h:109
@ BT_DF_IQ_SAMPLE_16_BITS_INT
Reported IQ samples have 16 bits signed integer format.
Definition direction.h:115
@ BT_DF_IQ_SAMPLE_8_BITS_INT
Reported IQ samples have 8 bits signed integer format.
Definition direction.h:113
bt_df_antenna_switching_slot
Allowed antenna switching slots: 1 us or 2 us.
Definition direction.h:38
@ BT_DF_ANTENNA_SWITCHING_SLOT_1US
Definition direction.h:39
@ BT_DF_ANTENNA_SWITCHING_SLOT_2US
Definition direction.h:40
int bt_df_conn_cte_rsp_enable(struct bt_conn *conn)
Enable Constant Tone Extension response procedure for a connection.
bt_df_cte_type
Constant Tone Extension (CTE) types.
Definition direction.h:16
@ BT_DF_CTE_TYPE_NONE
Convenience value for purposes where non of CTE types is allowed.
Definition direction.h:18
@ BT_DF_CTE_TYPE_AOD_1US
Angle of Departure mode with 1 us antenna switching slots.
Definition direction.h:26
@ BT_DF_CTE_TYPE_ALL
Convenience value that collects all possible CTE types in one entry.
Definition direction.h:34
@ BT_DF_CTE_TYPE_AOA
Angle of Arrival mode.
Definition direction.h:20
@ BT_DF_CTE_TYPE_AOD_2US
Angle of Departure mode with 2 us antenna switching slots.
Definition direction.h:32
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_rsp_disable(struct bt_conn *conn)
Disable Constant Tone Extension response procedure for a connection.
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_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.
bt_df_conn_iq_report_err
Definition direction.h:159
@ BT_DF_IQ_REPORT_ERR_NO_CTE
Received PDU without CTE.
Definition direction.h:163
@ BT_DF_IQ_REPORT_ERR_PEER_REJECTED
Peer rejected CTE request.
Definition direction.h:165
@ BT_DF_IQ_REPORT_ERR_SUCCESS
IQ samples report received successfully.
Definition direction.h:161
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_adv_cte_tx_enable(struct bt_le_ext_adv *adv)
Enable transmission of Constant Tone Extension for the given advertising set.
bt_df_packet_status
Possible statuses of PDU that contained reported CTE.
Definition direction.h:44
@ BT_DF_CTE_CRC_OK
Received PDU had CRC OK.
Definition direction.h:46
@ BT_DF_CTE_INSUFFICIENT_RESOURCES
There were no sufficient resources to sample CTE.
Definition direction.h:57
@ BT_DF_CTE_CRC_ERR_CTE_BASED_OTHER
Received PDU had incorrect CRC, but Radio peripheral was able to process sampling of CTE in some othe...
Definition direction.h:55
@ BT_DF_CTE_CRC_ERR_CTE_BASED_TIME
Received PDU had incorrect CRC, but Radio peripheral was able to parse CTEInfo field of the PDU and p...
Definition direction.h:51
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_req_disable(struct bt_conn *conn)
Disable Constant Tone Extension request procedure for a connection.
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.
#define BIT(n)
Unsigned integer with bit position n set (signed in assembly language).
Definition util_macro.h:44
__UINT8_TYPE__ uint8_t
Definition stdint.h:88
__UINT16_TYPE__ uint16_t
Definition stdint.h:89
__INT16_TYPE__ int16_t
Definition stdint.h:73
Constant Tone Extension parameters for connectionless transmission.
Definition direction.h:66
uint8_t cte_count
Number of CTE to transmit in each periodic adv interval.
Definition direction.h:77
uint8_t cte_len
Length of CTE in 8us units.
Definition direction.h:68
uint8_t cte_type
CTE type.
Definition direction.h:75
uint8_t * ant_ids
List of antenna IDs in the pattern.
Definition direction.h:81
uint8_t num_ant_ids
Number of Antenna IDs in the switch pattern.
Definition direction.h:79
Definition direction.h:210
uint8_t cte_length
Requested length of the CTE in 8 us units.
Definition direction.h:219
uint16_t interval
Requested interval for initiating the CTE Request procedure.
Definition direction.h:217
uint8_t cte_type
Requested type of the CTE.
Definition direction.h:226
Definition direction.h:144
uint8_t cte_types
Bitfield with allowed CTE types.
Definition direction.h:150
const uint8_t * ant_ids
Antenna switch pattern.
Definition direction.h:156
uint8_t num_ant_ids
Length of antenna switch pattern.
Definition direction.h:154
uint8_t slot_durations
Antenna switching slots (bt_df_antenna_switching_slot).
Definition direction.h:152
Constant Tone Extension parameters for CTE transmission in connected mode.
Definition direction.h:198
const uint8_t * ant_ids
Antenna switch pattern.
Definition direction.h:207
uint8_t num_ant_ids
Number of antenna switch pattern.
Definition direction.h:205
uint8_t cte_types
Bitfield with allowed CTE types (bt_df_cte_type.
Definition direction.h:203
Definition direction.h:168
enum bt_df_iq_sample sample_type
Type of IQ samples provided in a report.
Definition direction.h:188
uint8_t cte_type
Type of CTE (bt_df_cte_type).
Definition direction.h:180
struct bt_hci_le_iq_sample16 const * sample16
Definition direction.h:194
uint8_t slot_durations
Duration of slots when received CTE type is AoA (bt_df_antenna_switching_slot).
Definition direction.h:182
uint8_t sample_count
Number of IQ samples in report.
Definition direction.h:190
uint8_t rssi_ant_id
Id of antenna used to measure the RSSI.
Definition direction.h:178
uint8_t chan_idx
Channel index used to receive PDU with CTE that was sampled.
Definition direction.h:174
struct bt_hci_le_iq_sample const * sample
Definition direction.h:193
int16_t rssi
The RSSI of the PDU with CTE (excluding CTE).
Definition direction.h:176
enum bt_df_conn_iq_report_err err
Report receive failed reason.
Definition direction.h:170
uint8_t rx_phy
PHY that was used to receive PDU with CTE that was sampled.
Definition direction.h:172
uint16_t conn_evt_counter
Value of connection event counter when the CTE was received and sampled.
Definition direction.h:186
uint8_t packet_status
Status of received PDU with CTE (bt_df_packet_status).
Definition direction.h:184
Constant Tone Extension parameters for connectionless reception.
Definition direction.h:92
uint8_t cte_types
Bitfield with allowed CTE types.
Definition direction.h:98
uint8_t slot_durations
Antenna switching slots (bt_df_antenna_switching_slot).
Definition direction.h:100
uint8_t max_cte_count
Max number of CTEs to receive.
Definition direction.h:102
const uint8_t * ant_ids
Antenna switch pattern.
Definition direction.h:106
uint8_t num_ant_ids
Length of antenna switch pattern.
Definition direction.h:104
Definition direction.h:118
uint8_t rssi_ant_id
Id of antenna used to measure the RSSI.
Definition direction.h:124
uint16_t per_evt_counter
Value of the paEventCounter of the AUX_SYNC_IND PDU.
Definition direction.h:132
int16_t rssi
The RSSI of the PDU with CTE (excluding CTE).
Definition direction.h:122
uint8_t sample_count
Number of IQ samples in report.
Definition direction.h:134
struct bt_hci_le_iq_sample const * sample
Definition direction.h:139
uint8_t packet_status
Status of received PDU with CTE (bt_df_packet_status).
Definition direction.h:130
enum bt_df_iq_sample sample_type
Type of IQ samples provided in a report.
Definition direction.h:136
uint8_t cte_type
Type of CTE (bt_df_cte_type).
Definition direction.h:126
uint8_t slot_durations
Duration of slots when received CTE type is AoA (bt_df_antenna_switching_slot).
Definition direction.h:128
uint8_t chan_idx
Channel index used to receive PDU with CTE that was sampled.
Definition direction.h:120
struct bt_hci_le_iq_sample16 const * sample16
Definition direction.h:140
Definition hci_types.h:3319