Zephyr API Documentation 4.4.99
A Scalable Open Source RTOS
Loading...
Searching...
No Matches
large_comp_data_cli.h
Go to the documentation of this file.
1/*
2 * Copyright (c) 2021 Nordic Semiconductor ASA
3 *
4 * SPDX-License-Identifier: Apache-2.0
5 */
6
12
13#ifndef ZEPHYR_INCLUDE_BLUETOOTH_MESH_LARGE_COMP_DATA_CLI_H_
14#define ZEPHYR_INCLUDE_BLUETOOTH_MESH_LARGE_COMP_DATA_CLI_H_
15
17
18#ifdef __cplusplus
19extern "C" {
20#endif
21
27
29
41
74
86
93#define BT_MESH_MODEL_LARGE_COMP_DATA_CLI(cli_data) \
94 BT_MESH_MODEL_CB(BT_MESH_MODEL_ID_LARGE_COMP_DATA_CLI, \
95 _bt_mesh_large_comp_data_cli_op, NULL, cli_data, \
96 &_bt_mesh_large_comp_data_cli_cb)
97
120 size_t offset, struct bt_mesh_large_comp_data_rsp *rsp);
121
144 size_t offset, struct bt_mesh_large_comp_data_rsp *rsp);
145
147extern const struct bt_mesh_model_op _bt_mesh_large_comp_data_cli_op[];
148extern const struct bt_mesh_model_cb _bt_mesh_large_comp_data_cli_cb;
150
154
155#ifdef __cplusplus
156}
157#endif
158
159#endif /* ZEPHYR_INCLUDE_BLUETOOTH_MESH_LARGE_COMP_DATA_CLI_H_ */
int bt_mesh_models_metadata_get(uint16_t net_idx, uint16_t addr, uint8_t page, size_t offset, struct bt_mesh_large_comp_data_rsp *rsp)
Send Models Metadata Get message.
int bt_mesh_large_comp_data_get(uint16_t net_idx, uint16_t addr, uint8_t page, size_t offset, struct bt_mesh_large_comp_data_rsp *rsp)
Send Large Composition Data Get message.
Bluetooth Mesh Profile APIs.
__UINT8_TYPE__ uint8_t
Definition stdint.h:88
__UINT16_TYPE__ uint16_t
Definition stdint.h:89
Large Composition Data Status messages callbacks.
Definition large_comp_data_cli.h:43
void(* large_comp_data_status)(struct bt_mesh_large_comp_data_cli *cli, uint16_t addr, struct bt_mesh_large_comp_data_rsp *rsp)
Optional callback for Large Composition Data Status message.
Definition large_comp_data_cli.h:56
void(* models_metadata_status)(struct bt_mesh_large_comp_data_cli *cli, uint16_t addr, struct bt_mesh_large_comp_data_rsp *rsp)
Optional callback for Models Metadata Status message.
Definition large_comp_data_cli.h:71
Large Composition Data Client model context.
Definition large_comp_data_cli.h:76
const struct bt_mesh_large_comp_data_cli_cb * cb
Optional callback for Large Composition Data Status messages.
Definition large_comp_data_cli.h:84
const struct bt_mesh_model * model
Model entry pointer.
Definition large_comp_data_cli.h:78
struct bt_mesh_msg_ack_ctx ack_ctx
Internal parameters for tracking message responses.
Definition large_comp_data_cli.h:81
Large Composition Data response.
Definition large_comp_data_cli.h:31
struct net_buf_simple * data
Pointer to allocated buffer for storing received data.
Definition large_comp_data_cli.h:39
uint16_t offset
Offset within the page.
Definition large_comp_data_cli.h:35
uint16_t total_size
Total size of the page.
Definition large_comp_data_cli.h:37
uint8_t page
Page number.
Definition large_comp_data_cli.h:33
Model callback functions.
Definition access.h:635
Model opcode handler.
Definition access.h:182
Abstraction that describes a Mesh Model instance.
Definition access.h:713
Acknowledged message context for tracking the status of model messages pending a response.
Definition msg.h:172
Simple network buffer representation.
Definition net_buf.h:89