Home
last modified time | relevance | path

Searched refs:model (Results 1 – 25 of 689) sorted by relevance

12345678910>>...28

/Zephyr-Core-3.4.0/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 …]
Dsar_cfg_srv.c30 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 …]
Dcfg_srv.c50 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 …]
Dlarge_comp_data_cli.c36 static int data_status(struct bt_mesh_model *model, struct bt_mesh_msg_ctx *ctx, in data_status() argument
81 static int large_comp_data_status(struct bt_mesh_model *model, struct bt_mesh_msg_ctx *ctx, in large_comp_data_status() argument
84 return data_status(model, ctx, buf, OP_LARGE_COMP_DATA_STATUS, in large_comp_data_status()
89 static int models_metadata_status(struct bt_mesh_model *model, struct bt_mesh_msg_ctx *ctx, in models_metadata_status() argument
92 return data_status(model, ctx, buf, OP_MODELS_METADATA_STATUS, in models_metadata_status()
103 static int large_comp_data_cli_init(struct bt_mesh_model *model) in large_comp_data_cli_init() argument
105 if (!bt_mesh_model_in_primary(model)) { in large_comp_data_cli_init()
110 model->keys[0] = BT_MESH_KEY_DEV_ANY; in large_comp_data_cli_init()
111 model->flags |= BT_MESH_MOD_DEVKEY_ONLY; in large_comp_data_cli_init()
113 cli = model->user_data; in large_comp_data_cli_init()
[all …]
Dlarge_comp_data_srv.c40 struct bt_mesh_model *model; member
43 static int handle_large_comp_data_get(struct bt_mesh_model *model, struct bt_mesh_msg_ctx *ctx, in handle_large_comp_data_get() argument
82 if (bt_mesh_model_send(model, ctx, &rsp, NULL, NULL)) { in handle_large_comp_data_get()
89 static int handle_models_metadata_get(struct bt_mesh_model *model, struct bt_mesh_msg_ctx *ctx, in handle_models_metadata_get() argument
141 if (bt_mesh_model_send(model, ctx, &rsp, NULL, NULL)) { in handle_models_metadata_get()
154 static int large_comp_data_srv_init(struct bt_mesh_model *model) in large_comp_data_srv_init() argument
156 if (!bt_mesh_model_in_primary(model)) { in large_comp_data_srv_init()
162 model->keys[0] = BT_MESH_KEY_DEV; in large_comp_data_srv_init()
163 model->flags |= BT_MESH_MOD_DEVKEY_ONLY; in large_comp_data_srv_init()
165 srv.model = model; in large_comp_data_srv_init()
Dmsg.c90 int bt_mesh_msg_send(struct bt_mesh_model *model, struct bt_mesh_msg_ctx *ctx, in bt_mesh_msg_send() argument
93 if (!ctx && !model->pub) { in bt_mesh_msg_send()
98 return bt_mesh_model_send(model, ctx, buf, NULL, 0); in bt_mesh_msg_send()
101 net_buf_simple_reset(model->pub->msg); in bt_mesh_msg_send()
102 net_buf_simple_add_mem(model->pub->msg, buf->data, buf->len); in bt_mesh_msg_send()
104 return bt_mesh_model_publish(model); in bt_mesh_msg_send()
107 int bt_mesh_msg_ackd_send(struct bt_mesh_model *model, struct bt_mesh_msg_ctx *ctx, in bt_mesh_msg_ackd_send() argument
114 ctx ? ctx->addr : model->pub->addr, in bt_mesh_msg_ackd_send()
121 err = bt_mesh_msg_send(model, ctx, buf); in bt_mesh_msg_ackd_send()
Dsar_cfg_cli.c24 static int transmitter_status(struct bt_mesh_model *model, in transmitter_status() argument
48 static int receiver_status(struct bt_mesh_model *model, in receiver_status() argument
90 static int bt_mesh_sar_cfg_cli_init(struct bt_mesh_model *model) in bt_mesh_sar_cfg_cli_init() argument
92 if (!bt_mesh_model_in_primary(model)) { in bt_mesh_sar_cfg_cli_init()
97 if (!model->user_data) { in bt_mesh_sar_cfg_cli_init()
102 cli = model->user_data; in bt_mesh_sar_cfg_cli_init()
103 cli->model = model; in bt_mesh_sar_cfg_cli_init()
106 model->keys[0] = BT_MESH_KEY_DEV_ANY; in bt_mesh_sar_cfg_cli_init()
107 model->flags |= BT_MESH_MOD_DEVKEY_ONLY; in bt_mesh_sar_cfg_cli_init()
114 static void bt_mesh_sar_cfg_cli_reset(struct bt_mesh_model *model) in bt_mesh_sar_cfg_cli_reset() argument
[all …]
Dop_agg_srv.c23 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()
118 model->keys[0] = BT_MESH_KEY_DEV_ANY; in op_agg_srv_init()
120 srv.model = model; in op_agg_srv_init()
Dhealth_cli.c39 static int health_fault_status(struct bt_mesh_model *model, in health_fault_status() argument
43 struct bt_mesh_health_cli *cli = model->user_data; in health_fault_status()
92 static int health_current_status(struct bt_mesh_model *model, in health_current_status() argument
96 struct bt_mesh_health_cli *cli = model->user_data; in health_current_status()
120 static int health_period_status(struct bt_mesh_model *model, in health_period_status() argument
124 struct bt_mesh_health_cli *cli = model->user_data; in health_period_status()
154 static int health_attention_status(struct bt_mesh_model *model, in health_attention_status() argument
158 struct bt_mesh_health_cli *cli = model->user_data; in health_attention_status()
207 return bt_mesh_msg_ackd_send(cli->model, ctx, &msg, attention ? &rsp : NULL); in bt_mesh_health_cli_attention_get()
228 return bt_mesh_msg_ackd_send(cli->model, ctx, &msg, updated_attention ? &rsp : NULL); in bt_mesh_health_cli_attention_set()
[all …]
Dpriv_beacon_cli.c21 static int handle_beacon_status(struct bt_mesh_model *model, in handle_beacon_status() argument
59 static int handle_gatt_proxy_status(struct bt_mesh_model *model, in handle_gatt_proxy_status() argument
89 static int handle_node_id_status(struct bt_mesh_model *model, in handle_node_id_status() argument
137 static int priv_beacon_cli_init(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->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->flags |= BT_MESH_MOD_DEVKEY_ONLY; in priv_beacon_cli_init()
177 return bt_mesh_msg_ackd_send(cli->model, &ctx, &buf, val ? &rsp_ctx : NULL); in bt_mesh_priv_beacon_cli_set()
[all …]
/Zephyr-Core-3.4.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
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":
102 model, model_path = build_cnn(seq_length)
[all …]
/Zephyr-Core-3.4.0/doc/connectivity/bluetooth/api/mesh/
Dlcd_cli.rst6 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…
9model was introduced in the Bluetooth Mesh Protocol Specification version 1.1, and supports the fu…
11model 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…
Dop_agg_cli.rst6 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
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
Dlcd_srv.rst6 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…
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 :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…
Dod_cli.rst6 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…
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 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
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
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 …]
/Zephyr-Core-3.4.0/samples/boards/nrf/mesh/onoff_level_lighting_vnd_app/src/mesh/
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 …]
Ddevice_composition.h102 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);
/Zephyr-Core-3.4.0/include/zephyr/bluetooth/mesh/
Dhealth_srv.h56 int (*fault_get_cur)(struct bt_mesh_model *model, uint8_t *test_id,
82 int (*fault_get_reg)(struct bt_mesh_model *model, uint16_t company_id,
94 int (*fault_clear)(struct bt_mesh_model *model, uint16_t company_id);
111 int (*fault_test)(struct bt_mesh_model *model, uint8_t test_id,
128 void (*attn_on)(struct bt_mesh_model *model);
137 void (*attn_off)(struct bt_mesh_model *model);
152 struct bt_mesh_model *model; member
/Zephyr-Core-3.4.0/drivers/neural_net/
Dintel_gna.c82 sys_cache_data_invd_range(pending_req.model->output,
85 memcpy(pending_req.output, pending_req.model->output,
277 struct gna_model_info *model, in intel_gna_register_model() argument
293 if ((model_handle == NULL) || (model == NULL)) { in intel_gna_register_model()
298 if ((model->header == NULL) || (model->rw_region == NULL)) { in intel_gna_register_model()
304 if (((uint32_t)model->rw_region & BIT_MASK(6)) || in intel_gna_register_model()
305 ((uint32_t)model->ro_region & BIT_MASK(6))) { in intel_gna_register_model()
316 LOG_INF("model header: %p rw: %p ro: %p", model->header, in intel_gna_register_model()
317 model->rw_region, model->ro_region); in intel_gna_register_model()
319 header = model->header; in intel_gna_register_model()
[all …]
/Zephyr-Core-3.4.0/tests/bsim/bluetooth/mesh/src/
Dtest_access.c38 static int model1_init(struct bt_mesh_model *model);
39 static int model2_init(struct bt_mesh_model *model);
40 static int model3_init(struct bt_mesh_model *model);
41 static int model4_init(struct bt_mesh_model *model);
42 static int model5_init(struct bt_mesh_model *model);
43 static int test_msg_handler(struct bt_mesh_model *model,
46 static int test_msg_ne_handler(struct bt_mesh_model *model,
102 static int model1_update(struct bt_mesh_model *model) in model1_update() argument
104 model->pub->msg->data[1]++; in model1_update()
106 LOG_DBG("New pub: n: %d t: %d", model->pub->msg->data[1], k_uptime_get_32()); in model1_update()
[all …]
/Zephyr-Core-3.4.0/samples/boards/reel_board/mesh_badge/src/
Dmesh.c162 static void attention_on(struct bt_mesh_model *model) in attention_on() argument
167 static void attention_off(struct bt_mesh_model *model) in attention_off() argument
182 static int gen_onoff_get(struct bt_mesh_model *model, in gen_onoff_get() argument
187 struct led_onoff_state *state = model->user_data; in gen_onoff_get()
190 bt_mesh_model_elem(model)->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(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->user_data; in gen_onoff_set_unack()
232 bt_mesh_model_elem(model)->addr, state->current); in gen_onoff_set_unack()
[all …]

12345678910>>...28