Skip to content

Commit

Permalink
[wip]nimble/ll: Add HCI Subevent Result (Continue) events
Browse files Browse the repository at this point in the history
  • Loading branch information
mkasenberg committed Oct 7, 2024
1 parent 6c40e43 commit 0af5711
Show file tree
Hide file tree
Showing 5 changed files with 512 additions and 5 deletions.
28 changes: 28 additions & 0 deletions nimble/controller/src/ble_ll_cs_priv.h
Original file line number Diff line number Diff line change
Expand Up @@ -193,6 +193,26 @@ struct ble_ll_cs_config {
struct ble_ll_cs_proc_params proc_params;
};

struct ble_ll_cs_step_result {
uint8_t sounding_pct_estimate;
uint8_t packet_rssi;
uint8_t packet_quality;
uint8_t packet_nadm;
uint32_t time_of_departure;
uint32_t time_of_arrival;
uint32_t packet_pct1;
uint32_t packet_pct2;
uint16_t measured_freq_offset;
uint32_t tone_pct[5];
uint8_t tone_quality_ind[5];
};

struct ble_ll_cs_subevent {
struct ble_hci_ev *hci_ev;
unsigned int subev;
uint8_t num_steps_reported;
};

struct ble_ll_cs_sm {
struct ble_ll_conn_sm *connsm;
struct ble_ll_cs_supp_cap remote_cap;
Expand Down Expand Up @@ -290,6 +310,14 @@ struct ble_ll_cs_sm {
uint8_t channel;
/* Cached main mode channels that will be used in repetiton steps */
uint8_t repetition_channels[3];
uint8_t cs_sync_antenna;

/* Cache for HCI Subevent Result event */
struct ble_ll_cs_subevent buffered_subevent;
struct ble_ll_cs_step_result step_result;
uint8_t cs_schedule_status;
uint8_t proc_abort_reason;
uint8_t subev_abort_reason;

/* Channel selection stuff */
uint8_t mode0_channels[72];
Expand Down
Loading

0 comments on commit 0af5711

Please sign in to comment.