![]() |
nRF Connect SDK API 3.4.99
|
#include <zephyr/bluetooth/conn.h>#include <zephyr/net_buf.h>Go to the source code of this file.
Data Structures | |
| struct | cs_de_iq_tones_t |
| Container of IQ values for local and remote measured tones. More... | |
| struct | cs_de_dist_estimates_t |
| Container of distance estimate results for a number of different methods, in meters. More... | |
| struct | cs_de_report_t |
| Output data for distance estimation. More... | |
Macros | |
| #define | CS_DE_NUM_CHANNELS (75) |
Enumerations | |
| enum | cs_de_tone_quality_t { CS_DE_TONE_QUALITY_OK , CS_DE_TONE_QUALITY_BAD } |
| enum | cs_de_quality_t { CS_DE_QUALITY_OK , CS_DE_QUALITY_DO_NOT_USE } |
| Quality of the procedure. More... | |
Functions | |
| void | cs_de_combined_iq_calculate (cs_de_iq_tones_t *cs_de_iq_tones, float iq_tones_comb[(75) *2]) |
| Combine the local and remote IQ values in a cs_de_iq_tones_t to one array. This is done through an element wise complex multiplication of the local and remote IQ values. | |
| cs_de_quality_t | cs_de_calc (cs_de_report_t *p_report) |
| Calculate distance estimates and quality for a given report This function assumes the report has been populated in all fields except the distance estimates and quality fields. | |
| float | cs_de_ifft (float iq_tones_comb[2 *CONFIG_BT_CS_DE_NFFT_SIZE]) |
| Calculates a distance estimate based on the IFFT magnitude of the input IQ values. Note! After calling this function, the input IQ values in iq_tones_comb are overwritten with the IFFT magnitude. | |
| float | cs_de_rtt (int32_t rtt_accumulated_half_ns, uint8_t rtt_count) |
| Calculate a distance estimate based on the accumulated RTT To do this, average time of flight is calculated and multiplied with the speed of light. | |
| float | cs_de_phase_slope (float iq_tones_comb[(75) *2]) |
| Calculate distance estimate based on the phase slope of the input IQ values. | |