static void ble_hs_process_rx_data_queue(void) { struct os_mbuf *om; while ((om = os_mqueue_get(&ble_hs_rx_q)) != NULL) { host_hci_data_rx(om); } }
static void nmgr_ble_event_data_in(struct os_event *ev) { struct os_mbuf *m_resp; uint16_t conn_handle; while ((m_resp = os_mqueue_get(&nmgr_ble_mq)) != NULL) { assert(OS_MBUF_USRHDR_LEN(m_resp) >= sizeof (conn_handle)); memcpy(&conn_handle, OS_MBUF_USRHDR(m_resp), sizeof (conn_handle)); ble_gattc_notify_custom(conn_handle, g_ble_nmgr_attr_handle, m_resp); } }
void ble_hs_process_tx_data_queue(void) { struct os_mbuf *om; while ((om = os_mqueue_get(&ble_hs_tx_q)) != NULL) { #ifdef PHONY_TRANSPORT ble_hs_test_pkt_txed(om); #else ble_hci_transport_host_acl_data_send(om); #endif } }
static void nmgr_process(struct nmgr_transport *nt) { struct os_mbuf *m; while (1) { m = os_mqueue_get(&nt->nt_imq); if (!m) { break; } nmgr_handle_req(nt, m); } }