/Zephyr-Core-2.7.6/samples/boards/nrf/mesh/onoff_level_lighting_vnd_app/src/mesh/ |
D | publisher.c | 28 bt_mesh_model_msg_init(root_models[3].pub->msg, in publish() 30 net_buf_simple_add_u8(root_models[3].pub->msg, 0x01); in publish() 31 net_buf_simple_add_u8(root_models[3].pub->msg, tid++); in publish() 34 bt_mesh_model_msg_init(root_models[3].pub->msg, in publish() 36 net_buf_simple_add_u8(root_models[3].pub->msg, 0x01); in publish() 37 net_buf_simple_add_u8(root_models[3].pub->msg, tid++); in publish() 38 net_buf_simple_add_u8(root_models[3].pub->msg, 0x45); in publish() 39 net_buf_simple_add_u8(root_models[3].pub->msg, 0x28); in publish() 42 bt_mesh_model_msg_init(vnd_models[0].pub->msg, in publish() 44 net_buf_simple_add_le16(vnd_models[0].pub->msg, 0x0001); in publish() [all …]
|
D | device_composition.c | 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() 310 struct net_buf_simple *msg = model->pub->msg; in gen_level_publish() 312 if (model->pub->addr == BT_MESH_ADDR_UNASSIGNED) { in gen_level_publish() 821 struct net_buf_simple *msg = model->pub->msg; in gen_def_trans_time_publish() 823 if (model->pub->addr == BT_MESH_ADDR_UNASSIGNED) { in gen_def_trans_time_publish() 927 struct net_buf_simple *msg = model->pub->msg; in gen_onpowerup_publish() 929 if (model->pub->addr == BT_MESH_ADDR_UNASSIGNED) { in gen_onpowerup_publish() 1093 struct net_buf_simple *msg = model->pub->msg; in light_lightness_publish() 1095 if (model->pub->addr == BT_MESH_ADDR_UNASSIGNED) { in light_lightness_publish() [all …]
|
/Zephyr-Core-2.7.6/subsys/bluetooth/mesh/ |
D | heartbeat.c | 31 static struct bt_mesh_hb_pub pub; variable 50 if (pub.period && pub.count > 1) { in hb_publish_end_cb() 51 k_work_reschedule(&pub_timer, K_SECONDS(pub.period)); in hb_publish_end_cb() 54 if (pub.count != 0xffff) { in hb_publish_end_cb() 55 pub.count--; in hb_publish_end_cb() 94 .net_idx = pub.net_idx, in heartbeat_send() 96 .addr = pub.dst, in heartbeat_send() 97 .send_ttl = pub.ttl, in heartbeat_send() 100 .sub = bt_mesh_subnet_get(pub.net_idx), in heartbeat_send() 109 if (!tx.sub || pub.dst == BT_MESH_ADDR_UNASSIGNED) { in heartbeat_send() [all …]
|
D | access.c | 82 if (!mod->pub) { in bt_mesh_model_pub_period_get() 86 switch (mod->pub->period >> 6) { in bt_mesh_model_pub_period_get() 89 period = (mod->pub->period & BIT_MASK(6)) * 100U; in bt_mesh_model_pub_period_get() 93 period = (mod->pub->period & BIT_MASK(6)) * MSEC_PER_SEC; in bt_mesh_model_pub_period_get() 97 period = (mod->pub->period & BIT_MASK(6)) * 10U * MSEC_PER_SEC; in bt_mesh_model_pub_period_get() 101 period = (mod->pub->period & BIT_MASK(6)) * 600U * MSEC_PER_SEC; in bt_mesh_model_pub_period_get() 107 if (mod->pub->fast_period) { in bt_mesh_model_pub_period_get() 108 return period >> mod->pub->period_div; in bt_mesh_model_pub_period_get() 116 struct bt_mesh_model_pub *pub = mod->pub; in next_period() local 124 elapsed = k_uptime_get_32() - pub->period_start; in next_period() [all …]
|
D | cfg_srv.c | 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() 201 model->pub->period = 0U; in _mod_pub_set() 202 model->pub->retransmit = 0U; in _mod_pub_set() 203 model->pub->count = 0U; in _mod_pub_set() [all …]
|
D | main.c | 227 if (mod->pub && mod->pub->update) { in model_suspend() 228 mod->pub->count = 0U; in model_suspend() 232 (void)k_work_cancel_delayable(&mod->pub->timer); in model_suspend() 269 if (mod->pub && mod->pub->update) { in model_resume() 273 k_work_reschedule(&mod->pub->timer, in model_resume()
|
D | cfg_cli.c | 554 struct bt_mesh_cfg_mod_pub *pub; member 615 if (param->pub) { in mod_pub_status() 616 param->pub->addr = net_buf_simple_pull_le16(buf); in mod_pub_status() 617 param->pub->app_idx = net_buf_simple_pull_le16(buf); in mod_pub_status() 618 param->pub->cred_flag = (param->pub->app_idx & BIT(12)); in mod_pub_status() 619 param->pub->app_idx &= BIT_MASK(12); in mod_pub_status() 620 param->pub->ttl = net_buf_simple_pull_u8(buf); in mod_pub_status() 621 param->pub->period = net_buf_simple_pull_u8(buf); in mod_pub_status() 622 param->pub->transmit = net_buf_simple_pull_u8(buf); in mod_pub_status() 765 struct bt_mesh_cfg_hb_pub *pub; member [all …]
|
D | health_srv.c | 302 net_buf_simple_add_u8(&msg, model->pub->period_div); in send_health_period_status() 334 model->pub->period_div = period; in health_period_set_unrel() 372 struct bt_mesh_model_pub *pub = mod->pub; in health_pub_update() local 377 count = health_get_current(mod, pub->msg); in health_pub_update() 379 pub->fast_period = 1U; in health_pub_update() 381 pub->fast_period = 0U; in health_pub_update() 430 if (!model->pub) { in health_srv_init() 435 model->pub->update = health_pub_update; in health_srv_init()
|
D | shell.c | 1593 struct bt_mesh_cfg_mod_pub pub; in mod_pub_get() local 1599 mod_id, &pub, &status); in mod_pub_get() 1602 mod_id, cid, &pub, &status); in mod_pub_get() 1625 addr, mod_id, pub.addr, pub.app_idx, pub.cred_flag, pub.ttl, in mod_pub_get() 1626 pub.period, BT_MESH_PUB_TRANSMIT_COUNT(pub.transmit), in mod_pub_get() 1627 BT_MESH_PUB_TRANSMIT_INT(pub.transmit)); in mod_pub_get() 1635 struct bt_mesh_cfg_mod_pub pub; in mod_pub_set() local 1640 pub.addr = strtoul(argv[0], NULL, 0); in mod_pub_set() 1641 pub.uuid = NULL; in mod_pub_set() 1642 pub.app_idx = strtoul(argv[1], NULL, 0); in mod_pub_set() [all …]
|
/Zephyr-Core-2.7.6/tests/crypto/tinycrypt/src/ |
D | ecc_dh.c | 75 unsigned int pub[2 * NUM_ECC_WORDS]; in ecdh_vectors() local 87 string2scalar(pub + NUM_ECC_WORDS, NUM_ECC_WORDS, qx_vec[i]); in ecdh_vectors() 88 string2scalar(pub, NUM_ECC_WORDS, qy_vec[i]); in ecdh_vectors() 93 uECC_vli_nativeToBytes(pub_bytes, 2 * NUM_ECC_BYTES, pub); in ecdh_vectors() 302 unsigned int pub[2 * NUM_ECC_WORDS]; in pkv_vectors() local 317 string2scalar(pub, NUM_ECC_WORDS, qx_vec[i]); in pkv_vectors() 318 string2scalar(pub + NUM_ECC_WORDS, NUM_ECC_WORDS, qy_vec[i]); in pkv_vectors() 320 uECC_vli_nativeToBytes(_public, NUM_ECC_BYTES, pub); in pkv_vectors() 322 NUM_ECC_BYTES, pub + NUM_ECC_WORDS); in pkv_vectors()
|
D | test_ecc_utils.c | 165 unsigned int pub[2 * NUM_ECC_WORDS]; in keygen_vectors() local 192 uECC_vli_bytesToNative(pub, pub_bytes, NUM_ECC_BYTES); in keygen_vectors() 193 uECC_vli_bytesToNative(pub + NUM_ECC_WORDS, pub_bytes + NUM_ECC_BYTES, NUM_ECC_BYTES); in keygen_vectors() 200 result = check_ecc_result(i, "pub.x", exp_pub, pub, NUM_ECC_WORDS, verbose); in keygen_vectors() 204 …result = check_ecc_result(i, "pub.y", exp_pub + NUM_ECC_WORDS, pub + NUM_ECC_WORDS, NUM_ECC_WORDS… in keygen_vectors()
|
D | ecc_dsa.c | 347 unsigned int pub[2 * NUM_ECC_WORDS]; in vrfy_vectors() local 363 string2scalar(pub, NUM_ECC_WORDS, qx_vec[i]); in vrfy_vectors() 364 string2scalar(pub + NUM_ECC_WORDS, NUM_ECC_WORDS, qy_vec[i]); in vrfy_vectors() 391 uECC_vli_nativeToBytes(pub_bytes, NUM_ECC_BYTES, pub); in vrfy_vectors() 393 pub + NUM_ECC_WORDS); in vrfy_vectors()
|
/Zephyr-Core-2.7.6/samples/net/cloud/google_iot_mqtt/src/ |
D | protocol.c | 154 const struct mqtt_publish_param *pub = &evt->param.publish; in mqtt_evt_handler() local 156 int len = pub->message.payload.len; in mqtt_evt_handler() 162 pub->message_id, in mqtt_evt_handler() 163 pub->message.topic.qos); in mqtt_evt_handler() 165 log_strdup(pub->message.topic.topic.utf8)); in mqtt_evt_handler() 183 if (pub->message.topic.qos == MQTT_QOS_1_AT_LEAST_ONCE) { in mqtt_evt_handler() 185 .message_id = pub->message_id in mqtt_evt_handler()
|
/Zephyr-Core-2.7.6/include/bluetooth/mesh/ |
D | health_srv.h | 171 #define BT_MESH_MODEL_HEALTH_SRV(srv, pub) \ argument 173 pub, srv, &bt_mesh_health_srv_cb)
|
D | cfg_cli.h | 538 uint16_t mod_id, struct bt_mesh_cfg_mod_pub *pub, 555 struct bt_mesh_cfg_mod_pub *pub, uint8_t *status); 569 uint16_t mod_id, struct bt_mesh_cfg_mod_pub *pub, 586 struct bt_mesh_cfg_mod_pub *pub, uint8_t *status); 943 const struct bt_mesh_cfg_hb_pub *pub, uint8_t *status); 955 struct bt_mesh_cfg_hb_pub *pub, uint8_t *status);
|
D | access.h | 222 .pub = _pub, \ 246 .pub = _pub, \ 497 struct bt_mesh_model_pub * const pub; member
|
/Zephyr-Core-2.7.6/tests/bluetooth/tester/src/ |
D | mesh.c | 1196 struct bt_mesh_cfg_mod_pub pub; in config_mod_pub_get() local 1202 cmd->elem_address, cmd->model_id, &pub, in config_mod_pub_get() 1223 struct bt_mesh_cfg_mod_pub pub; in config_mod_pub_set() local 1228 pub.addr = cmd->pub_addr; in config_mod_pub_set() 1229 pub.uuid = NULL; in config_mod_pub_set() 1230 pub.app_idx = cmd->app_idx; in config_mod_pub_set() 1231 pub.cred_flag = cmd->cred_flag; in config_mod_pub_set() 1232 pub.ttl = cmd->ttl; in config_mod_pub_set() 1233 pub.period = cmd->period; in config_mod_pub_set() 1234 pub.transmit = cmd->transmit; in config_mod_pub_set() [all …]
|
/Zephyr-Core-2.7.6/samples/boards/reel_board/mesh_badge/src/ |
D | mesh.c | 125 struct net_buf_simple *msg = model->pub->msg; in gen_onoff_set_unack() 170 model->pub->addr != BT_MESH_ADDR_UNASSIGNED) { in gen_onoff_set_unack() 402 struct net_buf_simple *msg = mod->pub->msg; in pub_update() 507 struct bt_mesh_cfg_mod_pub pub = { in provision_and_configure() local 562 &pub, NULL); in provision_and_configure()
|
/Zephyr-Core-2.7.6/samples/bluetooth/mesh_demo/src/ |
D | main.c | 139 struct bt_mesh_cfg_hb_pub pub = { in configure() local 148 bt_mesh_cfg_hb_pub_set(net_idx, addr, &pub, NULL); in configure()
|
/Zephyr-Core-2.7.6/doc/ |
D | LICENSING.rst | 17 https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/plain/COPYING
|
/Zephyr-Core-2.7.6/tests/bluetooth/bsim_bt/bsim_test_mesh/src/ |
D | test_friendship.c | 491 test_model->pub->addr = other_cfg.addr; in test_lpn_msg_mesh() 492 test_model->pub->cred = true; /* Use friend credentials */ in test_lpn_msg_mesh() 493 test_model->pub->ttl = BT_MESH_TTL_DEFAULT; in test_lpn_msg_mesh() 495 net_buf_simple_reset(test_model->pub->msg); in test_lpn_msg_mesh() 496 bt_mesh_model_msg_init(test_model->pub->msg, TEST_MSG_OP_1); in test_lpn_msg_mesh()
|
D | mesh_test.c | 116 static struct bt_mesh_model_pub pub = { variable 162 BT_MESH_MODEL_CB(TEST_MOD_ID, model_op, &pub, NULL, &test_model_cb), 257 net_buf_simple_init(pub.msg, 0); in bt_mesh_test_setup()
|
/Zephyr-Core-2.7.6/samples/boards/nrf/mesh/onoff-app/src/ |
D | main.c | 303 struct net_buf_simple *msg = model->pub->msg; in gen_onoff_set_unack() 324 model->pub->addr != BT_MESH_ADDR_UNASSIGNED) { in gen_onoff_set_unack() 472 pub_cli = mod_cli->pub; in button_pressed_worker() 475 pub_srv = mod_srv->pub; in button_pressed_worker()
|
/Zephyr-Core-2.7.6/samples/boards/nrf/mesh/onoff_level_lighting_vnd_app/ |
D | README.rst | 93 pub-set 0100 c000 1 0 5 1001 94 pub-set 0100 c000 1 0 5 1003
|
/Zephyr-Core-2.7.6/doc/guides/dts/ |
D | design.rst | 71 .. _dtc: https://git.kernel.org/pub/scm/utils/dtc/dtc.git/about/
|