/Zephyr-Core-3.5.0/subsys/bluetooth/mesh/ |
D | sar_cfg_srv.c | 30 static int sar_rx_store(struct bt_mesh_model *model, bool delete) in sar_rx_store() argument 35 return bt_mesh_model_data_store(model, false, "sar_rx", data, len); in sar_rx_store() 38 static int sar_tx_store(struct bt_mesh_model *model, bool delete) in sar_tx_store() argument 43 return bt_mesh_model_data_store(model, false, "sar_tx", data, len); in sar_tx_store() 46 static void transmitter_status(struct bt_mesh_model *model, in transmitter_status() argument 61 if (bt_mesh_model_send(model, ctx, &msg, NULL, NULL)) { in transmitter_status() 66 static void receiver_status(struct bt_mesh_model *model, in receiver_status() argument 79 if (bt_mesh_model_send(model, ctx, &msg, NULL, NULL)) { in receiver_status() 84 static int transmitter_get(struct bt_mesh_model *model, struct bt_mesh_msg_ctx *ctx, in transmitter_get() argument 89 transmitter_status(model, ctx); in transmitter_get() [all …]
|
D | health_srv.c | 108 static int health_fault_get(struct bt_mesh_model *model, in health_fault_get() argument 119 health_get_registered(model, company_id, &sdu); in health_fault_get() 121 if (bt_mesh_model_send(model, ctx, &sdu, NULL, NULL)) { in health_fault_get() 128 static int health_fault_clear_unrel(struct bt_mesh_model *model, in health_fault_clear_unrel() argument 132 struct bt_mesh_health_srv *srv = model->user_data; in health_fault_clear_unrel() 140 return srv->cb->fault_clear(model, company_id); in health_fault_clear_unrel() 146 static int health_fault_clear(struct bt_mesh_model *model, in health_fault_clear() argument 151 struct bt_mesh_health_srv *srv = model->user_data; in health_fault_clear() 161 err = srv->cb->fault_clear(model, company_id); in health_fault_clear() 167 health_get_registered(model, company_id, &sdu); in health_fault_clear() [all …]
|
D | msg.h | 7 /** @brief Send a model message. 9 * Sends a model message with the given context. If the message context is NULL, this 12 * @param model Model to send the message on. 21 int bt_mesh_msg_send(struct bt_mesh_model *model, struct bt_mesh_msg_ctx *ctx, 34 /** @brief Send an acknowledged model message. 36 * Sends a model message with the given context. If the message context is NULL, this 42 * @param model Model to send the message on. 54 int bt_mesh_msg_ackd_send(struct bt_mesh_model *model, struct bt_mesh_msg_ctx *ctx,
|
D | cfg_srv.c | 51 static int dev_comp_data_get(struct bt_mesh_model *model, in dev_comp_data_get() argument 82 if (bt_mesh_model_send(model, ctx, &sdu, NULL, NULL)) { in dev_comp_data_get() 116 static uint8_t _mod_pub_set(struct bt_mesh_model *model, uint16_t pub_addr, const uint8_t *uuid, in _mod_pub_set() argument 120 if (!model->pub) { in _mod_pub_set() 128 if (!model->pub->update && period) { in _mod_pub_set() 133 if (model->pub->addr == BT_MESH_ADDR_UNASSIGNED) { in _mod_pub_set() 137 model->pub->addr = BT_MESH_ADDR_UNASSIGNED; in _mod_pub_set() 138 model->pub->key = 0U; in _mod_pub_set() 139 model->pub->cred = 0U; in _mod_pub_set() 140 model->pub->ttl = 0U; in _mod_pub_set() [all …]
|
D | op_agg_srv.c | 20 /** Mesh Opcodes Aggragator Server Model Context */ 22 /** Composition data model entry pointer. */ 23 struct bt_mesh_model *model; member 26 static int handle_sequence(struct bt_mesh_model *model, in handle_sequence() argument 94 err = bt_mesh_model_send(model, ctx, agg->sdu, NULL, NULL); in handle_sequence() 108 static int op_agg_srv_init(struct bt_mesh_model *model) in op_agg_srv_init() argument 110 if (!bt_mesh_model_in_primary(model)) { in op_agg_srv_init() 115 /* Opcodes Aggregator Server model shall use the device key and in op_agg_srv_init() 118 model->keys[0] = BT_MESH_KEY_DEV_ANY; in op_agg_srv_init() 120 srv.model = model; in op_agg_srv_init()
|
/Zephyr-Core-3.5.0/doc/connectivity/bluetooth/api/mesh/ |
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 27 behavior in the `Bluetooth Mesh Model Specification 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 [all …]
|
D | lcd_cli.rst | 6 The Large Composition Data Client model is a foundation model defined by the Bluetooth mesh 7 specification. The model is optional, and is enabled through the 10 The Large Composition Data Client model was introduced in the Bluetooth Mesh Protocol Specification 12 a Config Composition Data Status message and reading the metadata of the model instances on a node 13 that supports the :ref:`bluetooth_mesh_lcd_srv` model. 15 The Large Composition Data Client model communicates with a Large Composition Data Server model 16 using the device key of the node containing the target Large Composition Data Server model instance. 18 If present, the Large Composition Data Client model must only be instantiated on the primary
|
D | op_agg_cli.rst | 6 The Opcodes Aggregator Client model is a foundation model defined by the Bluetooth mesh 7 specification. It is an optional model, enabled with the :kconfig:option:`CONFIG_BT_MESH_OP_AGG_CLI` 10 The Opcodes Aggregator Client model is introduced in the Bluetooth Mesh Protocol Specification 12 messages to nodes supporting the :ref:`bluetooth_mesh_models_op_agg_srv` model. 14 The Opcodes Aggregator Client model communicates with an Opcodes Aggregator Server model using the 17 If present, the Opcodes Aggregator Client model must only be instantiated on the primary element. 19 The Opcodes Aggregator Client model is implicitly bound to the device key on initialization. It 23 To be able to aggregate a message from a client model, it should support an asynchronous API, for
|
D | lcd_srv.rst | 6 The Large Composition Data Server model is a foundation model defined by the Bluetooth mesh 7 specification. The model is optional, and is enabled through the 10 The Large Composition Data Server model was introduced in the Bluetooth Mesh Protocol Specification 12 not fit in a Config Composition Data Status message and to expose metadata of the model instances. 15 :ref:`bluetooth_mesh_lcd_cli` to control it. The model only accepts messages encrypted with the 18 If present, the Large Composition Data Server model must only be instantiated on the primary 24 The Large Composition Data Server model allows each model to have a list of model's specific 25 metadata that can be read by the Large Composition Data Client model. The metadata list can be 31 marks the end of the metadata list and must always be present. If the model has no metadata, the
|
D | sar_cfg_srv.rst | 6 The SAR Configuration Server model is a foundation model defined by the Bluetooth mesh 7 specification. It is an optional model, enabled with the 10 The SAR Configuration Server model is introduced in the Bluetooth Mesh Protocol Specification 13 The model defines a set of states and messages for the SAR configuration. 15 The SAR Configuration Server model defines two states, SAR Transmitter state and SAR Receiver state. 18 The model also supports the SAR Transmitter and SAR Receiver get and set messages. 20 The SAR Configuration Server model does not have an API of its own, but relies on a 21 :ref:`bluetooth_mesh_sar_cfg_cli` to control it. The SAR Configuration Server model only accepts 24 If present, the SAR Configuration Server model must only be instantiated on the primary element.
|
D | cfg_cli.rst | 6 The Configuration Client model is a foundation model defined by the Bluetooth mesh 8 mesh node, including encryption keys, model configuration and feature 11 The Configuration Client model communicates with a 12 :ref:`bluetooth_mesh_models_cfg_srv` model using the device key of the target 13 node. The Configuration Client model may communicate with servers on other 14 nodes or self-configure through the local Configuration Server model. 20 The Configuration Client model is optional, and it must only be instantiated on the
|
D | sar_cfg_cli.rst | 6 The SAR Configuration Client model is a foundation model defined by the Bluetooth mesh 7 specification. It is an optional model, enabled with the 10 The SAR Configuration Client model is introduced in the Bluetooth Mesh Protocol Specification 12 supports the :ref:`bluetooth_mesh_sar_cfg_srv` model. 14 The model can send messages to query or change the states supported by the SAR Configuration Server 30 supported by the SAR Configuration Server model of a peer node. The SAR Configuration Client model 32 Server model. 34 If present, the SAR Configuration Client model must only be instantiated on the primary element.
|
D | od_cli.rst | 6 The On-Demand Private Proxy Client model is a foundation model defined by the Bluetooth mesh 7 specification. The model is optional, and is enabled with the 10 The On-Demand Private Proxy Client model was introduced in the Bluetooth Mesh Protocol Specification 15 The On-Demand Private Proxy Client model communicates with an On-Demand Private Proxy Server model 16 using the device key of the node containing the target On-Demand Private Proxy Server model 19 If present, the On-Demand Private Proxy Client model must only be instantiated on the primary 25 The On-Demand Private Proxy Client model behavior can be configured with the transmission timeout
|
D | srpl_cli.rst | 6 The Solicitation PDU RPL Configuration Client model is a foundation model defined by the Bluetooth 7 mesh specification. The model is optional, and is enabled through the 10 The Solicitation PDU RPL Configuration Client model was introduced in the Bluetooth Mesh Protocol 13 :ref:`bluetooth_mesh_srpl_srv` model. 15 The Solicitation PDU RPL Configuration Client model communicates with a Solicitation PDU RPL 16 Configuration Server model using the application keys configured by the Configuration Client. 18 If present, the Solicitation PDU RPL Configuration Client model must only be instantiated on the 24 The Solicitation PDU RPL Configuration Client model behavior can be configured with the transmission
|
D | priv_beacon_cli.rst | 6 The Private Beacon Client model is a foundation model defined by the Bluetooth 10 The Private Beacon Client model is introduced in the Bluetooth Mesh Protocol 19 The Private Beacon Client model communicates with a 20 :ref:`bluetooth_mesh_models_priv_beacon_srv` model using the device key of the 21 target node. The Private Beacon Client model may communicate with servers on 22 other nodes or self-configure through the local Private Beacon Server model. 28 If present, the Private Beacon Client model must only be instantiated on the primary element.
|
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 | 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.
|
/Zephyr-Core-3.5.0/samples/modules/tflite-micro/magic_wand/train/ |
D | train.py | 41 def calculate_model_size(model): argument 42 print(model.summary()) 45 for v in model.trainable_variables 47 print("Model size:", sum(var_sizes) / 1024, "KB") 52 model = tf.keras.Sequential([ 73 model.load_weights("./netmodels/CNN/weights.h5") 74 return model, model_path 79 model = tf.keras.Sequential([ 89 return model, model_path 101 if args.model == "CNN": [all …]
|
/Zephyr-Core-3.5.0/include/zephyr/bluetooth/mesh/ |
D | access.h | 212 * @name Models from the Mesh Model Specification 324 * @name Models from the Mesh Binary Large Object Transfer Model Specification 336 * @name Models from the Mesh Device Firmware Update Model Specification 351 /** Model opcode handler. */ 366 * @param model Model instance receiving the message. 373 int (*const func)(struct bt_mesh_model *model, 401 * @brief Helper to define an empty model array 409 * @brief Composition data SIG model entry with callback functions 415 * @param _id Model ID. 416 * @param _op Array of model opcode handlers. [all …]
|
D | health_srv.h | 2 * @brief Health Server Model APIs. 14 * @brief Health Server Model 15 * @defgroup bt_mesh_health_srv Health Server Model 27 /** Callback function for the Health Server model */ 46 * @param model Health Server model instance to get faults of. 56 int (*fault_get_cur)(struct bt_mesh_model *model, uint8_t *test_id, 72 * @param model Health Server model instance to get faults of. 82 int (*fault_get_reg)(struct bt_mesh_model *model, uint16_t company_id, 89 * @param model Health Server model instance to clear faults of. 94 int (*fault_clear)(struct bt_mesh_model *model, uint16_t company_id); [all …]
|
/Zephyr-Core-3.5.0/samples/modules/tflite-micro/hello_world/src/ |
D | main_functions.cpp | 21 #include "model.hpp" 30 const tflite::Model *model = nullptr; variable 43 /* Map the model into a usable data structure. This doesn't involve any in setup() 46 model = tflite::GetModel(g_model); in setup() 47 if (model->version() != TFLITE_SCHEMA_VERSION) { in setup() 48 MicroPrintf("Model provided is schema version %d not equal " in setup() 50 model->version(), TFLITE_SCHEMA_VERSION); in setup() 60 /* Build an interpreter to run the model with. */ in setup() 62 model, resolver, tensor_arena, kTensorArenaSize); in setup() 65 /* Allocate memory from the tensor_arena for the model's tensors. */ in setup() [all …]
|
/Zephyr-Core-3.5.0/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) 18 5. Model Size: **2.5 kB** 19 6. Model Category: **Regression** 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 | 54 ## Model Architecture [all …]
|
/Zephyr-Core-3.5.0/samples/boards/nrf/mesh/onoff_level_lighting_vnd_app/src/mesh/ |
D | device_composition.h | 18 /* Following 4 values are as per Mesh Model specification */ 25 /* Refer 7.2 of Mesh Model Specification */ 102 void gen_onoff_publish(struct bt_mesh_model *model); 103 void gen_level_publish(struct bt_mesh_model *model); 104 void light_lightness_publish(struct bt_mesh_model *model); 105 void light_lightness_linear_publish(struct bt_mesh_model *model); 106 void light_ctl_publish(struct bt_mesh_model *model); 107 void light_ctl_temp_publish(struct bt_mesh_model *model); 108 void gen_level_publish_temp(struct bt_mesh_model *model);
|
D | device_composition.c | 71 static int gen_onoff_get(struct bt_mesh_model *model, in gen_onoff_get() argument 91 if (bt_mesh_model_send(model, ctx, msg, NULL, NULL)) { in gen_onoff_get() 98 void gen_onoff_publish(struct bt_mesh_model *model) in gen_onoff_publish() argument 101 struct net_buf_simple *msg = model->pub->msg; in gen_onoff_publish() 103 if (model->pub->addr == BT_MESH_ADDR_UNASSIGNED) { in gen_onoff_publish() 116 err = bt_mesh_model_publish(model); in gen_onoff_publish() 122 static int gen_onoff_set_unack(struct bt_mesh_model *model, in gen_onoff_set_unack() argument 185 gen_onoff_publish(model); in gen_onoff_set_unack() 191 static int gen_onoff_set(struct bt_mesh_model *model, in gen_onoff_set() argument 210 (void)gen_onoff_get(model, ctx, buf); in gen_onoff_set() [all …]
|
/Zephyr-Core-3.5.0/samples/modules/tflite-micro/magic_wand/src/ |
D | main_functions.cpp | 31 const tflite::Model *model = nullptr; variable 37 * The size of this will depend on the model you're using, and may need to be 47 /* Map the model into a usable data structure. This doesn't involve any in setup() 50 model = tflite::GetModel(g_magic_wand_model_data); in setup() 51 if (model->version() != TFLITE_SCHEMA_VERSION) { in setup() 52 MicroPrintf("Model provided is schema version %d not equal " in setup() 54 model->version(), TFLITE_SCHEMA_VERSION); in setup() 71 /* Build an interpreter to run the model with. */ in setup() 73 model, micro_op_resolver, tensor_arena, kTensorArenaSize); in setup() 76 /* Allocate memory from the tensor_arena for the model's tensors. */ in setup() [all …]
|