Bluetooth: Controller: Integrate CTE req in ULL with refactored LLCPs
Integrate existing CTE request control procedure code in ULL with implementation of refactor LLCPs. The commit includes code responsible for: - enabling CTE request and scheduling its execution by refactored LLCPs framework, - running CTE request periodically - disabling CTE reqest in case it is running periodic Signed-off-by: Piotr Pryga <piotr.pryga@nordicsemi.no>
This commit is contained in:
parent
f6f1ab9071
commit
cb29f29cc9
5 changed files with 45 additions and 20 deletions
|
@ -1649,6 +1649,18 @@ void ull_conn_done(struct node_rx_event_done *done)
|
|||
}
|
||||
#endif /* CONFIG_BT_CTLR_LE_PING */
|
||||
|
||||
#if defined(CONFIG_BT_CTLR_DF_CONN_CTE_REQ)
|
||||
if (conn->llcp.cte_req.req_expire != 0U) {
|
||||
if (conn->llcp.cte_req.req_expire > elapsed_event) {
|
||||
conn->llcp.cte_req.req_expire -= elapsed_event;
|
||||
} else {
|
||||
conn->llcp.cte_req.req_expire = 0U;
|
||||
ull_cp_cte_req(conn, conn->llcp.cte_req.min_cte_len,
|
||||
conn->llcp.cte_req.cte_type);
|
||||
}
|
||||
}
|
||||
#endif /* CONFIG_BT_CTLR_DF_CONN_CTE_REQ */
|
||||
|
||||
#if defined(CONFIG_BT_CTLR_CONN_RSSI_EVENT)
|
||||
/* generate RSSI event */
|
||||
if (lll->rssi_sample_count == 0U) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue