1 /* common.h - Common test code */ 2 3 /* 4 * Copyright (c) 2022 Nordic Semiconductor 5 * 6 * SPDX-License-Identifier: Apache-2.0 7 */ 8 9 #include <stddef.h> 10 11 #include <zephyr/types.h> 12 #include <zephyr/sys/printk.h> 13 #include <zephyr/sys/util.h> 14 #include <zephyr/sys/byteorder.h> 15 16 #include <zephyr/bluetooth/bluetooth.h> 17 #include <zephyr/bluetooth/conn.h> 18 #include <zephyr/bluetooth/att.h> 19 20 extern volatile int num_eatt_channels; 21 extern struct bt_conn *default_conn; 22 23 void central_setup_and_connect(void); 24 void peripheral_setup_and_connect(void); 25 void wait_for_disconnect(void); 26 void disconnect(void); 27