Home
last modified time | relevance | path

Searched full:model (Results 1 – 25 of 544) sorted by relevance

12345678910>>...22

/Zephyr-Core-2.7.6/include/bluetooth/mesh/
Daccess.h110 /* Models from the Mesh Model Specification */
164 /** Model opcode handler. */
179 * @param model Model instance receiving the message.
186 int (*const func)(struct bt_mesh_model *model,
206 /** Helper to define an empty model array */
211 * @brief Composition data SIG model entry with callback functions.
213 * @param _id Model ID.
214 * @param _op Array of model opcode handlers.
215 * @param _pub Model publish parameters.
216 * @param _user_data User data for the model.
[all …]
Dhealth_srv.h2 * @brief Health Server Model APIs.
14 * @brief Health Server Model
15 * @defgroup bt_mesh_health_srv Health Server Model
24 /** Callback function for the Health Server model */
43 * @param model Health Server model instance to get faults of.
53 int (*fault_get_cur)(struct bt_mesh_model *model, uint8_t *test_id,
69 * @param model Health Server model instance to get faults of.
79 int (*fault_get_reg)(struct bt_mesh_model *model, uint16_t company_id,
86 * @param model Health Server model instance to clear faults of.
91 int (*fault_clear)(struct bt_mesh_model *model, uint16_t company_id);
[all …]
Dcfg_cli.h2 * @brief Configuration Client Model APIs.
14 * @brief Configuration Client Model
15 * @defgroup bt_mesh_cfg_cli Configuration Client Model
24 /** Mesh Configuration Client Model Context */
26 /** Composition data model entry pointer. */
27 struct bt_mesh_model *model; member
35 * @brief Generic Configuration Client model composition data entry.
355 /** @brief Bind an application to a SIG model on the target node.
359 * @param elem_addr Element address the model is in.
361 * @param mod_id Model ID.
[all …]
Dcfg_srv.h2 * @brief Configuration Server Model APIs.
14 * @brief Configuration Server Model
15 * @defgroup bt_mesh_cfg_srv Configuration Server Model
26 * @brief Generic Configuration Server model composition data entry.
/Zephyr-Core-2.7.6/doc/reference/bluetooth/mesh/
Daccess.rst13 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 …]
Dcfg_cli.rst6 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
Dshell.rst57 This prints a list of the composition data of the node, including a list of its model IDs.
73 All multibyte fields model messages are in little endian, except the opcode.
84model message handler implementations during development, as it can be done without having to impl…
298 Configuration Client model
301 The Bluetooth mesh shell module instantiates a Configuration Client model for configuring itself an…
303 …ion Client model targets itself by default. When another node has been provisioned by the Bluetoot…
308 Get and set the Config Client model timeout used during message sending.
310 …* ``timeout in seconds``: If present, set the Config Client model timeout in seconds. If omitted, …
435 ``mesh mod-app-bind <addr> <AppIndex> <Model ID> [Company ID]``
438 …Bind an application key to a model. Models can only encrypt and decrypt messages sent with applica…
[all …]
Dhealth_cli.rst6 The Health Client model interacts with a Health Server model to read out
13 The Health Client model is optional, and may be instantiated in any element.
14 However, if a Health Client model is instantiated in an element other than the
Dcfg_srv.rst6 The Configuration Server model is a foundation model defined by the Bluetooth mesh
7 specification. The Configuration Server model controls most parameters of the
17 The Configuration Server model is mandatory on all Bluetooth mesh nodes, and
/Zephyr-Core-2.7.6/include/drivers/
Dgna.h23 * Gaussian Mixture Model and Neural Network Accelerator (GNA)
38 * GNA Neural Network model header
39 * Describes the key parameters of the neural network model
58 * GNA Neural Network model information to be provided by application
59 * during model registration
68 * Request to perform inference on the given neural network model
117 struct gna_model_info *model,
140 * registering a model or performing inference
158 * @brief Register a neural network model
160 * Register a neural network model with the GNA device
[all …]
/Zephyr-Core-2.7.6/subsys/bluetooth/mesh/
Dhealth_srv.c108 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 …]
Dcfg_srv.c114 static int dev_comp_data_get(struct bt_mesh_model *model, in dev_comp_data_get() argument
141 if (bt_mesh_model_send(model, ctx, &sdu, NULL, NULL)) { in dev_comp_data_get()
176 static uint8_t _mod_pub_set(struct bt_mesh_model *model, uint16_t pub_addr, in _mod_pub_set() argument
180 if (!model->pub) { in _mod_pub_set()
188 if (!model->pub->update && period) { in _mod_pub_set()
193 if (model->pub->addr == BT_MESH_ADDR_UNASSIGNED) { in _mod_pub_set()
197 model->pub->addr = BT_MESH_ADDR_UNASSIGNED; in _mod_pub_set()
198 model->pub->key = 0U; in _mod_pub_set()
199 model->pub->cred = 0U; in _mod_pub_set()
200 model->pub->ttl = 0U; in _mod_pub_set()
[all …]
Dhealth_cli.c38 static int health_fault_status(struct bt_mesh_model *model, in health_fault_status() argument
84 static int health_current_status(struct bt_mesh_model *model, in health_current_status() argument
88 struct bt_mesh_health_cli *cli = model->user_data; in health_current_status()
116 static int health_period_status(struct bt_mesh_model *model, in health_period_status() argument
142 static int health_attention_status(struct bt_mesh_model *model, in health_attention_status() argument
204 err = bt_mesh_model_send(health_cli->model, &ctx, &msg, NULL, NULL); in bt_mesh_health_attention_get()
241 err = bt_mesh_model_send(health_cli->model, &ctx, &msg, NULL, NULL); in bt_mesh_health_attention_set()
276 err = bt_mesh_model_send(health_cli->model, &ctx, &msg, NULL, NULL); in bt_mesh_health_period_get()
313 err = bt_mesh_model_send(health_cli->model, &ctx, &msg, NULL, NULL); in bt_mesh_health_period_set()
360 err = bt_mesh_model_send(health_cli->model, &ctx, &msg, NULL, NULL); in bt_mesh_health_fault_test()
[all …]
Daccess.c38 /* Model publication information for persistent storage. */
65 struct bt_mesh_model *model = &elem->models[j]; in bt_mesh_model_foreach() local
67 func(model, elem, false, i == 0, user_data); in bt_mesh_model_foreach()
71 struct bt_mesh_model *model = &elem->vnd_models[j]; in bt_mesh_model_foreach() local
73 func(model, elem, true, i == 0, user_data); in bt_mesh_model_foreach()
281 BT_ERR("Invalid vendor model index %u", mod_idx); in bt_mesh_model_get()
288 BT_ERR("Invalid SIG model index %u", mod_idx); in bt_mesh_model_get()
309 BT_ERR("Invalid vendor model(company:0x%04x" in bt_mesh_vnd_mod_msg_cid_check()
459 struct bt_mesh_model *model; in bt_mesh_elem_find_group() local
464 model = &elem->models[i]; in bt_mesh_elem_find_group()
[all …]
/Zephyr-Core-2.7.6/samples/modules/tflite-micro/magic_wand/train/
Dtrain.py41 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 …]
Dtrain_magic_wand_model.ipynb29 "# Train a gesture recognition model for microcontroller use"
39 …ognition model for [TensorFlow Lite for Microcontrollers](https://tensorflow.org/lite/microcontrol…
41 …"The model is designed to be used with [Google Colaboratory](https://colab.research.google.com).\n…
123 "# Download the data we will use to train the model\n",
206 "!python train.py --model CNN --person true"
218 … "The `train.py` script writes a model, `model.tflite`, to the training scripts' directory.\n",
220 …"In the following cell, we convert this model into a C++ source file we can use with TensorFlow Li…
236 "!xxd -i model.tflite > /content/model.cc\n",
238 "!cat /content/model.cc"
246 "name": "Train a gesture recognition model for microcontroller use",
/Zephyr-Core-2.7.6/samples/modules/tflite-micro/hello_world/train/
DREADME.md3 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-2.7.6/samples/modules/tflite-micro/hello_world/src/
Dmain_functions.cc21 #include "model.h"
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-2.7.6/samples/boards/nrf/mesh/onoff_level_lighting_vnd_app/src/mesh/
Ddevice_composition.h18 /* 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);
Ddevice_composition.c71 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-2.7.6/drivers/neural_net/
Dintel_gna.c13 * Gaussian Mixture Model and Neural Network Accelerator (GNA)
87 SOC_DCACHE_INVALIDATE(pending_req.model->output,
89 /* copy output from the model buffer to applciation buffer */
90 memcpy(pending_req.output, pending_req.model->output,
138 LOG_ERR("model at %p of size %u exceeds L2 SRAM space", in intel_gna_setup_page_table()
282 struct gna_model_info *model, in intel_gna_register_model() argument
298 if ((model_handle == NULL) || (model == NULL)) { in intel_gna_register_model()
299 LOG_ERR("model and/or model_handle is NULL"); in intel_gna_register_model()
303 if ((model->header == NULL) || (model->rw_region == NULL)) { in intel_gna_register_model()
304 LOG_ERR("model header / rw_region is/are NULL"); in intel_gna_register_model()
[all …]
/Zephyr-Core-2.7.6/samples/modules/tflite-micro/magic_wand/src/
Dmain_functions.cc32 const tflite::Model *model = nullptr; variable
38 * The size of this will depend on the model you're using, and may need to be
55 /* Map the model into a usable data structure. This doesn't involve any in setup()
58 model = tflite::GetModel(g_magic_wand_model_data); in setup()
59 if (model->version() != TFLITE_SCHEMA_VERSION) { in setup()
61 "Model provided is schema version %d not equal " in setup()
63 model->version(), TFLITE_SCHEMA_VERSION); in setup()
80 /* Build an interpreter to run the model with. */ in setup()
82 model, micro_op_resolver, tensor_arena, kTensorArenaSize, error_reporter); in setup()
85 /* Allocate memory from the tensor_arena for the model's tensors. */ in setup()
[all …]
/Zephyr-Core-2.7.6/samples/boards/reel_board/mesh_badge/src/
Dmesh.c65 /* Use LED 0 for this model */
82 static void attention_on(struct bt_mesh_model *model) in attention_on() argument
87 static void attention_off(struct bt_mesh_model *model) in attention_off() argument
102 static int gen_onoff_get(struct bt_mesh_model *model, in gen_onoff_get() argument
107 struct led_onoff_state *state = model->user_data; in gen_onoff_get()
110 bt_mesh_model_elem(model)->addr, state->current); in gen_onoff_get()
114 if (bt_mesh_model_send(model, ctx, &msg, NULL, NULL)) { in gen_onoff_get()
121 static int gen_onoff_set_unack(struct bt_mesh_model *model, in gen_onoff_set_unack() argument
125 struct net_buf_simple *msg = model->pub->msg; in gen_onoff_set_unack()
126 struct led_onoff_state *state = model->user_data; in gen_onoff_set_unack()
[all …]
/Zephyr-Core-2.7.6/boards/arm64/fvp_baser_aemv8r/doc/
Ddebug-with-arm-ds.rst58 Create a new model configuration
61 Right click ``Zephyr`` in ``Project Explorer``, choose ``New -> Model Configuration``:
63 .. image:: images/create-new-model-configuration.png
65 :alt: Arm DS create new model configuration
69 1. Choose ``Iris`` for ``Model Interface``, then ``Next >``.
70 2. Choose ``Launch and connect to specific model``, then ``Next >``.
71 3. Set ``Model Path`` to ``$FVP_D/FVP_BaseR_AEMv8R``, then ``Finish``.
73 .. image:: images/create-new-model-configuration_model-path.png
75 :alt: Arm DS create new model configuration: set model path
80 .. image:: images/create-new-model-configuration_model-use-V8R64-Generic.png
[all …]
/Zephyr-Core-2.7.6/samples/boards/nrf/mesh/onoff-app/src/
Dmain.c51 /* Model Operation Codes */
57 static int gen_onoff_set(struct bt_mesh_model *model,
61 static int gen_onoff_set_unack(struct bt_mesh_model *model,
65 static int gen_onoff_get(struct bt_mesh_model *model,
69 static int gen_onoff_status(struct bt_mesh_model *model,
118 * The mesh stack dispatches a message to the first model in an element
125 * OnOff Model Server Op Dispatch Table
137 * OnOff Model Client Op Dispatch Table
166 * Element Model Declarations
215 * Button to Client Model Assignments
[all …]

12345678910>>...22