NimBLE-Arduino 2.1.2
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
12#ifndef __BT_TESTING_H
13#define __BT_TESTING_H
14
15#include "slist.h"
16#include "glue.h"
17#include "access.h"
18
26#ifdef __cplusplus
27extern "C" {
28#endif
29
35struct bt_test_cb {
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
45 sys_snode_t node;
46};
47
53
59
69int bt_test_mesh_lpn_group_add(uint16_t group);
70
82int bt_test_mesh_lpn_group_remove(uint16_t *groups, size_t groups_count);
83
89
90uint8_t mod_bind(struct bt_mesh_model *model, uint16_t key_idx);
91uint8_t mod_unbind(struct bt_mesh_model *model, uint16_t key_idx, bool store);
92int cmd_mesh_init(int argc, char *argv[]);
93
94int bt_test_shell_init(void);
95int bt_test_bind_app_key_to_model(struct bt_mesh_model *model, uint16_t key_idx, uint16_t id);
96
101#ifdef __cplusplus
102}
103#endif
104
105#endif /* __BT_TESTING_H */
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)
Single-linked list implementation.
Definition access.h:444
Bluetooth Testing callbacks structure.
Definition testing.h:35