/Zephyr-Core-3.4.0/include/zephyr/bluetooth/mesh/ |
D | access.h | 147 /* Models from the Mesh Model Specification */ 207 /** Model opcode handler. */ 222 * @param model Model instance receiving the message. 229 int (*const func)(struct bt_mesh_model *model, 257 * @brief Helper to define an empty model array 265 * @brief Composition data SIG model entry with callback functions 271 * @param _id Model ID. 272 * @param _op Array of model opcode handlers. 273 * @param _pub Model publish parameters. 274 * @param _user_data User data for the model. [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 …]
|
D | cfg_cli.h | 2 * @brief Configuration Client Model APIs. 14 * @brief Configuration Client Model 15 * @defgroup bt_mesh_cfg_cli Configuration Client Model 31 /** @brief Optional callback for Model Sub Status messages. 33 * Handles received Model Sub Status messages from a server. 40 * @param mod_id The model ID within the element. 148 /** @brief Optional callback for Model App Status messages. 150 * Handles received Model App Status messages from a server. 157 * @param mod_id The model ID within the element. 190 /** Mesh Configuration Client Model Context */ [all …]
|
/Zephyr-Core-3.4.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 7 mesh specification. The model is optional, and is enabled through the :kconfig:option:`CONFIG_BT_ME… 9 …model was introduced in the Bluetooth Mesh Protocol Specification version 1.1, and supports the fu… 11 …model communicates with a Large Composition Data Server model using the device key of the node con… 13 If present, the Large Composition Data Client model must only be instantiated on the primary elemen…
|
D | op_agg_cli.rst | 6 The Opcodes Aggregator Client model is a foundation model defined by the Bluetooth 7 mesh specification. It is an optional model, enabled with the :kconfig:option:`CONFIG_BT_MESH_OP_AG… 9 The Opcodes Aggregator Client model is introduced in the Bluetooth Mesh Profile 11 …nce of access layer messages to nodes supporting the :ref:`bluetooth_mesh_models_op_agg_srv` model. 13 The Opcodes Aggregator Client model communicates with an Opcodes Aggregator Server model 16 The Opcodes Aggregator Client model must only be instantiated on the primary 19 The Opcodes Aggregator Client model should be bound to the same application keys that the client mo… 22 To be able to aggregate a message from a client model, it should support an asynchronous
|
D | lcd_srv.rst | 6 The Large Composition Data Server model is a foundation model defined by the Bluetooth 7 mesh specification. The model is optional, and is enabled through the :kconfig:option:`CONFIG_BT_ME… 9 The Large Composition Data Server model was introduced in the Bluetooth Mesh Protocol Specification… 10 … not fit in a Config Composition Data Status message and to expose metadata of the model instances. 13 The model only accepts messages encrypted with the node's device key. 15 If present, the Large Composition Data Server model must only be instantiated on the primary elemen… 20 … Data Server model allows each model to have a list of model's specific metadata that can be read … 23 …cro marks the end of the metadata list and must always be present. If the model has no metadata, t…
|
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, but should be instantiated on the
|
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 :kconfig:option:`CONFIG_BT_ME… 9 The Solicitation PDU RPL Configuration Client model was introduced in the Bluetooth Mesh Protocol 11 replay protection list (SRPL) of a node that supports the :ref:`bluetooth_mesh_srpl_srv` model. 13 …licitation PDU RPL Configuration Client model communicates with a Solicitation PDU RPL Configurati… 16 If present, the Solicitation PDU RPL Configuration Client model must be instantiated on the primary 22 The Solicitation PDU RPL Configuration Client model behavior can be configured with the transmissio…
|
D | od_cli.rst | 6 The On-Demand Private Proxy Client model is a foundation model defined by the Bluetooth 7 mesh specification. The model is optional, and is enabled with the :kconfig:option:`CONFIG_BT_MESH_… 9 The On-Demand Private Proxy Client model was introduced in the Bluetooth Mesh Protocol 13 The On-Demand Private Proxy Client model communicates with an On-Demand Private Proxy Server model 14 using the device key of the node containing the target On-Demand Private Proxy Server model instanc… 19 The On-Demand Private Proxy Client model behavior can be configured with the transmission timeout o…
|
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 Profile 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 The Private Beacon Client model is optional, and can be instantiated on any
|
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 15 The model only accepts messages encrypted with an application key as configured by the Configuratio… 17 If present, the Solicitation PDU RPL Configuration Server model must be instantiated on the primary 23 For the Solicitation PDU RPL Configuration Server model, the :kconfig:option:`CONFIG_BT_MESH_PROXY_…
|
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 :kconfig:option:`CONFIG_BT_MESH_OP_AG… 9 The Opcodes Aggregator Server model is introduced in the Bluetooth Mesh Profile 13 The Opcodes Aggregator Server model accepts messages encrypted with the node's device key 16 The Opcodes Aggregator Server model can only be instantiated on the
|
/Zephyr-Core-3.4.0/include/zephyr/drivers/ |
D | gna.h | 23 * Gaussian Mixture Model and Neural Network Accelerator (GNA) 41 * GNA Neural Network model header 42 * Describes the key parameters of the neural network model 61 * GNA Neural Network model information to be provided by application 62 * during model registration 71 * Request to perform inference on the given neural network model 120 struct gna_model_info *model, 143 * registering a model or performing inference 161 * @brief Register a neural network model 163 * Register a neural network model with the GNA device [all …]
|
/Zephyr-Core-3.4.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 | 50 static int dev_comp_data_get(struct bt_mesh_model *model, in dev_comp_data_get() argument 99 if (bt_mesh_model_send(model, ctx, &sdu, NULL, NULL)) { in dev_comp_data_get() 133 static uint8_t _mod_pub_set(struct bt_mesh_model *model, uint16_t pub_addr, in _mod_pub_set() argument 137 if (!model->pub) { in _mod_pub_set() 145 if (!model->pub->update && period) { in _mod_pub_set() 150 if (model->pub->addr == BT_MESH_ADDR_UNASSIGNED) { in _mod_pub_set() 154 model->pub->addr = BT_MESH_ADDR_UNASSIGNED; in _mod_pub_set() 155 model->pub->key = 0U; in _mod_pub_set() 156 model->pub->cred = 0U; in _mod_pub_set() 157 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.4.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.4.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.4.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.4.0/samples/modules/tflite-micro/hello_world/src/ |
D | main_functions.cpp | 21 #include "model.hpp" 31 const tflite::Model *model = nullptr; variable 52 /* Map the model into a usable data structure. This doesn't involve any in setup() 55 model = tflite::GetModel(g_model); in setup() 56 if (model->version() != TFLITE_SCHEMA_VERSION) { in setup() 58 "Model provided is schema version %d not equal " in setup() 60 model->version(), TFLITE_SCHEMA_VERSION); in setup() 69 /* Build an interpreter to run the model with. */ in setup() 71 model, resolver, tensor_arena, kTensorArenaSize, error_reporter); in setup() 74 /* Allocate memory from the tensor_arena for the model's tensors. */ in setup() [all …]
|
/Zephyr-Core-3.4.0/drivers/neural_net/ |
D | intel_gna.c | 13 * Gaussian Mixture Model and Neural Network Accelerator (GNA) 82 sys_cache_data_invd_range(pending_req.model->output, 84 /* copy output from the model buffer to application buffer */ 85 memcpy(pending_req.output, pending_req.model->output, 133 LOG_ERR("model at %p of size %u exceeds L2 SRAM space", in intel_gna_setup_page_table() 277 struct gna_model_info *model, in intel_gna_register_model() argument 293 if ((model_handle == NULL) || (model == NULL)) { in intel_gna_register_model() 294 LOG_ERR("model and/or model_handle is NULL"); in intel_gna_register_model() 298 if ((model->header == NULL) || (model->rw_region == NULL)) { in intel_gna_register_model() 299 LOG_ERR("model header / rw_region is/are NULL"); in intel_gna_register_model() [all …]
|