Home
last modified time | relevance | path

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

12345678910>>...39

/Zephyr-Core-3.6.0/subsys/bluetooth/mesh/
Dsar_cfg_srv.c30 static int sar_rx_store(const 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(const 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(const 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(const 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(const struct bt_mesh_model *model, struct bt_mesh_msg_ctx *ctx, in transmitter_get() argument
89 transmitter_status(model, ctx); in transmitter_get()
[all …]
Dhealth_srv.c107 static int health_fault_get(const struct bt_mesh_model *model, in health_fault_get() argument
118 health_get_registered(model, company_id, &sdu); in health_fault_get()
120 if (bt_mesh_model_send(model, ctx, &sdu, NULL, NULL)) { in health_fault_get()
127 static int health_fault_clear_unrel(const struct bt_mesh_model *model, in health_fault_clear_unrel() argument
131 struct bt_mesh_health_srv *srv = model->rt->user_data; in health_fault_clear_unrel()
139 return srv->cb->fault_clear(model, company_id); in health_fault_clear_unrel()
145 static int health_fault_clear(const struct bt_mesh_model *model, in health_fault_clear() argument
150 struct bt_mesh_health_srv *srv = model->rt->user_data; in health_fault_clear()
160 err = srv->cb->fault_clear(model, company_id); in health_fault_clear()
166 health_get_registered(model, company_id, &sdu); in health_fault_clear()
[all …]
Dmsg.h7 /** @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(const 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(const struct bt_mesh_model *model, struct bt_mesh_msg_ctx *ctx,
Dop_agg_srv.c22 /** Mesh Opcodes Aggragator Server Model Context */
24 /** Composition data model entry pointer. */
25 const struct bt_mesh_model *model; member
29 * was acknowledged by local server model.
36 static int handle_sequence(const struct bt_mesh_model *model, in handle_sequence() argument
103 err = bt_mesh_model_send(model, ctx, srv.ctx.sdu, NULL, NULL); in handle_sequence()
117 static int op_agg_srv_init(const struct bt_mesh_model *model) in op_agg_srv_init() argument
119 if (!bt_mesh_model_in_primary(model)) { in op_agg_srv_init()
124 /* Opcodes Aggregator Server model shall use the device key and in op_agg_srv_init()
127 model->keys[0] = BT_MESH_KEY_DEV_ANY; in op_agg_srv_init()
[all …]
Dcfg_srv.c50 static int dev_comp_data_get(const struct bt_mesh_model *model, in dev_comp_data_get() argument
81 if (bt_mesh_model_send(model, ctx, &sdu, NULL, NULL)) { in dev_comp_data_get()
115 static uint8_t _mod_pub_set(const struct bt_mesh_model *model, uint16_t pub_addr, in _mod_pub_set() argument
119 if (!model->pub) { in _mod_pub_set()
127 if (!model->pub->update && period) { in _mod_pub_set()
132 if (model->pub->addr == BT_MESH_ADDR_UNASSIGNED) { in _mod_pub_set()
136 model->pub->addr = BT_MESH_ADDR_UNASSIGNED; in _mod_pub_set()
137 model->pub->key = 0U; in _mod_pub_set()
138 model->pub->cred = 0U; in _mod_pub_set()
139 model->pub->ttl = 0U; in _mod_pub_set()
[all …]
/Zephyr-Core-3.6.0/doc/connectivity/bluetooth/api/mesh/
Dlcd_cli.rst6 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
Dop_agg_cli.rst6 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
Dlcd_srv.rst6 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
Dsar_cfg_srv.rst6 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.
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, and it must only be instantiated on the
Dod_cli.rst6 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
Dsrpl_cli.rst6 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
Dsar_cfg_cli.rst6 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.
Dpriv_beacon_cli.rst6 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.
Dsrpl_srv.rst6 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
Dop_agg_srv.rst6 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.6.0/include/zephyr/bluetooth/mesh/
Daccess.h219 * @name Models from the Mesh Model Specification
331 * @name Models from the Mesh Binary Large Object Transfer Model Specification
343 * @name Models from the Mesh Device Firmware Update Model Specification
358 /** Model opcode handler. */
373 * @param model Model instance receiving the message.
380 int (*const func)(const struct bt_mesh_model *model,
408 * @brief Helper to define an empty model array
416 * @brief Composition data SIG model entry with callback functions
422 * @param _id Model ID.
423 * @param _op Array of model opcode handlers.
[all …]
Dhealth_srv.h2 * @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)(const 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)(const struct bt_mesh_model *model, uint16_t company_id,
89 * @param model Health Server model instance to clear faults of.
94 int (*fault_clear)(const struct bt_mesh_model *model, uint16_t company_id);
[all …]
/Zephyr-Core-3.6.0/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 …]
/Zephyr-Core-3.6.0/samples/modules/tflite-micro/hello_world/src/
Dmain_functions.cpp21 #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.6.0/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-3.6.0/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(const struct bt_mesh_model *model);
103 void gen_level_publish(const struct bt_mesh_model *model);
104 void light_lightness_publish(const struct bt_mesh_model *model);
105 void light_lightness_linear_publish(const struct bt_mesh_model *model);
106 void light_ctl_publish(const struct bt_mesh_model *model);
107 void light_ctl_temp_publish(const struct bt_mesh_model *model);
108 void gen_level_publish_temp(const struct bt_mesh_model *model);
Ddevice_composition.c71 static int gen_onoff_get(const 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(const 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(const 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(const 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.6.0/samples/modules/tflite-micro/magic_wand/src/
Dmain_functions.cpp31 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 …]

12345678910>>...39