/Zephyr-latest/subsys/bluetooth/mesh/ |
D | health_srv.c | 107 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 …]
|
D | sar_cfg_srv.c | 30 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 …]
|
D | brg_cfg_srv.c | 18 static void bridge_status_send(const struct bt_mesh_model *model, struct bt_mesh_msg_ctx *ctx) in bridge_status_send() argument 25 if (bt_mesh_model_send(model, ctx, &msg, NULL, NULL)) { in bridge_status_send() 30 static int subnet_bridge_get(const struct bt_mesh_model *model, struct bt_mesh_msg_ctx *ctx, in subnet_bridge_get() argument 33 bridge_status_send(model, ctx); in subnet_bridge_get() 38 static int subnet_bridge_set(const struct bt_mesh_model *model, struct bt_mesh_msg_ctx *ctx, in subnet_bridge_set() argument 48 bridge_status_send(model, ctx); in subnet_bridge_set() 53 static void bridging_table_status_send(const struct bt_mesh_model *model, in bridging_table_status_send() argument 66 if (bt_mesh_model_send(model, ctx, &msg, NULL, NULL)) { in bridging_table_status_send() 76 static int bridging_table_add(const struct bt_mesh_model *model, struct bt_mesh_msg_ctx *ctx, in bridging_table_add() argument 94 bridging_table_status_send(model, ctx, status, &entry); in bridging_table_add() [all …]
|
D | cfg_srv.c | 50 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 …]
|
D | sar_cfg_cli.c | 24 static int transmitter_status(const struct bt_mesh_model *model, in transmitter_status() argument 48 static int receiver_status(const struct bt_mesh_model *model, in receiver_status() argument 90 static int bt_mesh_sar_cfg_cli_init(const 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->rt->user_data) { in bt_mesh_sar_cfg_cli_init() 102 cli = model->rt->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->rt->flags |= BT_MESH_MOD_DEVKEY_ONLY; in bt_mesh_sar_cfg_cli_init() 114 static void bt_mesh_sar_cfg_cli_reset(const struct bt_mesh_model *model) in bt_mesh_sar_cfg_cli_reset() argument [all …]
|
D | large_comp_data_cli.c | 36 static int data_status(const struct bt_mesh_model *model, struct bt_mesh_msg_ctx *ctx, in data_status() argument 81 static int large_comp_data_status(const 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(const 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(const 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->rt->flags |= BT_MESH_MOD_DEVKEY_ONLY; in large_comp_data_cli_init() 113 cli = model->rt->user_data; in large_comp_data_cli_init() [all …]
|
D | msg.c | 90 int bt_mesh_msg_send(const 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(const 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()
|
D | health_cli.c | 39 static int health_fault_status(const struct bt_mesh_model *model, in health_fault_status() argument 43 struct bt_mesh_health_cli *cli = model->rt->user_data; in health_fault_status() 92 static int health_current_status(const struct bt_mesh_model *model, in health_current_status() argument 96 struct bt_mesh_health_cli *cli = model->rt->user_data; in health_current_status() 120 static int health_period_status(const struct bt_mesh_model *model, in health_period_status() argument 124 struct bt_mesh_health_cli *cli = model->rt->user_data; in health_period_status() 154 static int health_attention_status(const struct bt_mesh_model *model, in health_attention_status() argument 158 struct bt_mesh_health_cli *cli = model->rt->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 …]
|
D | large_comp_data_srv.c | 40 const struct bt_mesh_model *model; member 43 static int handle_large_comp_data_get(const struct bt_mesh_model *model, in handle_large_comp_data_get() argument 98 if (bt_mesh_model_send(model, ctx, &rsp, NULL, NULL)) { in handle_large_comp_data_get() 105 static int handle_models_metadata_get(const struct bt_mesh_model *model, in handle_models_metadata_get() argument 158 if (bt_mesh_model_send(model, ctx, &rsp, NULL, NULL)) { in handle_models_metadata_get() 171 static int large_comp_data_srv_init(const struct bt_mesh_model *model) in large_comp_data_srv_init() argument 174 bt_mesh_model_find(bt_mesh_model_elem(model), BT_MESH_MODEL_ID_CFG_SRV); in large_comp_data_srv_init() 182 model->keys[0] = BT_MESH_KEY_DEV; in large_comp_data_srv_init() 183 model->rt->flags |= BT_MESH_MOD_DEVKEY_ONLY; in large_comp_data_srv_init() 185 srv.model = model; in large_comp_data_srv_init() [all …]
|
D | op_agg_srv.c | 25 const struct bt_mesh_model *model; member 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() 127 model->keys[0] = BT_MESH_KEY_DEV_ANY; in op_agg_srv_init() 129 srv.model = model; in op_agg_srv_init() 134 int bt_mesh_op_agg_srv_send(const struct bt_mesh_model *model, struct net_buf_simple *msg) in bt_mesh_op_agg_srv_send() argument
|
/Zephyr-latest/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 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-latest/doc/connectivity/bluetooth/api/mesh/ |
D | brg_cfg_srv.rst | 6 The Bridge Configuration Server model is a foundation model defined by the Bluetooth Mesh 7 specification. It is an optional model, enabled with the 8 :kconfig:option:`CONFIG_BT_MESH_BRG_CFG_SRV` configuration option. This model extends 9 the :ref:`bluetooth_mesh_models_cfg_srv` model. 11 The Bridge Configuration Server model was introduced in the Bluetooth Mesh Protocol Specification 14 The Bridge Configuration Server model relies on a :ref:`bluetooth_mesh_models_brg_cfg_cli` to 15 configure it. The Bridge Configuration Server model only accepts messages encrypted with the node’s 18 If present, the Bridge Configuration Server model must be instantiated on the primary element. 20 The Bridge Configuration Server model provides access to the following three states:
|
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 | 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 | 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 | 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 | 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 | 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 | 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.
|
/Zephyr-latest/samples/boards/nordic/mesh/onoff_level_lighting_vnd_app/src/mesh/ |
D | device_composition.c | 69 static int gen_onoff_get(const struct bt_mesh_model *model, in gen_onoff_get() argument 89 if (bt_mesh_model_send(model, ctx, msg, NULL, NULL)) { in gen_onoff_get() 96 void gen_onoff_publish(const struct bt_mesh_model *model) in gen_onoff_publish() argument 99 struct net_buf_simple *msg = model->pub->msg; in gen_onoff_publish() 101 if (model->pub->addr == BT_MESH_ADDR_UNASSIGNED) { in gen_onoff_publish() 114 err = bt_mesh_model_publish(model); in gen_onoff_publish() 120 static int gen_onoff_set_unack(const struct bt_mesh_model *model, in gen_onoff_set_unack() argument 183 gen_onoff_publish(model); in gen_onoff_set_unack() 189 static int gen_onoff_set(const struct bt_mesh_model *model, in gen_onoff_set() argument 208 (void)gen_onoff_get(model, ctx, buf); in gen_onoff_set() [all …]
|
D | device_composition.h | 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);
|
/Zephyr-latest/include/zephyr/bluetooth/mesh/ |
D | health_srv.h | 56 int (*fault_get_cur)(const struct bt_mesh_model *model, uint8_t *test_id, 82 int (*fault_get_reg)(const struct bt_mesh_model *model, uint16_t company_id, 94 int (*fault_clear)(const struct bt_mesh_model *model, uint16_t company_id); 111 int (*fault_test)(const struct bt_mesh_model *model, uint8_t test_id, 128 void (*attn_on)(const struct bt_mesh_model *model); 137 void (*attn_off)(const struct bt_mesh_model *model); 152 const struct bt_mesh_model *model; member
|
/Zephyr-latest/tests/bsim/bluetooth/mesh/src/ |
D | test_access.c | 38 static int model1_init(const struct bt_mesh_model *model); 39 static int model2_init(const struct bt_mesh_model *model); 40 static int model3_init(const struct bt_mesh_model *model); 41 static int model4_init(const struct bt_mesh_model *model); 42 static int model5_init(const struct bt_mesh_model *model); 43 static int test_msg_handler(const struct bt_mesh_model *model, 46 static int test_msg_ne_handler(const struct bt_mesh_model *model, 103 static int model1_update(const struct bt_mesh_model *model) in model1_update() argument 109 model->pub->msg->data[1]++; in model1_update() 110 LOG_DBG("New pub: n: %d t: %d", model->pub->msg->data[1], k_uptime_get_32()); in model1_update() [all …]
|