Zephyr API Documentation 4.0.0
A Scalable Open Source RTOS
Loading...
Searching...
No Matches
priv_beacon_cli.h
Go to the documentation of this file.
1/*
2 * Copyright (c) 2020 Nordic Semiconductor ASA
3 *
4 * SPDX-License-Identifier: Apache-2.0
5 */
6
7#ifndef ZEPHYR_INCLUDE_BLUETOOTH_MESH_PRIV_BEACON_CLI_H__
8#define ZEPHYR_INCLUDE_BLUETOOTH_MESH_PRIV_BEACON_CLI_H__
9
11
12#ifdef __cplusplus
13extern "C" {
14#endif
15
28#define BT_MESH_MODEL_PRIV_BEACON_CLI(cli_data) \
29 BT_MESH_MODEL_CB(BT_MESH_MODEL_ID_PRIV_BEACON_CLI, \
30 bt_mesh_priv_beacon_cli_op, NULL, cli_data, \
31 &bt_mesh_priv_beacon_cli_cb)
32
34
44
54
66 struct bt_mesh_priv_beacon *priv_beacon);
67
77 uint8_t gatt_proxy);
78
88 struct bt_mesh_priv_node_id *priv_node_id);
89};
90
93 const struct bt_mesh_model *model;
94
95 /* Internal parameters for tracking message responses. */
97
100};
101
116 struct bt_mesh_priv_beacon *val,
117 struct bt_mesh_priv_beacon *rsp);
118
128 struct bt_mesh_priv_beacon *val);
129
144 uint8_t val, uint8_t *rsp);
145
155 uint8_t *val);
156
171 struct bt_mesh_priv_node_id *val,
172 struct bt_mesh_priv_node_id *rsp);
173
184 uint16_t key_net_idx,
185 struct bt_mesh_priv_node_id *val);
186
188extern const struct bt_mesh_model_op bt_mesh_priv_beacon_cli_op[];
194#ifdef __cplusplus
195}
196#endif
197
198#endif /* ZEPHYR_INCLUDE_BLUETOOTH_MESH_PRIV_BEACON_CLI_H__ */
int bt_mesh_priv_beacon_cli_node_id_set(uint16_t net_idx, uint16_t addr, struct bt_mesh_priv_node_id *val, struct bt_mesh_priv_node_id *rsp)
Set the target's Private Node Identity state.
int bt_mesh_priv_beacon_cli_gatt_proxy_set(uint16_t net_idx, uint16_t addr, uint8_t val, uint8_t *rsp)
Set the target's Private GATT Proxy state.
int bt_mesh_priv_beacon_cli_get(uint16_t net_idx, uint16_t addr, struct bt_mesh_priv_beacon *val)
Get the target's Private Beacon state.
int bt_mesh_priv_beacon_cli_gatt_proxy_get(uint16_t net_idx, uint16_t addr, uint8_t *val)
Get the target's Private GATT Proxy state.
int bt_mesh_priv_beacon_cli_set(uint16_t net_idx, uint16_t addr, struct bt_mesh_priv_beacon *val, struct bt_mesh_priv_beacon *rsp)
Set the target's Private Beacon state.
int bt_mesh_priv_beacon_cli_node_id_get(uint16_t net_idx, uint16_t addr, uint16_t key_net_idx, struct bt_mesh_priv_node_id *val)
Get the target's Private Node Identity state.
Bluetooth Mesh Profile APIs.
__UINT8_TYPE__ uint8_t
Definition stdint.h:88
__UINT16_TYPE__ uint16_t
Definition stdint.h:89
Model callback functions.
Definition access.h:813
Model opcode handler.
Definition access.h:363
Abstraction that describes a Mesh Model instance.
Definition access.h:891
Acknowledged message context for tracking the status of model messages pending a response.
Definition msg.h:172
Private Beacon Client Status messages callbacks.
Definition priv_beacon_cli.h:56
void(* priv_gatt_proxy_status)(struct bt_mesh_priv_beacon_cli *cli, uint16_t addr, uint8_t gatt_proxy)
Optional callback for Private GATT Proxy Status message.
Definition priv_beacon_cli.h:76
void(* priv_node_id_status)(struct bt_mesh_priv_beacon_cli *cli, uint16_t addr, struct bt_mesh_priv_node_id *priv_node_id)
Optional callback for Private Node Identity Status message.
Definition priv_beacon_cli.h:87
void(* priv_beacon_status)(struct bt_mesh_priv_beacon_cli *cli, uint16_t addr, struct bt_mesh_priv_beacon *priv_beacon)
Optional callback for Private Beacon Status message.
Definition priv_beacon_cli.h:65
Mesh Private Beacon Client model.
Definition priv_beacon_cli.h:92
const struct bt_mesh_model * model
Definition priv_beacon_cli.h:93
struct bt_mesh_msg_ack_ctx ack_ctx
Definition priv_beacon_cli.h:96
const struct bt_mesh_priv_beacon_cli_cb * cb
Optional callback for Private Beacon Client Status messages.
Definition priv_beacon_cli.h:99
Private Beacon.
Definition priv_beacon_cli.h:36
uint8_t rand_interval
Random refresh interval (in 10 second steps), or 0 to keep current value.
Definition priv_beacon_cli.h:42
uint8_t enabled
Private beacon is enabled.
Definition priv_beacon_cli.h:38
Private Node Identity.
Definition priv_beacon_cli.h:46
uint8_t status
Response status code.
Definition priv_beacon_cli.h:52
uint8_t state
Private Node Identity state.
Definition priv_beacon_cli.h:50
uint16_t net_idx
Index of the NetKey.
Definition priv_beacon_cli.h:48