Home
last modified time | relevance | path

Searched full:cte (Results 1 – 25 of 104) sorted by relevance

12345

/Zephyr-latest/subsys/bluetooth/controller/ll_sw/nordic/hal/nrf5/radio/
Dradio_df.h15 * used to drive antenna switching during CTE Tx/RX.
19 * switching during CTE Rx/Tx.
30 /* Configure CTE transmission with 2us antenna switching for AoD. */
32 /* Configure CTE transmission with 4us antenna switching for AoD. */
34 /* Configure CTE transmission with for AoA. */
36 /* Configure CTE reception with optional AoA mode and 2us antenna switching. */
38 /* Configure CTE reception with optional AoA mode and 4us antenna switching. */
49 * transmit CTE
59 /* Set buffer to store IQ samples collected during CTE sampling */
61 /* Get number of stored IQ samples during CTE receive */
[all …]
Dradio_nrf5_resources.h149 * including CTE EVENTS_PHYEND event is generated at very end of a PDU. In case there is no CTE in
157 * In case there is a CTE in a PDU then EVENTS_PHYEND event is generated after the CTE.
158 * If there is no CTE, it is generated in the same instant as EVENTS_END.
162 /* Delay of EVENTS_PHYEND event on receive PDU without CTE included when CTEINLINE is enabled */
Dradio.h23 /* CTE enabled, 1 bit field */
46 /* Helper macro to create bitfield with CTE type only */
48 /* Helper macro to get CTE enable field value from radio packet configuration bitfield */
52 #define RADIO_PKT_CONF_FLAGS(pdu, phy, cte) \ argument
53 (RADIO_PKT_CONF_PDU_TYPE((pdu)) | RADIO_PKT_CONF_PHY((phy)) | RADIO_PKT_CONF_CTE((cte)))
187 /* Enables CTE inline configuration to automatically setup sampling and
/Zephyr-latest/include/zephyr/bluetooth/
Ddirection.h12 /** Constant Tone Extension (CTE) types. */
14 /** Convenience value for purposes where non of CTE types is allowed. */
30 /** Convenience value that collects all possible CTE types in one entry. */
40 /** Possible statuses of PDU that contained reported CTE. */
46 * sampling of CTE.
50 * was able to process sampling of CTE in some other way.
53 /** There were no sufficient resources to sample CTE. */
60 * The structure holds information required to setup CTE transmission
64 /** Length of CTE in 8us units. */
67 * @brief CTE type.
[all …]
/Zephyr-latest/tests/bluetooth/df/connection_cte_req/src/
Dtest_cte_req_enable.c36 /* CTE length is stored in 1 octet. If BT Core spec. extends the max value to UINT8_MAX
40 "Can't test expected failures for CTE length value longer than or "
45 "Can't test expected failures for CTE length value smaller or equal to zero");
55 * @param data CTE request data.
56 * @param enable Enable or disable CTE request.
91 "Unexpected error value for CTE request enable with wrong conn handle"); in ZTEST()
101 "Unexpected error value for CTE request enable before set rx params"); in ZTEST()
113 "Unexpected error value for CTE request enable with too short request" in ZTEST()
126 "Unexpected error value for CTE request enable with too long requested CTE" in ZTEST()
139 "Unexpected error value for CTE request enable with too short requested CTE" in ZTEST()
[all …]
Dtest_cte_set_rx_params.h8 * @brief Structure to store CTE receive parameters for unit tests setup.
21 * @param params CTE sampling parameters.
22 * @param enable Enable or disable CTE sampling.
/Zephyr-latest/tests/bluetooth/df/connectionless_cte_tx/src/
Dtest_set_cl_cte_tx_enable.c27 * @param[in] enable Enable or disable CTE TX
61 zassert_equal(err, -EIO, "Unexpected error value for enable CTE with " in ZTEST()
74 zassert_equal(err, -EACCES, "Unexpected error value for enable CTE before " in ZTEST()
75 "CTE params set"); in ZTEST()
93 zassert_equal(err, -EACCES, "Unexpected error value for enable CTE for " in ZTEST()
113 zassert_equal(err, 0, "Unexpected error value for enable CTE"); in ZTEST()
117 zassert_equal(err, 0, "Unexpected error value for disable CTE "); in ZTEST()
134 zassert_equal(err, 0, "Unexpected error value for enable CTE after" in ZTEST()
139 zassert_equal(err, 0, "Unexpected error value for disable CTE "); in ZTEST()
154 zassert_equal(err, -EACCES, "Unexpected error value for disable CTE " in ZTEST()
[all …]
Dtest_set_cl_cte_tx_param.c36 * @param[in]cte_len Length of CTE in 8us units.
37 * @param[in]cte_type Type of CTE to be used for transmission.
38 * @param[in]cte_count Number of CTE that should be transmitted
42 * pattern. May be zero if CTE type is
45 * pattern. May be NULL if CTE type is AoA.
88 zassert_equal(err, 0, "Set AoD 2us CTE parameters failed"); in ZTEST()
101 zassert_equal(err, 0, "Set AoD 1us CTE parameters failed"); in ZTEST()
114 zassert_equal(err, -EIO, "Set AoA CTE parameters failed"); in ZTEST()
127 zassert_equal(err, -EIO, "Set AoA CTE parameters failed"); in ZTEST()
155 "Unexpected error value for invalid CTE length"); in ZTEST()
[all …]
/Zephyr-latest/subsys/bluetooth/controller/
DKconfig.df55 bool "Reception of CTE with 1us sampling slots"
60 during CTE reception with 1us sampling slots.
76 bool "Antenna switching during CTE transmission (AoD) feature"
80 Enable support for antenna switching during CTE transmission.
84 bool "Antenna switching during CTE reception (AoA) feature"
88 Enable support for antenna switching during CTE reception.
100 bool "Connection CTE Request feature"
103 Enable support for Bluetooth v5.1 Connection CTE Request feature
107 bool "Connection CTE Response feature"
110 Enable support for Bluetooth v5.1 Connection CTE Response feature
[all …]
/Zephyr-latest/subsys/bluetooth/controller/ll_sw/
Dull_df.c89 * advertising syncs are enabled. Checks may fail because CTE reception may be enabled/disabled
99 * max CTE count sampled in periodic advertising chain.
102 "Max advertising CTE count exceed BT_HCI_LE_SAMPLE_CTE_COUNT_MAX");
107 * Open question, should df_adv_cfg be released when Adv. CTE is disabled?
109 * before consecutive Adv CTE enable.
114 * max CTE count in a periodic advertising chain.
117 "Max advertising CTE count exceed BT_HCI_LE_CTE_COUNT_MAX");
219 /* @brief Function sets CTE transmission parameters for periodic advertising.
222 * @param[in]cte_len Length of CTE in 8us units.
223 * @param[in]cte_type Type of CTE to be used for transmission.
[all …]
Dull_df_internal.h22 /* Returns information if CTE sampling for periodic sync is requested to disable. */
24 /* Returns information if CTE sampling for a connection is not enabled. */
Dlll_sync.h22 /* Bitmask providing not allowed types of CTE. */
24 /* The member is required for filtering by CTE type. If filtering policy is disabled then
25 * synchronization is terminated for periodic advertisements with wrong CTE type.
/Zephyr-latest/tests/bluetooth/df/connectionless_cte_chains/src/
Dtest_add_cte_to_chain.c46 /* It does not matter for purpose of this tests what is the type or length of CTE used. */
65 "Unexpected error while enabling CTE for periodic advertising chain, err: %d", in ZTEST()
82 /* Use the same number for PDUs in a chain as for CTE request */ in ZTEST()
91 "Unexpected error while enabling CTE for periodic advertising chain, err: %d", in ZTEST()
108 /* Use the same number for PDUs in a chain as for CTE request */ in ZTEST()
117 "Unexpected error while enabling CTE for periodic advertising chain, err: %d", in ZTEST()
136 /* Use the same number for PDUs in a chain as for CTE request */ in ZTEST()
154 "Unexpected error while enabling CTE for periodic advertising chain, err: %d", in ZTEST()
171 /* Use the same number for PDUs in a chain as for CTE request */ in ZTEST()
180 "Unexpected error while enabling CTE for periodic advertising chain, err: %d", in ZTEST()
Dtest_remove_cte_from_chain.c48 /* It does not matter for purpose of this tests what is the type or length of CTE used. */
68 "Unexpected error while disabling CTE for periodic advertising chain, err: %d", in ZTEST()
84 /* Use the same number for PDUs in a chain as for CTE request */ in ZTEST()
92 "Unexpected error while enabling CTE for periodic advertising chain, err: %d", in ZTEST()
97 "Unexpected error while disabling CTE for periodic advertising chain, err: %d", in ZTEST()
113 /* Use the same number for PDUs in a chain as for CTE request */ in ZTEST()
123 "Unexpected error while disabling CTE for periodic advertising chain, err: %d", in ZTEST()
139 /* Use the same number for PDUs in a chain as for CTE request */ in ZTEST()
149 "Unexpected error while disabling CTE for periodic advertising chain, err: %d", in ZTEST()
176 /* Use smaller number of CTE for request than number of PDUs in an initial chain. in remove_cte_from_chain_after_enqueue_to_lll()
[all …]
Dtest_add_cte_to_chain.h7 /* Runs tests of adding CTE to a chain of periodic advertising PDUs */
/Zephyr-latest/subsys/bluetooth/controller/ll_sw/nordic/lll/
Dlll_df_internal.h11 /* Enables CTE transmission according to provided configuration */
57 /* Enables CTE reception according to provided configuration */
61 /* Function prepares memory for Host notification about insufficient resources to sample all CTE
66 /* Configure CTE transmission */
70 /* Disables CTE transmission */
Dlll_df_types.h7 /* @brief Max supported CTE length in 8us units */
9 /* @brief Min supported CTE length in 8us units */
21 /* @brief Macro to convert length of CTE to [us] */
43 uint8_t cte_length:6; /* Length of CTE in 8us units */
55 * If 1us sampling slots are supported maximum number of IQ samples in single CTE
97 /* Receive node aimed to report collected IQ samples during CTE receive */
151 /* Channel is set only once for a connection vent. The information will be used during CTE
183 uint8_t cte_rsp_en:1; /* CTE response is enabled */
184 uint8_t cte_types_allowed:3; /* Bitfield with allowed CTE types */
Dlll_df.c86 * @param[out] cte_len_us Pointer to store actual CTE length in [us]
97 * not all PDUs in a periodic advertising chain have CTE attached. in lll_df_cte_tx_enable()
98 * Nevertheless whole periodic advertising chain has the same CTE in lll_df_cte_tx_enable()
99 * configuration. Checking for existence of CTE configuration in lll_sync in lll_df_cte_tx_enable()
213 * @param chan_idx Channel used to receive PDU with CTE
257 * insufficient resources to sample all CTE in a periodic synchronization event.
325 * Parsing a PDU for CTEInfo is required to successfully receive a PDU that may include CTE.
366 * @param cte_type Type of the CTE
367 * @param cte_length Length of CTE in units of 8 us
/Zephyr-latest/tests/bluetooth/df/connection_cte_tx_params/src/
Dtest_set_conn_cte_tx_params.c24 * @brief Structure to store CTE receive parameters for unit tests setup.
90 "Unexpected error value for set conn CTE tx params with wrong conn handle"); in ZTEST()
101 "Unexpected error value for set conn CTE TX params with invalid slot " in ZTEST()
113 "Unexpected error value for set conn CTE TX params with invalid slot " in ZTEST()
127 "Unexpected error value for set conn CTE TX params with switch pattern set " in ZTEST()
141 "Unexpected error value for set conn CTE TX params with switch pattern set " in ZTEST()
157 "Unexpected error value for set conn CTE TX params with antenna ids " in ZTEST()
167 "Unexpected error value for set conn CTE TX params enabled with correct " in ZTEST()
/Zephyr-latest/subsys/bluetooth/host/
Ddirection.c35 /* Maximum length of CTE in 8[us] units */
83 LOG_ERR("Wrong CTE type"); in get_hci_cte_type()
159 * @param[out] max_cte_len Maximum length of CTE in 8[us] units.
186 "max CTE len %d", rp->switch_sample_rates, rp->num_ant, in hci_df_read_ant_info()
199 /* @brief Function handles send of HCI command to enable or disables CTE
203 * @param[in] enable Enable or disable CTE TX
291 /* If CTE Rx is enabled, command parameters total length must include in prepare_cl_cte_rx_enable_cmd_params()
319 * There is no right way to successfully send the command to enable CTE in prepare_cl_cte_rx_enable_cmd_params()
395 LOG_ERR("Received PA CTE report when CTE receive disabled"); in hci_df_prepare_connectionless_iq_report()
400 LOG_DBG("CTE filtered out by cte_type: %u", evt->cte_type); in hci_df_prepare_connectionless_iq_report()
[all …]
/Zephyr-latest/samples/bluetooth/direction_finding_central/src/
Dmain.c27 /* Interval used to run CTE request procedure periodically.
31 /* Length of CTE in unit of 8 us */
78 return "CRC not OK, CTE Info OK"; in packet_status2str()
166 printk("Enable receiving of CTE...\n"); in enable_cte_reqest()
172 printk("success. CTE receive enabled.\n"); in enable_cte_reqest()
174 printk("Request CTE from peer device...\n"); in enable_cte_reqest()
180 printk("success. CTE request enabled.\n"); in enable_cte_reqest()
254 printk("CTE[%s]: samples type: %s, samples count %d, cte type %s, slot durations: " in cte_recv_cb()
276 printk("CTE[%s]: request failed, err %u\n", addr, report->err); in cte_recv_cb()
/Zephyr-latest/tests/bluetooth/controller/ctrl_cte_req/src/
Dmain.c52 /* Set CTE request enable as if it was called by Host */ in cte_req_setup()
68 /* Tests of successful execution of CTE Request Procedure */
75 * | CTE Request Proc. | |
110 /* Initiate an CTE Request Procedure */ in ZTEST()
129 /* Receive notification of sampled CTE response */ in ZTEST()
150 * | CTE Request Proc. | |
185 /* Initiate an CTE Request Procedure */ in ZTEST()
204 /* Receive notification of sampled CTE response */ in ZTEST()
225 * | CTE Request Proc. | |
253 /* Enable response for CTE request */ in ZTEST()
[all …]
/Zephyr-latest/samples/bluetooth/direction_finding_peripheral/src/
Dmain.c34 /* Interval used to run CTE request procedure periodically.
38 /* Length of CTE in unit of 8 us */
59 printk("Set CTE transmission params..."); in enable_cte_response()
67 printk("Set CTE response enable..."); in enable_cte_response()
/Zephyr-latest/samples/bluetooth/direction_finding_connectionless_tx/src/
Dmain.c18 /* Length of CTE in unit of 8[us] */
20 /* Number of CTE send in single periodic advertising train */
109 printk("Update CTE params..."); in main()
125 printk("Enable CTE..."); in main()
/Zephyr-latest/subsys/bluetooth/controller/include/
Dll.h287 /* Sets CTE transmission parameters for periodic advertising */
291 /* Enables or disables CTE TX for periodic advertising */
296 /* Enables or disables CTE sampling in direction fingin connected mode. */
300 /* Enables or disables CTE request control procedure in direction fingin connected mode. */
304 /* Enables or disables CTE response control procedure in direction fingin connected mode. */
306 /* Enables or disables CTE sampling in periodic advertising scan */
313 /* Sets CTE transmission parameters for a connection */

12345