Zephyr API Documentation  3.6.99
A Scalable Open Source RTOS
Loading...
Searching...
No Matches
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#include <stdint.h>
15
16#if defined(CONFIG_BT_MESH)
18#endif /* CONFIG_BT_MESH */
19
27#ifdef __cplusplus
28extern "C" {
29#endif
30
36struct bt_test_cb {
37#if defined(CONFIG_BT_MESH)
38 void (*mesh_net_recv)(uint8_t ttl, uint8_t ctl, uint16_t src, uint16_t dst,
39 const void *payload, size_t payload_len);
40 void (*mesh_model_recv)(uint16_t src, uint16_t dst, const void *payload,
41 size_t payload_len);
42 void (*mesh_model_bound)(uint16_t addr, const struct bt_mesh_model *model,
43 uint16_t key_idx);
44 void (*mesh_model_unbound)(uint16_t addr, const struct bt_mesh_model *model,
45 uint16_t key_idx);
46 void (*mesh_prov_invalid_bearer)(uint8_t opcode);
47 void (*mesh_trans_incomp_timer_exp)(void);
48#endif /* CONFIG_BT_MESH */
49
51};
52
58
64
75
88
94
99#ifdef __cplusplus
100}
101#endif
102
103#endif /* ZEPHYR_INCLUDE_BLUETOOTH_TESTING_H_ */
int bt_test_mesh_rpl_clear(void)
Clear replay protection list cache.
void bt_test_cb_unregister(struct bt_test_cb *cb)
Unregister callbacks for Bluetooth testing purposes.
int bt_test_mesh_lpn_group_remove(uint16_t *groups, size_t groups_count)
Send Friend Subscription List Remove message.
int bt_test_mesh_lpn_group_add(uint16_t group)
Send Friend Subscription List Add message.
void bt_test_cb_register(struct bt_test_cb *cb)
Register callbacks for Bluetooth testing purposes.
struct _snode sys_snode_t
Single-linked list node structure.
Definition: slist.h:39
Bluetooth Mesh Profile APIs.
__UINT8_TYPE__ uint8_t
Definition: stdint.h:88
__UINT16_TYPE__ uint16_t
Definition: stdint.h:89
Abstraction that describes a Mesh Model instance.
Definition: access.h:881
uint16_t *const groups
Subscription List (group or virtual addresses)
Definition: access.h:911
const struct bt_mesh_model_cb *const cb
Model callback structure.
Definition: access.h:923
Bluetooth Testing callbacks structure.
Definition: testing.h:36
sys_snode_t node
Definition: testing.h:50