Skip to content

Commit db6987d

Browse files
committed
[wip]nimble/ll: Add HCI Subevent Result (Continue) events
1 parent 8bff1d8 commit db6987d

File tree

5 files changed

+516
-5
lines changed

5 files changed

+516
-5
lines changed

nimble/controller/src/ble_ll_cs_priv.h

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -193,6 +193,26 @@ struct ble_ll_cs_config {
193193
struct ble_ll_cs_proc_params proc_params;
194194
};
195195

196+
struct ble_ll_cs_step_result {
197+
uint8_t sounding_pct_estimate;
198+
uint8_t packet_rssi;
199+
uint8_t packet_quality;
200+
uint8_t packet_nadm;
201+
uint32_t time_of_departure;
202+
uint32_t time_of_arrival;
203+
uint32_t packet_pct1;
204+
uint32_t packet_pct2;
205+
uint16_t measured_freq_offset;
206+
uint32_t tone_pct[5];
207+
uint8_t tone_quality_ind[5];
208+
};
209+
210+
struct ble_ll_cs_subevent {
211+
struct ble_hci_ev *hci_ev;
212+
unsigned int subev;
213+
uint8_t num_steps_reported;
214+
};
215+
196216
struct ble_ll_cs_sm {
197217
struct ble_ll_conn_sm *connsm;
198218
struct ble_ll_cs_supp_cap remote_cap;
@@ -290,6 +310,14 @@ struct ble_ll_cs_sm {
290310
uint8_t channel;
291311
/* Cached main mode channels that will be used in repetiton steps */
292312
uint8_t repetition_channels[3];
313+
uint8_t cs_sync_antenna;
314+
315+
/* Cache for HCI Subevent Result event */
316+
struct ble_ll_cs_subevent buffered_subevent;
317+
struct ble_ll_cs_step_result step_result;
318+
uint8_t cs_schedule_status;
319+
uint8_t proc_abort_reason;
320+
uint8_t subev_abort_reason;
293321

294322
/* Channel selection stuff */
295323
uint8_t mode0_channels[72];

0 commit comments

Comments
 (0)