Skip to content

Commit 2895681

Browse files
committed
nimble/ll: Add HCI Subevent Result (Continue) events
1 parent 49eae2f commit 2895681

File tree

5 files changed

+552
-1
lines changed

5 files changed

+552
-1
lines changed

nimble/controller/src/ble_ll_cs_priv.h

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -223,6 +223,28 @@ struct ble_ll_cs_config {
223223
struct ble_ll_cs_proc_params proc_params;
224224
};
225225

226+
struct ble_ll_cs_step_result {
227+
uint8_t sounding_pct_estimate;
228+
uint8_t packet_rssi;
229+
uint8_t packet_quality;
230+
uint8_t packet_nadm;
231+
uint32_t time_of_departure_us;
232+
uint32_t time_of_departure_ns;
233+
uint32_t time_of_arrival_us;
234+
uint32_t time_of_arrival_ns;
235+
uint32_t packet_pct1;
236+
uint32_t packet_pct2;
237+
uint16_t measured_freq_offset;
238+
uint32_t tone_pct[5];
239+
uint8_t tone_quality_ind[5];
240+
};
241+
242+
struct ble_ll_cs_subevent {
243+
struct ble_hci_ev *hci_ev;
244+
unsigned int subev;
245+
uint8_t num_steps_reported;
246+
};
247+
226248
struct ble_ll_cs_sm {
227249
struct ble_ll_conn_sm *connsm;
228250
struct ble_ll_cs_supp_cap remote_cap;
@@ -299,6 +321,15 @@ struct ble_ll_cs_sm {
299321
uint8_t t_sy;
300322
/* Time of CS_SYNC sequence only */
301323
uint8_t t_sy_seq;
324+
uint8_t cs_sync_antenna;
325+
326+
/* Cache for HCI Subevent Result event */
327+
struct ble_ll_cs_subevent buffered_subevent;
328+
struct ble_ll_cs_step_result step_result;
329+
uint8_t cs_schedule_status;
330+
uint8_t proc_abort_reason;
331+
uint8_t subev_abort_reason;
332+
302333
/* Channel selection stuff */
303334
uint8_t mode0_channels[72];
304335
uint8_t non_mode0_channels[72];

0 commit comments

Comments
 (0)