Lines Matching full:event

36 static int bleprph_gap_event(struct ble_gap_event *event, void *arg);
140 * The nimble host executes this callback when a GAP event occurs. The
141 * application associates a GAP event callback with each connection that forms.
144 * @param event The type of event being signalled.
145 * @param ctxt Various information pertaining to the event.
150 * event; nonzero on failure. The semantics
152 * particular GAP event being signalled.
155 bleprph_gap_event(struct ble_gap_event *event, void *arg) in bleprph_gap_event() argument
160 switch (event->type) { in bleprph_gap_event()
164 event->connect.status == 0 ? "established" : "failed", in bleprph_gap_event()
165 event->connect.status); in bleprph_gap_event()
166 if (event->connect.status == 0) { in bleprph_gap_event()
167 rc = ble_gap_conn_find(event->connect.conn_handle, &desc); in bleprph_gap_event()
172 phy_conn_changed(event->connect.conn_handle); in bleprph_gap_event()
177 if (event->connect.status != 0) { in bleprph_gap_event()
184 MODLOG_DFLT(INFO, "disconnect; reason=%d ", event->disconnect.reason); in bleprph_gap_event()
185 bleprph_print_conn_desc(&event->disconnect.conn); in bleprph_gap_event()
199 event->conn_update.status); in bleprph_gap_event()
200 rc = ble_gap_conn_find(event->connect.conn_handle, &desc); in bleprph_gap_event()
208 event->adv_complete.reason); in bleprph_gap_event()
214 MODLOG_DFLT(INFO, "encryption change event; status=%d ", in bleprph_gap_event()
215 event->enc_change.status); in bleprph_gap_event()
216 rc = ble_gap_conn_find(event->connect.conn_handle, &desc); in bleprph_gap_event()
223 MODLOG_DFLT(INFO, "subscribe event; conn_handle=%d attr_handle=%d " in bleprph_gap_event()
225 event->subscribe.conn_handle, in bleprph_gap_event()
226 event->subscribe.attr_handle, in bleprph_gap_event()
227 event->subscribe.reason, in bleprph_gap_event()
228 event->subscribe.prev_notify, in bleprph_gap_event()
229 event->subscribe.cur_notify, in bleprph_gap_event()
230 event->subscribe.prev_indicate, in bleprph_gap_event()
231 event->subscribe.cur_indicate); in bleprph_gap_event()
235 MODLOG_DFLT(INFO, "mtu update event; conn_handle=%d cid=%d mtu=%d\n", in bleprph_gap_event()
236 event->mtu.conn_handle, in bleprph_gap_event()
237 event->mtu.channel_id, in bleprph_gap_event()
238 event->mtu.value); in bleprph_gap_event()
248 rc = ble_gap_conn_find(event->repeat_pairing.conn_handle, &desc); in bleprph_gap_event()
260 phy_update(event->phy_updated.tx_phy); in bleprph_gap_event()
291 * then starts serving events from default event queue.