Zephyr API Documentation  3.6.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
7#ifndef BT_MESH_LARGE_COMP_DATA_CLI_H__
8#define BT_MESH_LARGE_COMP_DATA_CLI_H__
9
11
12#ifdef __cplusplus
13extern "C" {
14#endif
15
23
34};
35
51 struct bt_mesh_large_comp_data_rsp *rsp);
52
66 struct bt_mesh_large_comp_data_rsp *rsp);
67};
68
72 const struct bt_mesh_model *model;
73
76
79};
80
87#define BT_MESH_MODEL_LARGE_COMP_DATA_CLI(cli_data) \
88 BT_MESH_MODEL_CB(BT_MESH_MODEL_ID_LARGE_COMP_DATA_CLI, \
89 _bt_mesh_large_comp_data_cli_op, NULL, cli_data, \
90 &_bt_mesh_large_comp_data_cli_cb)
91
114 size_t offset, struct bt_mesh_large_comp_data_rsp *rsp);
115
138 size_t offset, struct bt_mesh_large_comp_data_rsp *rsp);
139
141extern const struct bt_mesh_model_op _bt_mesh_large_comp_data_cli_op[];
142extern const struct bt_mesh_model_cb _bt_mesh_large_comp_data_cli_cb;
149#ifdef __cplusplus
150}
151#endif
152
153#endif /* BT_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:37
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:50
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:65
Large Composition Data Client model context.
Definition: large_comp_data_cli.h:70
const struct bt_mesh_large_comp_data_cli_cb * cb
Optional callback for Large Composition Data Status messages.
Definition: large_comp_data_cli.h:78
const struct bt_mesh_model * model
Model entry pointer.
Definition: large_comp_data_cli.h:72
struct bt_mesh_msg_ack_ctx ack_ctx
Internal parameters for tracking message responses.
Definition: large_comp_data_cli.h:75
Large Composition Data response.
Definition: large_comp_data_cli.h:25
struct net_buf_simple * data
Pointer to allocated buffer for storing received data.
Definition: large_comp_data_cli.h:33
uint16_t offset
Offset within the page.
Definition: large_comp_data_cli.h:29
uint16_t total_size
Total size of the page.
Definition: large_comp_data_cli.h:31
uint8_t page
Page number.
Definition: large_comp_data_cli.h:27
Model callback functions.
Definition: access.h:809
Model opcode handler.
Definition: access.h:359
Abstraction that describes a Mesh Model instance.
Definition: access.h:887
Acknowledged message context for tracking the status of model messages pending a response.
Definition: msg.h:172
Simple network buffer representation.
Definition: buf.h:87