123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899 |
- #ifndef ZEPHYR_INCLUDE_BLUETOOTH_TESTING_H_
- #define ZEPHYR_INCLUDE_BLUETOOTH_TESTING_H_
- #if defined(CONFIG_BT_MESH)
- #include <bluetooth/mesh.h>
- #endif
- #ifdef __cplusplus
- extern "C" {
- #endif
- struct bt_test_cb {
- #if defined(CONFIG_BT_MESH)
- void (*mesh_net_recv)(uint8_t ttl, uint8_t ctl, uint16_t src, uint16_t dst,
- const void *payload, size_t payload_len);
- void (*mesh_model_bound)(uint16_t addr, struct bt_mesh_model *model,
- uint16_t key_idx);
- void (*mesh_model_unbound)(uint16_t addr, struct bt_mesh_model *model,
- uint16_t key_idx);
- void (*mesh_prov_invalid_bearer)(uint8_t opcode);
- void (*mesh_trans_incomp_timer_exp)(void);
- #endif
- sys_snode_t node;
- };
- void bt_test_cb_register(struct bt_test_cb *cb);
- void bt_test_cb_unregister(struct bt_test_cb *cb);
- int bt_test_mesh_lpn_group_add(uint16_t group);
- int bt_test_mesh_lpn_group_remove(uint16_t *groups, size_t groups_count);
- int bt_test_mesh_rpl_clear(void);
- #ifdef __cplusplus
- }
- #endif
- #endif
|