Zephyr API Documentation  2.7.0-rc2
A Scalable Open Source RTOS
testing.h
Go to the documentation of this file.
1
6/*
7 * Copyright (c) 2017 Intel Corporation
8 *
9 * SPDX-License-Identifier: Apache-2.0
10 */
11#ifndef ZEPHYR_INCLUDE_BLUETOOTH_TESTING_H_
12#define ZEPHYR_INCLUDE_BLUETOOTH_TESTING_H_
13
14#if defined(CONFIG_BT_MESH)
15#include <bluetooth/mesh.h>
16#endif /* CONFIG_BT_MESH */
17
25#ifdef __cplusplus
26extern "C" {
27#endif
28
34struct bt_test_cb {
35#if defined(CONFIG_BT_MESH)
36 void (*mesh_net_recv)(uint8_t ttl, uint8_t ctl, uint16_t src, uint16_t dst,
37 const void *payload, size_t payload_len);
38 void (*mesh_model_bound)(uint16_t addr, struct bt_mesh_model *model,
39 uint16_t key_idx);
40 void (*mesh_model_unbound)(uint16_t addr, struct bt_mesh_model *model,
41 uint16_t key_idx);
42 void (*mesh_prov_invalid_bearer)(uint8_t opcode);
43 void (*mesh_trans_incomp_timer_exp)(void);
44#endif /* CONFIG_BT_MESH */
45
47};
48
54
60
71
84
90
95#ifdef __cplusplus
96}
97#endif
98
99#endif /* ZEPHYR_INCLUDE_BLUETOOTH_TESTING_H_ */
void
Definition: eswifi_shell.c:15
int bt_test_mesh_rpl_clear(void)
void bt_test_cb_unregister(struct bt_test_cb *cb)
int bt_test_mesh_lpn_group_remove(uint16_t *groups, size_t groups_count)
int bt_test_mesh_lpn_group_add(uint16_t group)
void bt_test_cb_register(struct bt_test_cb *cb)
Bluetooth mesh Profile APIs.
struct _snode sys_snode_t
Definition: slist.h:33
__UINT8_TYPE__ uint8_t
Definition: stdint.h:58
__UINT16_TYPE__ uint16_t
Definition: stdint.h:59
Definition: access.h:483
uint16_t groups[CONFIG_BT_MESH_MODEL_GROUP_COUNT]
Definition: access.h:503
const struct bt_mesh_model_cb *const cb
Definition: access.h:509
Bluetooth Testing callbacks structure.
Definition: testing.h:34
sys_snode_t node
Definition: testing.h:46