/Zephyr-latest/subsys/bluetooth/mesh/ |
D | priv_beacon_cli.c | 21 static int handle_beacon_status(const struct bt_mesh_model *model, in handle_beacon_status() argument 59 static int handle_gatt_proxy_status(const struct bt_mesh_model *model, in handle_gatt_proxy_status() argument 89 static int handle_node_id_status(const struct bt_mesh_model *model, in handle_node_id_status() argument 137 static int priv_beacon_cli_init(const struct bt_mesh_model *model) in priv_beacon_cli_init() argument 139 if (!bt_mesh_model_in_primary(model)) { in priv_beacon_cli_init() 144 cli = model->rt->user_data; in priv_beacon_cli_init() 145 cli->model = model; in priv_beacon_cli_init() 147 model->keys[0] = BT_MESH_KEY_DEV_ANY; in priv_beacon_cli_init() 148 model->rt->flags |= BT_MESH_MOD_DEVKEY_ONLY; in priv_beacon_cli_init() 178 return bt_mesh_msg_ackd_send(cli->model, &ctx, &buf, rsp ? &rsp_ctx : NULL); in bt_mesh_priv_beacon_cli_set() [all …]
|
D | op_agg_cli.c | 27 const struct bt_mesh_model *model; member 42 static int handle_status(const struct bt_mesh_model *model, in handle_status() argument 105 static int op_agg_cli_init(const struct bt_mesh_model *model) in op_agg_cli_init() argument 107 if (!bt_mesh_model_in_primary(model)) { in op_agg_cli_init() 115 model->keys[0] = BT_MESH_KEY_DEV_ANY; in op_agg_cli_init() 118 cli.model = model; in op_agg_cli_init() 171 err = bt_mesh_model_send(cli.model, &ctx, cli.ctx.sdu, NULL, NULL); in bt_mesh_op_agg_cli_seq_send() 206 int bt_mesh_op_agg_cli_send(const struct bt_mesh_model *model, struct net_buf_simple *msg) in bt_mesh_op_agg_cli_send() argument 208 uint16_t src = bt_mesh_model_elem(model)->rt->addr; in bt_mesh_op_agg_cli_send()
|
D | brg_cfg_cli.c | 20 static int bridge_status(const struct bt_mesh_model *model, struct bt_mesh_msg_ctx *ctx, in bridge_status() argument 38 static int table_status(const struct bt_mesh_model *model, struct bt_mesh_msg_ctx *ctx, in table_status() argument 71 static int subnets_list(const struct bt_mesh_model *model, struct bt_mesh_msg_ctx *ctx, in subnets_list() argument 111 static int table_list(const struct bt_mesh_model *model, struct bt_mesh_msg_ctx *ctx, in table_list() argument 150 static int table_size_status(const struct bt_mesh_model *model, struct bt_mesh_msg_ctx *ctx, in table_size_status() argument 177 static int brg_cfg_cli_init(const struct bt_mesh_model *model) in brg_cfg_cli_init() argument 179 if (!bt_mesh_model_in_primary(model)) { in brg_cfg_cli_init() 184 if (!model->rt->user_data) { in brg_cfg_cli_init() 189 cli = model->rt->user_data; in brg_cfg_cli_init() 190 cli->model = model; in brg_cfg_cli_init() [all …]
|
D | testing.h | 28 void (*model_bound)(uint16_t addr, const struct bt_mesh_model *model, uint16_t key_idx); 29 void (*model_unbound)(uint16_t addr, const struct bt_mesh_model *model, uint16_t key_idx); 84 void bt_mesh_test_model_bound(uint16_t addr, const struct bt_mesh_model *model, uint16_t key_idx); 85 void bt_mesh_test_model_unbound(uint16_t addr, const struct bt_mesh_model *model, uint16_t key_idx);
|
D | msg.h | 21 int bt_mesh_msg_send(const struct bt_mesh_model *model, struct bt_mesh_msg_ctx *ctx, 54 int bt_mesh_msg_ackd_send(const struct bt_mesh_model *model, struct bt_mesh_msg_ctx *ctx,
|
D | testing.c | 63 void bt_mesh_test_model_bound(uint16_t addr, const struct bt_mesh_model *model, uint16_t key_idx) in bt_mesh_test_model_bound() argument 69 cb->model_bound(addr, model, key_idx); in bt_mesh_test_model_bound() 74 void bt_mesh_test_model_unbound(uint16_t addr, const struct bt_mesh_model *model, uint16_t key_idx) in bt_mesh_test_model_unbound() argument 80 cb->model_unbound(addr, model, key_idx); in bt_mesh_test_model_unbound()
|
/Zephyr-latest/samples/boards/phytec/reel_board/mesh_badge/src/ |
D | mesh.c | 162 static void attention_on(const struct bt_mesh_model *model) in attention_on() argument 167 static void attention_off(const struct bt_mesh_model *model) in attention_off() argument 182 static int gen_onoff_get(const struct bt_mesh_model *model, in gen_onoff_get() argument 187 struct led_onoff_state *state = model->rt->user_data; in gen_onoff_get() 190 bt_mesh_model_elem(model)->rt->addr, state->current); in gen_onoff_get() 194 if (bt_mesh_model_send(model, ctx, &msg, NULL, NULL)) { in gen_onoff_get() 201 static int gen_onoff_set_unack(const struct bt_mesh_model *model, in gen_onoff_set_unack() argument 205 struct net_buf_simple *msg = model->pub->msg; in gen_onoff_set_unack() 206 struct led_onoff_state *state = model->rt->user_data; in gen_onoff_set_unack() 232 bt_mesh_model_elem(model)->rt->addr, state->current); in gen_onoff_set_unack() [all …]
|
/Zephyr-latest/samples/modules/tflite-micro/hello_world/src/ |
D | main_functions.cpp | 30 const tflite::Model *model = nullptr; variable 46 model = tflite::GetModel(g_model); in setup() 47 if (model->version() != TFLITE_SCHEMA_VERSION) { in setup() 50 model->version(), TFLITE_SCHEMA_VERSION); in setup() 62 model, resolver, tensor_arena, kTensorArenaSize); in setup()
|
/Zephyr-latest/samples/modules/tflite-micro/magic_wand/src/ |
D | main_functions.cpp | 31 const tflite::Model *model = nullptr; variable 50 model = tflite::GetModel(g_magic_wand_model_data); in setup() 51 if (model->version() != TFLITE_SCHEMA_VERSION) { in setup() 54 model->version(), TFLITE_SCHEMA_VERSION); in setup() 73 model, micro_op_resolver, tensor_arena, kTensorArenaSize); in setup()
|
/Zephyr-latest/doc/connectivity/bluetooth/api/mesh/ |
D | cfg_srv.rst | 6 The Configuration Server model is a foundation model defined by the Bluetooth Mesh 7 specification. The Configuration Server model controls most parameters of the 11 The Configuration Server model is mandatory on all Bluetooth Mesh nodes, and
|
D | srpl_srv.rst | 6 The Solicitation PDU RPL Configuration Server model is a foundation model defined by the Bluetooth 7 mesh specification. The model is enabled if the node has the :ref:`bluetooth_mesh_od_srv` enabled. 9 The Solicitation PDU RPL Configuration Server model was introduced in the Bluetooth Mesh Protocol 16 :ref:`bluetooth_mesh_srpl_cli` to control it. The model only accepts messages encrypted with an 19 If present, the Solicitation PDU RPL Configuration Server model must only be instantiated on the 25 For the Solicitation PDU RPL Configuration Server model, the
|
D | access.rst | 13 The functionality of a mesh node is represented by models. A model implements 17 model. Conventionally, each element represents a single aspect of the mesh 23 The node's element and model structure is specified in the node composition 39 The opcode list contains all message opcodes the model can receive, as well as 42 model in each element. 44 The full opcode list must be passed to the model structure in the composition 54 The AppKey list contains all the application keys the model can receive 56 will be passed to the model. 58 The maximum number of supported application keys each model can hold is 66 A model will process all messages addressed to the unicast address of their [all …]
|
D | op_agg_srv.rst | 6 The Opcodes Aggregator Server model is a foundation model defined by the Bluetooth 7 mesh specification. It is an optional model, enabled with the 10 The Opcodes Aggregator Server model is introduced in the Bluetooth Mesh Protocol 14 The Opcodes Aggregator Server model accepts messages encrypted with the node's device key 17 If present, the Opcodes Aggregator Server model must only be instantiated on the primary element.
|
D | health_cli.rst | 6 The Health Client model interacts with a Health Server model to read out 10 their first parameter. This is a pointer to the client model instance to be 15 The Health Client model is optional, and may be instantiated on any element. 16 However, if a Health Client model is instantiated on an element other than the
|
D | brg_cfg_cli.rst | 6 The Bridge Configuration Client is a foundation model defined by the Bluetooth Mesh 7 specification. The model is optional, and is enabled through 10 The Bridge Configuration Client model provides functionality for configuring the 15 If present, the Bridge Configuration Client model must only be instantiated on the primary
|
D | od_srv.rst | 6 The On-Demand Private Proxy Server model is a foundation model defined by the Bluetooth Mesh 9 The On-Demand Private Proxy Server model was introduced in the Bluetooth Mesh Protocol Specification 17 :ref:`bluetooth_mesh_od_cli` to control it. The On-Demand Private Proxy Server model only accepts 20 If present, the On-Demand Private Proxy Server model must only be instantiated on the primary
|
D | rpr_srv.rst | 6 The Remote Provisioning Server model is a foundation model defined by the Bluetooth 10 The Remote Provisioning Server model is introduced in the Bluetooth Mesh Protocol 16 model only accepts messages encrypted with the node's device key. 18 If present, the Remote Provisioning Server model must be instantiated on the primary element. 27 The following limitations apply to Remote Provisioning Server model:
|
D | priv_beacon_srv.rst | 6 The Private Beacon Server model is a foundation model defined by the Bluetooth 10 The Private Beacon Server model is introduced in the Bluetooth Mesh Protocol 23 Server model only accepts messages encrypted with the node's device key. 26 Server model through the :c:struct:`bt_mesh_priv_beacon_srv` instance passed to 31 If present, the Private Beacon Server model must only be instantiated on the primary element.
|
D | shell.rst | 75 This prints a list of the composition data of the node, including a list of its model IDs. 92 All multibyte fields model messages are in little endian, except the opcode. 108 Sending raw mesh packets is a good way to test model message handler implementations during 109 development, as it can be done without having to implement the sending model. By default, only the 110 reception of the model messages can be tested this way, as the Bluetooth Mesh shell only includes 111 the foundation models. To receive a packet in the mesh node, you have to add a model with a valid 494 The Configuration Client model is an optional mesh subsystem that can be enabled through the 497 any instance of the Configuration Client model if the mentioned shell configuration options is 498 enabled, and as long as the Configuration Client model is present in the model composition of the 505 provisioning context initialized, the Configuration Client model targets itself by default. [all …]
|
/Zephyr-latest/samples/boards/nordic/mesh/onoff-app/src/ |
D | main.c | 57 static int gen_onoff_set(const struct bt_mesh_model *model, 61 static int gen_onoff_set_unack(const struct bt_mesh_model *model, 65 static int gen_onoff_get(const struct bt_mesh_model *model, 69 static int gen_onoff_status(const struct bt_mesh_model *model, 284 static int gen_onoff_get(const struct bt_mesh_model *model, in gen_onoff_get() argument 289 struct led_onoff_state *onoff_state = model->rt->user_data; in gen_onoff_get() 292 bt_mesh_model_elem(model)->rt->addr, onoff_state->current); in gen_onoff_get() 296 if (bt_mesh_model_send(model, ctx, &msg, NULL, NULL)) { in gen_onoff_get() 303 static int gen_onoff_set_unack(const struct bt_mesh_model *model, in gen_onoff_set_unack() argument 307 struct net_buf_simple *msg = model->pub->msg; in gen_onoff_set_unack() [all …]
|
/Zephyr-latest/samples/modules/tflite-micro/hello_world/train/ |
D | README.md | 3 This example shows how to train a 2.5 kB model to generate a `sine` wave. 10 - [Model Architecture](#model-architecture) 23 Train the model in the cloud using Google Colaboratory or locally using a 45 includes the following 3 model files: 49 | `model.pb` | Keras SavedModel | TensorFlow | Large-Scale/Cloud/Servers | 50 | `model.tflite` *(2.5 kB)* | Integer Only Quantized TFLite Model | TensorFlow Lite | Mobile Devic… 51 | `model.cc` | C Source File | TensorFlow Lite for Microcontrollers | Microcontrollers | 56 The final model used to simulate a sine wave is displayed below. It is a 62 *This image was derived from visualizing the 'model.tflite' file in [Netron](https://github.com/lut…
|
/Zephyr-latest/tests/bsim/bluetooth/mesh/src/ |
D | test_cdp1.c | 32 static int model_##number##_init(const struct bt_mesh_model *model); \ 109 static int model_1_init(const struct bt_mesh_model *model) in model_1_init() argument 114 static int model_2_init(const struct bt_mesh_model *model) in model_2_init() argument 116 ASSERT_OK(bt_mesh_model_extend(model, bt_mesh_model_find(&elems[0], TEST_MODEL_ID_1))); in model_2_init() 120 static int model_3_init(const struct bt_mesh_model *model) in model_3_init() argument 125 static int model_4_init(const struct bt_mesh_model *model) in model_4_init() argument 127 ASSERT_OK(bt_mesh_model_extend(bt_mesh_model_find(&elems[0], TEST_MODEL_ID_3), model)); in model_4_init() 128 ASSERT_OK(bt_mesh_model_correspond(model, bt_mesh_model_find(&elems[0], TEST_MODEL_ID_2))); in model_4_init() 132 static int model_5_init(const struct bt_mesh_model *model) in model_5_init() argument 137 static int model_6_init(const struct bt_mesh_model *model) in model_6_init() argument [all …]
|
/Zephyr-latest/drivers/gpio/ |
D | gpio_mcp230xx.c | 78 #define GPIO_MCP230XX_DEVICE(inst, num_gpios, open_drain, model) \ argument 79 static struct mcp23xxx_drv_data mcp##model##_##inst##_drvdata = { \ 86 static const struct mcp23xxx_config mcp##model##_##inst##_config = { \ 101 DEVICE_DT_INST_DEFINE(inst, gpio_mcp23xxx_init, NULL, &mcp##model##_##inst##_drvdata, \ 102 &mcp##model##_##inst##_config, POST_KERNEL, \
|
/Zephyr-latest/tests/bluetooth/mesh/basic/src/ |
D | main.c | 18 static int fault_get_cur(const struct bt_mesh_model *model, uint8_t *test_id, in fault_get_cur() argument 33 static int fault_get_reg(const struct bt_mesh_model *model, uint16_t company_id, in fault_get_reg() argument 56 static int fault_clear(const struct bt_mesh_model *model, uint16_t company_id) in fault_clear() argument 67 static int fault_test(const struct bt_mesh_model *model, uint8_t test_id, in fault_test() argument 75 bt_mesh_health_srv_fault_update(bt_mesh_model_elem(model)); in fault_test()
|
/Zephyr-latest/samples/bluetooth/mesh/src/ |
D | main.c | 104 static int onoff_status_send(const struct bt_mesh_model *model, in onoff_status_send() argument 129 return bt_mesh_model_send(model, ctx, &buf, NULL, NULL); in onoff_status_send() 153 static int gen_onoff_get(const struct bt_mesh_model *model, in gen_onoff_get() argument 157 onoff_status_send(model, ctx); in gen_onoff_get() 161 static int gen_onoff_set_unack(const struct bt_mesh_model *model, in gen_onoff_set_unack() argument 204 static int gen_onoff_set(const struct bt_mesh_model *model, in gen_onoff_set() argument 208 (void)gen_onoff_set_unack(model, ctx, buf); in gen_onoff_set() 209 onoff_status_send(model, ctx); in gen_onoff_set() 223 static int gen_onoff_status(const struct bt_mesh_model *model, in gen_onoff_status() argument
|