zephyr/subsys/bluetooth/host/testing.h
Michał Narajowski 1b77e8bbf1 Bluetooth: Mesh: Add Model Receive testing callback
Add a callback similar to net_recv that notifies the application when a
message is received in access layer. This is is useful for testing
purposes (especially automated testing).

Signed-off-by: Michał Narajowski <michal.narajowski@codecoup.pl>
2023-03-06 13:52:15 +01:00

24 lines
760 B
C

/**
* @file testing.h
* @brief Internal API for Bluetooth testing.
*/
/*
* Copyright (c) 2017 Intel Corporation
*
* SPDX-License-Identifier: Apache-2.0
*/
#if defined(CONFIG_BT_MESH)
void bt_test_mesh_net_recv(uint8_t ttl, uint8_t ctl, uint16_t src, uint16_t dst,
const void *payload, size_t payload_len);
void bt_test_mesh_model_recv(uint16_t src, uint16_t dst, const void *payload,
size_t payload_len);
void bt_test_mesh_model_bound(uint16_t addr, struct bt_mesh_model *model,
uint16_t key_idx);
void bt_test_mesh_model_unbound(uint16_t addr, struct bt_mesh_model *model,
uint16_t key_idx);
void bt_test_mesh_prov_invalid_bearer(uint8_t opcode);
void bt_test_mesh_trans_incomp_timer_exp(void);
#endif /* CONFIG_BT_MESH */